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 Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolComputeProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the availabilityZones property: The list of Availability zones to use for AKS VMSS nodes.count()Get the count property: The number of virtual machines.static ClusterPoolComputeProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolComputeProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vmSize()Get the vmSize property: The virtual machine SKU.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 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
-
ClusterPoolComputeProfile
public ClusterPoolComputeProfile()Creates an instance of ClusterPoolComputeProfile class.
-
-
Method Details
-
vmSize
-
withVmSize
Set the vmSize property: The virtual machine SKU.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the ClusterPoolComputeProfile object itself.
-
count
Get the count property: The number of virtual machines.- Returns:
- the count value.
-
availabilityZones
-
withAvailabilityZones
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
- Specified by:
toJsonin interfacecom.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.
-