Class KeyVaultProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.KeyVaultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultProperties>
public final class KeyVaultProperties
extends Object
implements com.azure.json.JsonSerializable<KeyVaultProperties>
The KeyVaultProperties model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultProperties from the JsonReader.identity()Get the identity property: The client id of the identity which will be used to access key vault.Get the keyIdentifier property: Key vault uri to access the encryption key.Get the keyRotationEnabled property: Auto key rotation status for a CMK enabled registry.Get the lastKeyRotationTimestamp property: Timestamp of the last successful key rotation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the versionedKeyIdentifier property: The fully qualified key identifier that includes the version of the key that is actually used for encryption.withIdentity(String identity) Set the identity property: The client id of the identity which will be used to access key vault.withKeyIdentifier(String keyIdentifier) Set the keyIdentifier property: Key vault uri to access the encryption 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
-
KeyVaultProperties
public KeyVaultProperties()Creates an instance of KeyVaultProperties class.
-
-
Method Details
-
keyIdentifier
Get the keyIdentifier property: Key vault uri to access the encryption key.- Returns:
- the keyIdentifier value.
-
withKeyIdentifier
Set the keyIdentifier property: Key vault uri to access the encryption key.- Parameters:
keyIdentifier- the keyIdentifier value to set.- Returns:
- the KeyVaultProperties object itself.
-
versionedKeyIdentifier
Get the versionedKeyIdentifier property: The fully qualified key identifier that includes the version of the key that is actually used for encryption.- Returns:
- the versionedKeyIdentifier value.
-
identity
Get the identity property: The client id of the identity which will be used to access key vault.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The client id of the identity which will be used to access key vault.- Parameters:
identity- the identity value to set.- Returns:
- the KeyVaultProperties object itself.
-
keyRotationEnabled
Get the keyRotationEnabled property: Auto key rotation status for a CMK enabled registry.- Returns:
- the keyRotationEnabled value.
-
lastKeyRotationTimestamp
Get the lastKeyRotationTimestamp property: Timestamp of the last successful key rotation.- 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<KeyVaultProperties>- Throws:
IOException
-
fromJson
Reads an instance of KeyVaultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KeyVaultProperties 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 KeyVaultProperties.
-