SkuProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. SkuProfile
- com.
Implements
public final class SkuProfile
implements JsonSerializable<SkuProfile>
Specifies the sku profile for the virtual machine scale set. With this property the customer is able to specify a list of VM sizes and an allocation strategy.
Constructor Summary
Constructor | Description |
---|---|
SkuProfile() |
Creates an instance of Sku |
Method Summary
Modifier and Type | Method and Description |
---|---|
Allocation |
allocationStrategy()
Get the allocation |
static
Sku |
fromJson(JsonReader jsonReader)
Reads an instance of Sku |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<Sku |
vmSizes()
Get the vm |
Sku |
withAllocationStrategy(AllocationStrategy allocationStrategy)
Set the allocation |
Sku |
withVmSizes(List<SkuProfileVMSize> vmSizes)
Set the vm |
Methods inherited from java.lang.Object
Constructor Details
SkuProfile
public SkuProfile()
Creates an instance of SkuProfile class.
Method Details
allocationStrategy
public AllocationStrategy allocationStrategy()
Get the allocationStrategy property: Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated.
Returns:
fromJson
public static SkuProfile fromJson(JsonReader jsonReader)
Reads an instance of SkuProfile from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
vmSizes
public List
Get the vmSizes property: Specifies the VM sizes for the virtual machine scale set.
Returns:
withAllocationStrategy
public SkuProfile withAllocationStrategy(AllocationStrategy allocationStrategy)
Set the allocationStrategy property: Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated.
Parameters:
Returns:
withVmSizes
public SkuProfile withVmSizes(List
Set the vmSizes property: Specifies the VM sizes for the virtual machine scale set.
Parameters:
Returns:
Applies to
Azure SDK for Java