SkuProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SkuProfile

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 SkuProfile class.

Method Summary

Modifier and Type Method and Description
AllocationStrategy allocationStrategy()

Get the allocationStrategy property: Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated.

static SkuProfile fromJson(JsonReader jsonReader)

Reads an instance of SkuProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<SkuProfileVMSize> vmSizes()

Get the vmSizes property: Specifies the VM sizes for the virtual machine scale set.

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.

SkuProfile withVmSizes(List<SkuProfileVMSize> vmSizes)

Set the vmSizes property: Specifies the VM sizes for the virtual machine scale set.

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:

the allocationStrategy value.

fromJson

public static SkuProfile fromJson(JsonReader jsonReader)

Reads an instance of SkuProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SkuProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SkuProfile.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmSizes

public List vmSizes()

Get the vmSizes property: Specifies the VM sizes for the virtual machine scale set.

Returns:

the vmSizes value.

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:

allocationStrategy - the allocationStrategy value to set.

Returns:

the SkuProfile object itself.

withVmSizes

public SkuProfile withVmSizes(List vmSizes)

Set the vmSizes property: Specifies the VM sizes for the virtual machine scale set.

Parameters:

vmSizes - the vmSizes value to set.

Returns:

the SkuProfile object itself.

Applies to