Class ClusterInstanceViewResultProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewProperties
com.azure.resourcemanager.hdinsight.containers.models.ClusterInstanceViewResultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterInstanceViewProperties>
Properties of the instance view.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterInstanceViewResultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterInstanceViewResultProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withServiceStatuses(List<ServiceStatus> serviceStatuses) Set the serviceStatuses property: List of statuses of relevant services that make up the HDInsight on AKS cluster to surface to the customer.Set the status property: Status of the instance view.Methods inherited from class ClusterInstanceViewProperties
serviceStatuses, statusMethods 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
-
ClusterInstanceViewResultProperties
public ClusterInstanceViewResultProperties()Creates an instance of ClusterInstanceViewResultProperties class.
-
-
Method Details
-
withStatus
Set the status property: Status of the instance view.- Overrides:
withStatusin classClusterInstanceViewProperties- Parameters:
status- the status value to set.- Returns:
- the ClusterInstanceViewProperties object itself.
-
withServiceStatuses
Set the serviceStatuses property: List of statuses of relevant services that make up the HDInsight on AKS cluster to surface to the customer.- Overrides:
withServiceStatusesin classClusterInstanceViewProperties- Parameters:
serviceStatuses- the serviceStatuses value to set.- Returns:
- the ClusterInstanceViewProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterInstanceViewProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterInstanceViewProperties>- Overrides:
toJsonin classClusterInstanceViewProperties- Throws:
IOException
-
fromJson
public static ClusterInstanceViewResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterInstanceViewResultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterInstanceViewResultProperties 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 ClusterInstanceViewResultProperties.
-