PriorityMixPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. PriorityMixPolicy
- com.
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 Priority |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
baseRegularPriorityCount()
Get the base |
static
Priority |
fromJson(JsonReader jsonReader)
Reads an instance of Priority |
Integer |
regularPriorityPercentageAboveBase()
Get the regular |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Priority |
withBaseRegularPriorityCount(Integer baseRegularPriorityCount)
Set the base |
Priority |
withRegularPriorityPercentageAboveBase(Integer regularPriorityPercentageAboveBase)
Set the regular |
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:
fromJson
public static PriorityMixPolicy fromJson(JsonReader jsonReader)
Reads an instance of PriorityMixPolicy from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java