Class ClusterInstanceViewStatus

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewStatus
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterInstanceViewStatus>
Direct Known Subclasses:
ClusterInstanceViewPropertiesStatus

public class ClusterInstanceViewStatus extends Object implements com.azure.json.JsonSerializable<ClusterInstanceViewStatus>
Status of the instance view.
  • Constructor Details

    • ClusterInstanceViewStatus

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

    • ready

      public String ready()
      Get the ready property: The cluster ready status.
      Returns:
      the ready value.
    • withReady

      public ClusterInstanceViewStatus withReady(String ready)
      Set the ready property: The cluster ready status.
      Parameters:
      ready - the ready value to set.
      Returns:
      the ClusterInstanceViewStatus object itself.
    • reason

      public String reason()
      Get the reason property: The status reason.
      Returns:
      the reason value.
    • withReason

      public ClusterInstanceViewStatus withReason(String reason)
      Set the reason property: The status reason.
      Parameters:
      reason - the reason value to set.
      Returns:
      the ClusterInstanceViewStatus object itself.
    • message

      public String message()
      Get the message property: The additional message.
      Returns:
      the message value.
    • withMessage

      public ClusterInstanceViewStatus withMessage(String message)
      Set the message property: The additional message.
      Parameters:
      message - the message value to set.
      Returns:
      the ClusterInstanceViewStatus 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<ClusterInstanceViewStatus>
      Throws:
      IOException
    • fromJson

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