Class ServiceStatus

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

public final class ServiceStatus extends Object implements com.azure.json.JsonSerializable<ServiceStatus>
Describes the status of a service of a HDInsight on AKS cluster.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ServiceStatus class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ServiceStatus from the JsonReader.
    Get the kind property: Kind of the service.
    Get the message property: A message describing the error if any.
    Get the ready property: Indicates if the service is ready / healthy.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the kind property: Kind of the service.
    Set the message property: A message describing the error if any.
    Set the ready property: Indicates if the service is ready / healthy.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ServiceStatus

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

    • kind

      public String kind()
      Get the kind property: Kind of the service. E.g. "Zookeeper".
      Returns:
      the kind value.
    • withKind

      public ServiceStatus withKind(String kind)
      Set the kind property: Kind of the service. E.g. "Zookeeper".
      Parameters:
      kind - the kind value to set.
      Returns:
      the ServiceStatus object itself.
    • ready

      public String ready()
      Get the ready property: Indicates if the service is ready / healthy. Values can be "true", "false", "unknown" or anything else.
      Returns:
      the ready value.
    • withReady

      public ServiceStatus withReady(String ready)
      Set the ready property: Indicates if the service is ready / healthy. Values can be "true", "false", "unknown" or anything else.
      Parameters:
      ready - the ready value to set.
      Returns:
      the ServiceStatus object itself.
    • message

      public String message()
      Get the message property: A message describing the error if any.
      Returns:
      the message value.
    • withMessage

      public ServiceStatus withMessage(String message)
      Set the message property: A message describing the error if any.
      Parameters:
      message - the message value to set.
      Returns:
      the ServiceStatus 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<ServiceStatus>
      Throws:
      IOException
    • fromJson

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