Class ClusterResourceProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterResourceProperties>
public final class ClusterResourceProperties
extends Object
implements com.azure.json.JsonSerializable<ClusterResourceProperties>
Cluster resource properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the clusterProfile property: Cluster profile.Get the clusterType property: The type of cluster.Get the computeProfile property: The compute profile.Get the deploymentId property: A unique id generated by the RP to identify the resource.static ClusterResourcePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterResourceProperties from the JsonReader.Get the provisioningState property: Provisioning state of the resource.status()Get the status property: Business status of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClusterProfile(ClusterProfile clusterProfile) Set the clusterProfile property: Cluster profile.withClusterType(String clusterType) Set the clusterType property: The type of cluster.withComputeProfile(ComputeProfile computeProfile) Set the computeProfile property: The compute profile.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
-
ClusterResourceProperties
public ClusterResourceProperties()Creates an instance of ClusterResourceProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Provisioning state of the resource.- Returns:
- the provisioningState value.
-
clusterType
Get the clusterType property: The type of cluster.- Returns:
- the clusterType value.
-
withClusterType
Set the clusterType property: The type of cluster.- Parameters:
clusterType- the clusterType value to set.- Returns:
- the ClusterResourceProperties object itself.
-
deploymentId
Get the deploymentId property: A unique id generated by the RP to identify the resource.- Returns:
- the deploymentId value.
-
computeProfile
Get the computeProfile property: The compute profile.- Returns:
- the computeProfile value.
-
withComputeProfile
Set the computeProfile property: The compute profile.- Parameters:
computeProfile- the computeProfile value to set.- Returns:
- the ClusterResourceProperties object itself.
-
clusterProfile
Get the clusterProfile property: Cluster profile.- Returns:
- the clusterProfile value.
-
withClusterProfile
Set the clusterProfile property: Cluster profile.- Parameters:
clusterProfile- the clusterProfile value to set.- Returns:
- the ClusterResourceProperties object itself.
-
status
Get the status property: Business status of the resource.- Returns:
- the status value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterResourceProperties>- Throws:
IOException
-
fromJson
public static ClusterResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterResourceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterResourceProperties 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 ClusterResourceProperties.
-