Class TrinoCoordinator

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

public final class TrinoCoordinator extends Object implements com.azure.json.JsonSerializable<TrinoCoordinator>
Trino Coordinator.
  • Constructor Details

    • TrinoCoordinator

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

    • debug

      public TrinoDebugConfig debug()
      Get the debug property: Trino debug configuration.
      Returns:
      the debug value.
    • withDebug

      public TrinoCoordinator withDebug(TrinoDebugConfig debug)
      Set the debug property: Trino debug configuration.
      Parameters:
      debug - the debug value to set.
      Returns:
      the TrinoCoordinator object itself.
    • highAvailabilityEnabled

      public Boolean highAvailabilityEnabled()
      Get the highAvailabilityEnabled property: The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node. Default: true.
      Returns:
      the highAvailabilityEnabled value.
    • withHighAvailabilityEnabled

      public TrinoCoordinator withHighAvailabilityEnabled(Boolean highAvailabilityEnabled)
      Set the highAvailabilityEnabled property: The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node. Default: true.
      Parameters:
      highAvailabilityEnabled - the highAvailabilityEnabled value to set.
      Returns:
      the TrinoCoordinator 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<TrinoCoordinator>
      Throws:
      IOException
    • fromJson

      public static TrinoCoordinator fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TrinoCoordinator from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TrinoCoordinator 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 TrinoCoordinator.