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 Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterInstanceViewStatus class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterInstanceViewStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterInstanceViewStatus from the JsonReader.message()Get the message property: The additional message.ready()Get the ready property: The cluster ready status.reason()Get the reason property: The status reason.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMessage(String message) Set the message property: The additional message.Set the ready property: The cluster ready status.withReason(String reason) Set the reason property: The status reason.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
-
ClusterInstanceViewStatus
public ClusterInstanceViewStatus()Creates an instance of ClusterInstanceViewStatus class.
-
-
Method Details
-
ready
-
withReady
Set the ready property: The cluster ready status.- Parameters:
ready- the ready value to set.- Returns:
- the ClusterInstanceViewStatus object itself.
-
reason
-
withReason
Set the reason property: The status reason.- Parameters:
reason- the reason value to set.- Returns:
- the ClusterInstanceViewStatus object itself.
-
message
Get the message property: The additional message.- Returns:
- the message value.
-
withMessage
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
- Specified by:
toJsonin interfacecom.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.
-