Class ResourceSkuRestrictions


  • public final class ResourceSkuRestrictions
    extends Object
    Describes restrictions of a SKU.
    • Constructor Detail

      • ResourceSkuRestrictions

        public ResourceSkuRestrictions()
    • Method Detail

      • values

        public List<String> values()
        Get the values property: The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
        Returns:
        the values value.
      • withValues

        public ResourceSkuRestrictions withValues​(List<String> values)
        Set the values property: The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
        Parameters:
        values - the values value to set.
        Returns:
        the ResourceSkuRestrictions object itself.
      • restrictionInfo

        public ResourceSkuRestrictionInfo restrictionInfo()
        Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.
        Returns:
        the restrictionInfo value.
      • withRestrictionInfo

        public ResourceSkuRestrictions withRestrictionInfo​(ResourceSkuRestrictionInfo restrictionInfo)
        Set the restrictionInfo property: The information about the restriction where the SKU cannot be used.
        Parameters:
        restrictionInfo - the restrictionInfo value to set.
        Returns:
        the ResourceSkuRestrictions object itself.
      • validate

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