azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.s...

122 строки
8.7 KiB
YAML

### 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:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **Restriction**</br> implements <xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.storage.models.Restriction?alt=com.azure.resourcemanager.storage.models.Restriction&text=Restriction\" data-throw-if-not-resolved=\"False\" />&gt;"
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 Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static Restriction fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the Restriction."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
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: "<xref href=\"com.azure.resourcemanager.storage.models.Restriction?alt=com.azure.resourcemanager.storage.models.Restriction&text=Restriction\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.storage.models.Restriction.reasonCode()"
fullName: "com.azure.resourcemanager.storage.models.Restriction.reasonCode()"
name: "reasonCode()"
nameWithType: "Restriction.reasonCode()"
summary: "Get the reason<wbr>Code 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: "<xref href=\"com.azure.resourcemanager.storage.models.ReasonCode?alt=com.azure.resourcemanager.storage.models.ReasonCode&text=ReasonCode\" data-throw-if-not-resolved=\"False\" />"
- 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: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- 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: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- 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<String> 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: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
- 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 reason<wbr>Code property: The reason for the restriction."
parameters:
- description: "the reasonCode value to set."
name: "reasonCode"
type: "<xref href=\"com.azure.resourcemanager.storage.models.ReasonCode?alt=com.azure.resourcemanager.storage.models.ReasonCode&text=ReasonCode\" data-throw-if-not-resolved=\"False\" />"
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: "<xref href=\"com.azure.resourcemanager.storage.models.Restriction?alt=com.azure.resourcemanager.storage.models.Restriction&text=Restriction\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The restriction because of which SKU cannot be used."
implements:
- "<xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.storage.models.Restriction?alt=com.azure.resourcemanager.storage.models.Restriction&text=Restriction\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.storage.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-storage:2.42.0