Class EncryptionProperties
java.lang.Object
com.azure.resourcemanager.containerinstance.models.EncryptionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionProperties>
public final class EncryptionProperties
extends Object
implements com.azure.json.JsonSerializable<EncryptionProperties>
The container group encryption properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionProperties from the JsonReader.identity()Get the identity property: The keyvault managed identity.keyName()Get the keyName property: The encryption key name.Get the keyVersion property: The encryption key version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vaultBaseUrl property: The keyvault base url.withIdentity(String identity) Set the identity property: The keyvault managed identity.withKeyName(String keyName) Set the keyName property: The encryption key name.withKeyVersion(String keyVersion) Set the keyVersion property: The encryption key version.withVaultBaseUrl(String vaultBaseUrl) Set the vaultBaseUrl property: The keyvault base url.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
-
EncryptionProperties
public EncryptionProperties()Creates an instance of EncryptionProperties class.
-
-
Method Details
-
vaultBaseUrl
Get the vaultBaseUrl property: The keyvault base url.- Returns:
- the vaultBaseUrl value.
-
withVaultBaseUrl
Set the vaultBaseUrl property: The keyvault base url.- Parameters:
vaultBaseUrl- the vaultBaseUrl value to set.- Returns:
- the EncryptionProperties object itself.
-
keyName
Get the keyName property: The encryption key name.- Returns:
- the keyName value.
-
withKeyName
Set the keyName property: The encryption key name.- Parameters:
keyName- the keyName value to set.- Returns:
- the EncryptionProperties object itself.
-
keyVersion
Get the keyVersion property: The encryption key version.- Returns:
- the keyVersion value.
-
withKeyVersion
Set the keyVersion property: The encryption key version.- Parameters:
keyVersion- the keyVersion value to set.- Returns:
- the EncryptionProperties object itself.
-
identity
Get the identity property: The keyvault managed identity.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The keyvault managed identity.- Parameters:
identity- the identity value to set.- Returns:
- the EncryptionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EncryptionProperties>- Throws:
IOException
-
fromJson
public static EncryptionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EncryptionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncryptionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EncryptionProperties.
-