Class ClusterPoolResourcePropertiesComputeProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolComputeProfile
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolResourcePropertiesComputeProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolComputeProfile>
CLuster pool compute profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolResourcePropertiesComputeProfile class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Get the count property: The number of virtual machines.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolResourcePropertiesComputeProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAvailabilityZones(List<String> availabilityZones) Set the availabilityZones property: The list of Availability zones to use for AKS VMSS nodes.withVmSize(String vmSize) Set the vmSize property: The virtual machine SKU.Methods inherited from class ClusterPoolComputeProfile
availabilityZones, vmSizeMethods 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
-
ClusterPoolResourcePropertiesComputeProfile
public ClusterPoolResourcePropertiesComputeProfile()Creates an instance of ClusterPoolResourcePropertiesComputeProfile class.
-
-
Method Details
-
count
Get the count property: The number of virtual machines.- Overrides:
countin classClusterPoolComputeProfile- Returns:
- the count value.
-
withVmSize
Set the vmSize property: The virtual machine SKU.- Overrides:
withVmSizein classClusterPoolComputeProfile- Parameters:
vmSize- the vmSize value to set.- Returns:
- the ClusterPoolComputeProfile object itself.
-
withAvailabilityZones
public ClusterPoolResourcePropertiesComputeProfile withAvailabilityZones(List<String> availabilityZones) Set the availabilityZones property: The list of Availability zones to use for AKS VMSS nodes.- Overrides:
withAvailabilityZonesin classClusterPoolComputeProfile- Parameters:
availabilityZones- the availabilityZones value to set.- Returns:
- the ClusterPoolComputeProfile object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterPoolComputeProfile- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterPoolComputeProfile>- Overrides:
toJsonin classClusterPoolComputeProfile- Throws:
IOException
-
fromJson
public static ClusterPoolResourcePropertiesComputeProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterPoolResourcePropertiesComputeProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterPoolResourcePropertiesComputeProfile 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 ClusterPoolResourcePropertiesComputeProfile.
-