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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenable()Get the enable property: The flag that if enable debug or not.static TrinoDebugConfigfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrinoDebugConfig from the JsonReader.port()Get the port property: The debug port.suspend()Get the suspend property: The flag that if suspend debug or not.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnable(Boolean enable) Set the enable property: The flag that if enable debug or not.Set the port property: The debug port.withSuspend(Boolean suspend) Set the suspend property: The flag that if suspend debug or not.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TrinoDebugConfig
public TrinoDebugConfig()Creates an instance of TrinoDebugConfig class.
-
-
Method Details
-
enable
Get the enable property: The flag that if enable debug or not.- Returns:
- the enable value.
-
withEnable
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
-
withPort
Set the port property: The debug port.- Parameters:
port- the port value to set.- Returns:
- the TrinoDebugConfig object itself.
-
suspend
Get the suspend property: The flag that if suspend debug or not.- Returns:
- the suspend value.
-
withSuspend
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrinoDebugConfig>- Throws:
IOException
-
fromJson
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.
-