### YamlMime:JavaType
uid: "com.microsoft.azure.management.storage.Restriction"
fullName: "com.microsoft.azure.management.storage.Restriction"
name: "Restriction"
nameWithType: "Restriction"
summary: "The restriction because of which SKU cannot be used."
inheritances:
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public class **Restriction**"
constructors:
- uid: "com.microsoft.azure.management.storage.Restriction.Restriction()"
fullName: "com.microsoft.azure.management.storage.Restriction.Restriction()"
name: "Restriction()"
nameWithType: "Restriction.Restriction()"
syntax: "public Restriction()"
methods:
- uid: "com.microsoft.azure.management.storage.Restriction.reasonCode()"
fullName: "com.microsoft.azure.management.storage.Restriction.reasonCode()"
name: "reasonCode()"
nameWithType: "Restriction.reasonCode()"
summary: "Get the reason for the restriction."
syntax: "public ReasonCode reasonCode()"
desc: "Get 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. Possible values include: 'QuotaId', 'NotAvailableForSubscription'."
returns:
description: "the reasonCode value"
type: ""
- uid: "com.microsoft.azure.management.storage.Restriction.type()"
fullName: "com.microsoft.azure.management.storage.Restriction.type()"
name: "type()"
nameWithType: "Restriction.type()"
summary: "Get the type of restrictions."
syntax: "public String type()"
desc: "Get the type of restrictions. As of now only possible value for this is location."
returns:
description: "the type value"
type: ""
- uid: "com.microsoft.azure.management.storage.Restriction.values()"
fullName: "com.microsoft.azure.management.storage.Restriction.values()"
name: "values()"
nameWithType: "Restriction.values()"
summary: "Get the value of restrictions."
syntax: "public List values()"
desc: "Get 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: "<>"
- uid: "com.microsoft.azure.management.storage.Restriction.withReasonCode(com.microsoft.azure.management.storage.ReasonCode)"
fullName: "com.microsoft.azure.management.storage.Restriction.withReasonCode(ReasonCode reasonCode)"
name: "withReasonCode(ReasonCode reasonCode)"
nameWithType: "Restriction.withReasonCode(ReasonCode reasonCode)"
summary: "Set the reason for the restriction."
parameters:
- description: "the reasonCode value to set"
name: "reasonCode"
type: ""
syntax: "public Restriction withReasonCode(ReasonCode reasonCode)"
desc: "Set 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. Possible values include: 'QuotaId', 'NotAvailableForSubscription'."
returns:
description: "the Restriction object itself."
type: ""
type: "class"
desc: "The restriction because of which SKU cannot be used."
metadata: {}
package: "com.microsoft.azure.management.storage"
artifact: com.microsoft.azure:azure-mgmt-storage:1.41.4