Class EncryptionScopeKeyVaultProperties
java.lang.Object
com.azure.resourcemanager.storage.models.EncryptionScopeKeyVaultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionScopeKeyVaultProperties>
public final class EncryptionScopeKeyVaultProperties
extends Object
implements com.azure.json.JsonSerializable<EncryptionScopeKeyVaultProperties>
The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is
set to 'Microsoft.KeyVault'.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EncryptionScopeKeyVaultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the currentVersionedKeyIdentifier property: The object identifier of the current versioned Key Vault Key in use.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionScopeKeyVaultProperties from the JsonReader.keyUri()Get the keyUri property: The object identifier for a key vault key object.Get the lastKeyRotationTimestamp property: Timestamp of last rotation of the Key Vault Key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeyUri(String keyUri) Set the keyUri property: The object identifier for a key vault key object.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
-
EncryptionScopeKeyVaultProperties
public EncryptionScopeKeyVaultProperties()Creates an instance of EncryptionScopeKeyVaultProperties class.
-
-
Method Details
-
keyUri
Get the keyUri property: The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed key support on this encryption scope.- Returns:
- the keyUri value.
-
withKeyUri
Set the keyUri property: The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed key support on this encryption scope.- Parameters:
keyUri- the keyUri value to set.- Returns:
- the EncryptionScopeKeyVaultProperties object itself.
-
currentVersionedKeyIdentifier
Get the currentVersionedKeyIdentifier property: The object identifier of the current versioned Key Vault Key in use.- Returns:
- the currentVersionedKeyIdentifier value.
-
lastKeyRotationTimestamp
Get the lastKeyRotationTimestamp property: Timestamp of last rotation of the Key Vault Key.- Returns:
- the lastKeyRotationTimestamp 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<EncryptionScopeKeyVaultProperties>- Throws:
IOException
-
fromJson
public static EncryptionScopeKeyVaultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EncryptionScopeKeyVaultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncryptionScopeKeyVaultProperties 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 EncryptionScopeKeyVaultProperties.
-