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 Details

    • ClusterResourceProperties

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

    • provisioningState

      public ProvisioningStatus provisioningState()
      Get the provisioningState property: Provisioning state of the resource.
      Returns:
      the provisioningState value.
    • clusterType

      public String clusterType()
      Get the clusterType property: The type of cluster.
      Returns:
      the clusterType value.
    • withClusterType

      public ClusterResourceProperties withClusterType(String clusterType)
      Set the clusterType property: The type of cluster.
      Parameters:
      clusterType - the clusterType value to set.
      Returns:
      the ClusterResourceProperties object itself.
    • deploymentId

      public String deploymentId()
      Get the deploymentId property: A unique id generated by the RP to identify the resource.
      Returns:
      the deploymentId value.
    • computeProfile

      public ComputeProfile computeProfile()
      Get the computeProfile property: The compute profile.
      Returns:
      the computeProfile value.
    • withComputeProfile

      public ClusterResourceProperties withComputeProfile(ComputeProfile computeProfile)
      Set the computeProfile property: The compute profile.
      Parameters:
      computeProfile - the computeProfile value to set.
      Returns:
      the ClusterResourceProperties object itself.
    • clusterProfile

      public ClusterProfile clusterProfile()
      Get the clusterProfile property: Cluster profile.
      Returns:
      the clusterProfile value.
    • withClusterProfile

      public ClusterResourceProperties withClusterProfile(ClusterProfile clusterProfile)
      Set the clusterProfile property: Cluster profile.
      Parameters:
      clusterProfile - the clusterProfile value to set.
      Returns:
      the ClusterResourceProperties object itself.
    • status

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.