Class Restriction


  • public final class Restriction
    extends Object
    The restriction because of which SKU cannot be used.
    • Constructor Detail

      • Restriction

        public Restriction()
    • Method Detail

      • type

        public String type()
        Get the type property: The type of restrictions. As of now only possible value for this is location.
        Returns:
        the type value.
      • 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.
      • reasonCode

        public ReasonCode reasonCode()
        Get the reasonCode property: The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC.
        Returns:
        the reasonCode value.
      • withReasonCode

        public Restriction withReasonCode​(ReasonCode reasonCode)
        Set the reasonCode property: The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC.
        Parameters:
        reasonCode - the reasonCode value to set.
        Returns:
        the Restriction object itself.
      • validate

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