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

102 строки
7.0 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.storage.models.KeyPolicy"
fullName: "com.azure.resourcemanager.storage.models.KeyPolicy"
name: "KeyPolicy"
nameWithType: "KeyPolicy"
summary: "Key<wbr>Policy assigned to the storage account."
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 **KeyPolicy**</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.KeyPolicy?alt=com.azure.resourcemanager.storage.models.KeyPolicy&text=KeyPolicy\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.storage.models.KeyPolicy.KeyPolicy()"
fullName: "com.azure.resourcemanager.storage.models.KeyPolicy.KeyPolicy()"
name: "KeyPolicy()"
nameWithType: "KeyPolicy.KeyPolicy()"
summary: "Creates an instance of Key<wbr>Policy class."
syntax: "public KeyPolicy()"
desc: "Creates an instance of KeyPolicy class."
methods:
- uid: "com.azure.resourcemanager.storage.models.KeyPolicy.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.storage.models.KeyPolicy.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "KeyPolicy.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Key<wbr>Policy 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 KeyPolicy fromJson(JsonReader jsonReader)"
exceptions:
- description: "If the deserialized JSON object was missing any required properties."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of KeyPolicy from the JsonReader."
returns:
description: "An instance of KeyPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing\n to JSON null."
type: "<xref href=\"com.azure.resourcemanager.storage.models.KeyPolicy?alt=com.azure.resourcemanager.storage.models.KeyPolicy&text=KeyPolicy\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.storage.models.KeyPolicy.keyExpirationPeriodInDays()"
fullName: "com.azure.resourcemanager.storage.models.KeyPolicy.keyExpirationPeriodInDays()"
name: "keyExpirationPeriodInDays()"
nameWithType: "KeyPolicy.keyExpirationPeriodInDays()"
summary: "Get the key<wbr>Expiration<wbr>Period<wbr>InDays property: The key expiration period in days."
syntax: "public int keyExpirationPeriodInDays()"
desc: "Get the keyExpirationPeriodInDays property: The key expiration period in days."
returns:
description: "the keyExpirationPeriodInDays value."
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.storage.models.KeyPolicy.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.storage.models.KeyPolicy.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "KeyPolicy.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.KeyPolicy.validate()"
fullName: "com.azure.resourcemanager.storage.models.KeyPolicy.validate()"
name: "validate()"
nameWithType: "KeyPolicy.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.storage.models.KeyPolicy.withKeyExpirationPeriodInDays(int)"
fullName: "com.azure.resourcemanager.storage.models.KeyPolicy.withKeyExpirationPeriodInDays(int keyExpirationPeriodInDays)"
name: "withKeyExpirationPeriodInDays(int keyExpirationPeriodInDays)"
nameWithType: "KeyPolicy.withKeyExpirationPeriodInDays(int keyExpirationPeriodInDays)"
summary: "Set the key<wbr>Expiration<wbr>Period<wbr>InDays property: The key expiration period in days."
parameters:
- description: "the keyExpirationPeriodInDays value to set."
name: "keyExpirationPeriodInDays"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "public KeyPolicy withKeyExpirationPeriodInDays(int keyExpirationPeriodInDays)"
desc: "Set the keyExpirationPeriodInDays property: The key expiration period in days."
returns:
description: "the KeyPolicy object itself."
type: "<xref href=\"com.azure.resourcemanager.storage.models.KeyPolicy?alt=com.azure.resourcemanager.storage.models.KeyPolicy&text=KeyPolicy\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "KeyPolicy assigned to the storage account."
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.KeyPolicy?alt=com.azure.resourcemanager.storage.models.KeyPolicy&text=KeyPolicy\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.storage.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-storage:2.42.0