Class EncryptionProperty
java.lang.Object
com.azure.resourcemanager.machinelearning.models.EncryptionProperty
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionProperty>
public final class EncryptionProperty
extends Object
implements com.azure.json.JsonSerializable<EncryptionProperty>
The EncryptionProperty model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionPropertyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionProperty from the JsonReader.identity()Get the identity property: The identity that will be used to access the key vault for encryption at rest.Get the keyVaultProperties property: Customer Key vault properties.status()Get the status property: Indicates whether or not the encryption is enabled for the workspace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIdentity(IdentityForCmk identity) Set the identity property: The identity that will be used to access the key vault for encryption at rest.withKeyVaultProperties(EncryptionKeyVaultProperties keyVaultProperties) Set the keyVaultProperties property: Customer Key vault properties.withStatus(EncryptionStatus status) Set the status property: Indicates whether or not the encryption is enabled for the workspace.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
-
EncryptionProperty
public EncryptionProperty()Creates an instance of EncryptionProperty class.
-
-
Method Details
-
status
Get the status property: Indicates whether or not the encryption is enabled for the workspace.- Returns:
- the status value.
-
withStatus
Set the status property: Indicates whether or not the encryption is enabled for the workspace.- Parameters:
status- the status value to set.- Returns:
- the EncryptionProperty object itself.
-
identity
Get the identity property: The identity that will be used to access the key vault for encryption at rest.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity that will be used to access the key vault for encryption at rest.- Parameters:
identity- the identity value to set.- Returns:
- the EncryptionProperty object itself.
-
keyVaultProperties
Get the keyVaultProperties property: Customer Key vault properties.- Returns:
- the keyVaultProperties value.
-
withKeyVaultProperties
Set the keyVaultProperties property: Customer Key vault properties.- Parameters:
keyVaultProperties- the keyVaultProperties value to set.- Returns:
- the EncryptionProperty 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<EncryptionProperty>- Throws:
IOException
-
fromJson
Reads an instance of EncryptionProperty from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncryptionProperty 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 EncryptionProperty.
-