Class StorageAccountKey
java.lang.Object
com.azure.resourcemanager.storage.models.StorageAccountKey
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageAccountKey>
public final class StorageAccountKey
extends Object
implements com.azure.json.JsonSerializable<StorageAccountKey>
An access key for the storage account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Creation time of the key, in round trip date format.static StorageAccountKeyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageAccountKey from the JsonReader.keyName()Get the keyName property: Name of the key.Get the permissions property: Permissions for the key -- read-only or full permissions.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: Base 64-encoded value of the key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StorageAccountKey
public StorageAccountKey()Creates an instance of StorageAccountKey class.
-
-
Method Details
-
keyName
Get the keyName property: Name of the key.- Returns:
- the keyName value.
-
value
Get the value property: Base 64-encoded value of the key.- Returns:
- the value value.
-
permissions
Get the permissions property: Permissions for the key -- read-only or full permissions.- Returns:
- the permissions value.
-
creationTime
Get the creationTime property: Creation time of the key, in round trip date format.- Returns:
- the creationTime value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StorageAccountKey>- Throws:
IOException
-
fromJson
Reads an instance of StorageAccountKey from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StorageAccountKey if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the StorageAccountKey.
-