Class EncryptionProperties
java.lang.Object
com.azure.resourcemanager.automation.models.EncryptionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionProperties>
public final class EncryptionProperties
extends Object
implements com.azure.json.JsonSerializable<EncryptionProperties>
The encryption settings for automation account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionProperties from the JsonReader.identity()
Get the identity property: User identity used for CMK.Get the keySource property: Encryption Key Source.Get the keyVaultProperties property: Key vault properties.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withIdentity
(EncryptionPropertiesIdentity identity) Set the identity property: User identity used for CMK.withKeySource
(EncryptionKeySourceType keySource) Set the keySource property: Encryption Key Source.withKeyVaultProperties
(KeyVaultProperties keyVaultProperties) Set the keyVaultProperties property: Key vault properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EncryptionProperties
public EncryptionProperties()Creates an instance of EncryptionProperties class.
-
-
Method Details
-
keyVaultProperties
Get the keyVaultProperties property: Key vault properties.- Returns:
- the keyVaultProperties value.
-
withKeyVaultProperties
Set the keyVaultProperties property: Key vault properties.- Parameters:
keyVaultProperties
- the keyVaultProperties value to set.- Returns:
- the EncryptionProperties object itself.
-
keySource
Get the keySource property: Encryption Key Source.- Returns:
- the keySource value.
-
withKeySource
Set the keySource property: Encryption Key Source.- Parameters:
keySource
- the keySource value to set.- Returns:
- the EncryptionProperties object itself.
-
identity
Get the identity property: User identity used for CMK.- Returns:
- the identity value.
-
withIdentity
Set the identity property: User identity used for CMK.- 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:
toJson
in 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:
IOException
- If an error occurs while reading the EncryptionProperties.
-