Class ClusterInstanceViewPropertiesStatus
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewStatus
com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewPropertiesStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterInstanceViewStatus>
Status of the instance view.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterInstanceViewPropertiesStatus class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterInstanceViewPropertiesStatus from the JsonReader.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 ClusterInstanceViewStatus
message, ready, reasonMethods 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
-
ClusterInstanceViewPropertiesStatus
public ClusterInstanceViewPropertiesStatus()Creates an instance of ClusterInstanceViewPropertiesStatus class.
-
-
Method Details
-
withReady
Set the ready property: The cluster ready status.- Overrides:
withReadyin classClusterInstanceViewStatus- Parameters:
ready- the ready value to set.- Returns:
- the ClusterInstanceViewStatus object itself.
-
withReason
Set the reason property: The status reason.- Overrides:
withReasonin classClusterInstanceViewStatus- Parameters:
reason- the reason value to set.- Returns:
- the ClusterInstanceViewStatus object itself.
-
withMessage
Set the message property: The additional message.- Overrides:
withMessagein classClusterInstanceViewStatus- Parameters:
message- the message value to set.- Returns:
- the ClusterInstanceViewStatus object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterInstanceViewStatus- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterInstanceViewStatus>- Overrides:
toJsonin classClusterInstanceViewStatus- Throws:
IOException
-
fromJson
public static ClusterInstanceViewPropertiesStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterInstanceViewPropertiesStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterInstanceViewPropertiesStatus 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 ClusterInstanceViewPropertiesStatus.
-