Class SkuRestriction

java.lang.Object
com.azure.resourcemanager.workloads.models.SkuRestriction

public final class SkuRestriction extends Object
The SKU restriction definition.
  • Constructor Details

    • SkuRestriction

      public SkuRestriction()
  • Method Details

    • type

      public SkuRestrictionType type()
      Get the type property: The SKU restriction type.
      Returns:
      the type value.
    • withType

      public SkuRestriction withType(SkuRestrictionType type)
      Set the type property: The SKU restriction type.
      Parameters:
      type - the type value to set.
      Returns:
      the SkuRestriction object itself.
    • values

      public List<String> values()
      Get the values property: Restriction values.
      Returns:
      the values value.
    • withValues

      public SkuRestriction withValues(List<String> values)
      Set the values property: Restriction values.
      Parameters:
      values - the values value to set.
      Returns:
      the SkuRestriction object itself.
    • restrictionInfo

      public Object restrictionInfo()
      Get the restrictionInfo property: The restriction information.
      Returns:
      the restrictionInfo value.
    • withRestrictionInfo

      public SkuRestriction withRestrictionInfo(Object restrictionInfo)
      Set the restrictionInfo property: The restriction information.
      Parameters:
      restrictionInfo - the restrictionInfo value to set.
      Returns:
      the SkuRestriction object itself.
    • reasonCode

      public SkuRestrictionReasonCode reasonCode()
      Get the reasonCode property: The SKU restriction reason code.
      Returns:
      the reasonCode value.
    • withReasonCode

      public SkuRestriction withReasonCode(SkuRestrictionReasonCode reasonCode)
      Set the reasonCode property: The SKU restriction reason code.
      Parameters:
      reasonCode - the reasonCode value to set.
      Returns:
      the SkuRestriction object itself.
    • validate

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