StorageAccountKey Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.StorageAccountKey

Implements

public final class StorageAccountKey
implements JsonSerializable<StorageAccountKey>

An access key for the storage account.

Constructor Summary

Constructor Description
StorageAccountKey()

Creates an instance of StorageAccountKey class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationTime()

Get the creationTime property: Creation time of the key, in round trip date format.

static StorageAccountKey fromJson(JsonReader jsonReader)

Reads an instance of StorageAccountKey from the JsonReader.

String keyName()

Get the keyName property: Name of the key.

KeyPermission permissions()

Get the permissions property: Permissions for the key -- read-only or full permissions.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Base 64-encoded value of the key.

Methods inherited from java.lang.Object

Constructor Details

StorageAccountKey

public StorageAccountKey()

Creates an instance of StorageAccountKey class.

Method Details

creationTime

public OffsetDateTime creationTime()

Get the creationTime property: Creation time of the key, in round trip date format.

Returns:

the creationTime value.

fromJson

public static StorageAccountKey fromJson(JsonReader jsonReader)

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.

keyName

public String keyName()

Get the keyName property: Name of the key.

Returns:

the keyName value.

permissions

public KeyPermission permissions()

Get the permissions property: Permissions for the key -- read-only or full permissions.

Returns:

the permissions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Base 64-encoded value of the key.

Returns:

the value value.

Applies to