Class ClusterPoolComputeProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolComputeProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolComputeProfile>
Direct Known Subclasses:
ClusterPoolResourcePropertiesComputeProfile

public class ClusterPoolComputeProfile extends Object implements com.azure.json.JsonSerializable<ClusterPoolComputeProfile>
Cluster pool compute profile.
  • Constructor Details

    • ClusterPoolComputeProfile

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

    • vmSize

      public String vmSize()
      Get the vmSize property: The virtual machine SKU.
      Returns:
      the vmSize value.
    • withVmSize

      public ClusterPoolComputeProfile withVmSize(String vmSize)
      Set the vmSize property: The virtual machine SKU.
      Parameters:
      vmSize - the vmSize value to set.
      Returns:
      the ClusterPoolComputeProfile object itself.
    • count

      public Integer count()
      Get the count property: The number of virtual machines.
      Returns:
      the count value.
    • availabilityZones

      public List<String> availabilityZones()
      Get the availabilityZones property: The list of Availability zones to use for AKS VMSS nodes.
      Returns:
      the availabilityZones value.
    • withAvailabilityZones

      public ClusterPoolComputeProfile withAvailabilityZones(List<String> availabilityZones)
      Set the availabilityZones property: The list of Availability zones to use for AKS VMSS nodes.
      Parameters:
      availabilityZones - the availabilityZones value to set.
      Returns:
      the ClusterPoolComputeProfile object itself.
    • 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<ClusterPoolComputeProfile>
      Throws:
      IOException
    • fromJson

      public static ClusterPoolComputeProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterPoolComputeProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterPoolComputeProfile 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 ClusterPoolComputeProfile.