### YamlMime:JavaType uid: "com.azure.resourcemanager.storage.models.Restriction" fullName: "com.azure.resourcemanager.storage.models.Restriction" name: "Restriction" nameWithType: "Restriction" summary: "The restriction because of which SKU cannot be used." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **Restriction**
implements <>" constructors: - uid: "com.azure.resourcemanager.storage.models.Restriction.Restriction()" fullName: "com.azure.resourcemanager.storage.models.Restriction.Restriction()" name: "Restriction()" nameWithType: "Restriction.Restriction()" summary: "Creates an instance of Restriction class." syntax: "public Restriction()" desc: "Creates an instance of Restriction class." methods: - uid: "com.azure.resourcemanager.storage.models.Restriction.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.resourcemanager.storage.models.Restriction.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "Restriction.fromJson(JsonReader jsonReader)" summary: "Reads an instance of Restriction from the JsonReader." modifiers: - "static" parameters: - description: "The JsonReader being read." name: "jsonReader" type: "" syntax: "public static Restriction fromJson(JsonReader jsonReader)" exceptions: - description: "If an error occurs while reading the Restriction." type: "IOException" desc: "Reads an instance of Restriction from the JsonReader." returns: description: "An instance of Restriction if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null." type: "" - uid: "com.azure.resourcemanager.storage.models.Restriction.reasonCode()" fullName: "com.azure.resourcemanager.storage.models.Restriction.reasonCode()" name: "reasonCode()" nameWithType: "Restriction.reasonCode()" summary: "Get the reasonCode property: The reason for the restriction." syntax: "public ReasonCode reasonCode()" desc: "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: description: "the reasonCode value." type: "" - uid: "com.azure.resourcemanager.storage.models.Restriction.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.resourcemanager.storage.models.Restriction.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "Restriction.toJson(JsonWriter jsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" - uid: "com.azure.resourcemanager.storage.models.Restriction.type()" fullName: "com.azure.resourcemanager.storage.models.Restriction.type()" name: "type()" nameWithType: "Restriction.type()" summary: "Get the type property: The type of restrictions." syntax: "public String type()" desc: "Get the type property: The type of restrictions. As of now only possible value for this is location." returns: description: "the type value." type: "String" - uid: "com.azure.resourcemanager.storage.models.Restriction.validate()" fullName: "com.azure.resourcemanager.storage.models.Restriction.validate()" name: "validate()" nameWithType: "Restriction.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.storage.models.Restriction.values()" fullName: "com.azure.resourcemanager.storage.models.Restriction.values()" name: "values()" nameWithType: "Restriction.values()" summary: "Get the values property: The value of restrictions." syntax: "public List values()" desc: "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: description: "the values value." type: "List<String>" - uid: "com.azure.resourcemanager.storage.models.Restriction.withReasonCode(com.azure.resourcemanager.storage.models.ReasonCode)" fullName: "com.azure.resourcemanager.storage.models.Restriction.withReasonCode(ReasonCode reasonCode)" name: "withReasonCode(ReasonCode reasonCode)" nameWithType: "Restriction.withReasonCode(ReasonCode reasonCode)" summary: "Set the reasonCode property: The reason for the restriction." parameters: - description: "the reasonCode value to set." name: "reasonCode" type: "" syntax: "public Restriction withReasonCode(ReasonCode reasonCode)" desc: "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." returns: description: "the Restriction object itself." type: "" type: "class" desc: "The restriction because of which SKU cannot be used." implements: - "<>" metadata: {} package: "com.azure.resourcemanager.storage.models" artifact: com.azure.resourcemanager:azure-resourcemanager-storage:2.42.0