PriorityMixPolicy Class

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

Implements

public final class PriorityMixPolicy
implements JsonSerializable<PriorityMixPolicy>

Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode. With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached.

Constructor Summary

Constructor Description
PriorityMixPolicy()

Creates an instance of PriorityMixPolicy class.

Method Summary

Modifier and Type Method and Description
Integer baseRegularPriorityCount()

Get the baseRegularPriorityCount property: The base number of regular priority VMs that will be created in this scale set as it scales out.

static PriorityMixPolicy fromJson(JsonReader jsonReader)

Reads an instance of PriorityMixPolicy from the JsonReader.

Integer regularPriorityPercentageAboveBase()

Get the regularPriorityPercentageAboveBase property: The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PriorityMixPolicy withBaseRegularPriorityCount(Integer baseRegularPriorityCount)

Set the baseRegularPriorityCount property: The base number of regular priority VMs that will be created in this scale set as it scales out.

PriorityMixPolicy withRegularPriorityPercentageAboveBase(Integer regularPriorityPercentageAboveBase)

Set the regularPriorityPercentageAboveBase property: The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority.

Methods inherited from java.lang.Object

Constructor Details

PriorityMixPolicy

public PriorityMixPolicy()

Creates an instance of PriorityMixPolicy class.

Method Details

baseRegularPriorityCount

public Integer baseRegularPriorityCount()

Get the baseRegularPriorityCount property: The base number of regular priority VMs that will be created in this scale set as it scales out.

Returns:

the baseRegularPriorityCount value.

fromJson

public static PriorityMixPolicy fromJson(JsonReader jsonReader)

Reads an instance of PriorityMixPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

regularPriorityPercentageAboveBase

public Integer regularPriorityPercentageAboveBase()

Get the regularPriorityPercentageAboveBase property: The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority.

Returns:

the regularPriorityPercentageAboveBase value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBaseRegularPriorityCount

public PriorityMixPolicy withBaseRegularPriorityCount(Integer baseRegularPriorityCount)

Set the baseRegularPriorityCount property: The base number of regular priority VMs that will be created in this scale set as it scales out.

Parameters:

baseRegularPriorityCount - the baseRegularPriorityCount value to set.

Returns:

the PriorityMixPolicy object itself.

withRegularPriorityPercentageAboveBase

public PriorityMixPolicy withRegularPriorityPercentageAboveBase(Integer regularPriorityPercentageAboveBase)

Set the regularPriorityPercentageAboveBase property: The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority.

Parameters:

regularPriorityPercentageAboveBase - the regularPriorityPercentageAboveBase value to set.

Returns:

the PriorityMixPolicy object itself.

Applies to