Class PriorityMixPolicy

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

public final class PriorityMixPolicy extends Object
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 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.