VirtualMachineScaleSetSkuCapacity Class

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

Implements

public final class VirtualMachineScaleSetSkuCapacity
implements JsonSerializable<VirtualMachineScaleSetSkuCapacity>

Describes scaling information of a sku.

Constructor Summary

Constructor Description
VirtualMachineScaleSetSkuCapacity()

Creates an instance of VirtualMachineScaleSetSkuCapacity class.

Method Summary

Modifier and Type Method and Description
Long defaultCapacity()

Get the defaultCapacity property: The default capacity.

static VirtualMachineScaleSetSkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetSkuCapacity from the JsonReader.

Long maximum()

Get the maximum property: The maximum capacity that can be set.

Long minimum()

Get the minimum property: The minimum capacity.

VirtualMachineScaleSetSkuScaleType scaleType()

Get the scaleType property: The scale type applicable to the sku.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineScaleSetSkuCapacity

public VirtualMachineScaleSetSkuCapacity()

Creates an instance of VirtualMachineScaleSetSkuCapacity class.

Method Details

defaultCapacity

public Long defaultCapacity()

Get the defaultCapacity property: The default capacity.

Returns:

the defaultCapacity value.

fromJson

public static VirtualMachineScaleSetSkuCapacity fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetSkuCapacity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineScaleSetSkuCapacity 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 VirtualMachineScaleSetSkuCapacity.

maximum

public Long maximum()

Get the maximum property: The maximum capacity that can be set.

Returns:

the maximum value.

minimum

public Long minimum()

Get the minimum property: The minimum capacity.

Returns:

the minimum value.

scaleType

public VirtualMachineScaleSetSkuScaleType scaleType()

Get the scaleType property: The scale type applicable to the sku.

Returns:

the scaleType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to