Class TrinoDebugConfig

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.TrinoDebugConfig
All Implemented Interfaces:
com.azure.json.JsonSerializable<TrinoDebugConfig>

public final class TrinoDebugConfig extends Object implements com.azure.json.JsonSerializable<TrinoDebugConfig>
Trino debug configuration.
  • Constructor Details

    • TrinoDebugConfig

      public TrinoDebugConfig()
      Creates an instance of TrinoDebugConfig class.
  • Method Details

    • enable

      public Boolean enable()
      Get the enable property: The flag that if enable debug or not.
      Returns:
      the enable value.
    • withEnable

      public TrinoDebugConfig withEnable(Boolean enable)
      Set the enable property: The flag that if enable debug or not.
      Parameters:
      enable - the enable value to set.
      Returns:
      the TrinoDebugConfig object itself.
    • port

      public Integer port()
      Get the port property: The debug port.
      Returns:
      the port value.
    • withPort

      public TrinoDebugConfig withPort(Integer port)
      Set the port property: The debug port.
      Parameters:
      port - the port value to set.
      Returns:
      the TrinoDebugConfig object itself.
    • suspend

      public Boolean suspend()
      Get the suspend property: The flag that if suspend debug or not.
      Returns:
      the suspend value.
    • withSuspend

      public TrinoDebugConfig withSuspend(Boolean suspend)
      Set the suspend property: The flag that if suspend debug or not.
      Parameters:
      suspend - the suspend value to set.
      Returns:
      the TrinoDebugConfig object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TrinoDebugConfig>
      Throws:
      IOException
    • fromJson

      public static TrinoDebugConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TrinoDebugConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TrinoDebugConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the TrinoDebugConfig.