Class DiskEncryptionSetUpdate
java.lang.Object
com.azure.resourcemanager.compute.models.DiskEncryptionSetUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskEncryptionSetUpdate>
public final class DiskEncryptionSetUpdate
extends Object
implements com.azure.json.JsonSerializable<DiskEncryptionSetUpdate>
disk encryption set update resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiskEncryptionSetUpdate class. -
Method Summary
Modifier and TypeMethodDescriptionGet the activeKey property: Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.Get the encryptionType property: The type of key used to encrypt the data of the disk.Get the federatedClientId property: Multi-tenant application client id to access key vault in a different tenant.static DiskEncryptionSetUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskEncryptionSetUpdate from the JsonReader.identity()Get the identity property: The managed identity for the disk encryption set.Get the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.tags()Get the tags property: Resource tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActiveKey(KeyForDiskEncryptionSet activeKey) Set the activeKey property: Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.withEncryptionType(DiskEncryptionSetType encryptionType) Set the encryptionType property: The type of key used to encrypt the data of the disk.withFederatedClientId(String federatedClientId) Set the federatedClientId property: Multi-tenant application client id to access key vault in a different tenant.withIdentity(EncryptionSetIdentity identity) Set the identity property: The managed identity for the disk encryption set.withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled) Set the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.Set the tags property: Resource tags.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
-
DiskEncryptionSetUpdate
public DiskEncryptionSetUpdate()Creates an instance of DiskEncryptionSetUpdate class.
-
-
Method Details
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags.- Parameters:
tags- the tags value to set.- Returns:
- the DiskEncryptionSetUpdate object itself.
-
identity
Get the identity property: The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.- Parameters:
identity- the identity value to set.- Returns:
- the DiskEncryptionSetUpdate object itself.
-
encryptionType
Get the encryptionType property: The type of key used to encrypt the data of the disk.- Returns:
- the encryptionType value.
-
withEncryptionType
Set the encryptionType property: The type of key used to encrypt the data of the disk.- Parameters:
encryptionType- the encryptionType value to set.- Returns:
- the DiskEncryptionSetUpdate object itself.
-
activeKey
Get the activeKey property: Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.- Returns:
- the activeKey value.
-
withActiveKey
Set the activeKey property: Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.- Parameters:
activeKey- the activeKey value to set.- Returns:
- the DiskEncryptionSetUpdate object itself.
-
rotationToLatestKeyVersionEnabled
Get the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.- Returns:
- the rotationToLatestKeyVersionEnabled value.
-
withRotationToLatestKeyVersionEnabled
public DiskEncryptionSetUpdate withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled) Set the rotationToLatestKeyVersionEnabled property: Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.- Parameters:
rotationToLatestKeyVersionEnabled- the rotationToLatestKeyVersionEnabled value to set.- Returns:
- the DiskEncryptionSetUpdate object itself.
-
federatedClientId
Get the federatedClientId property: Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property.- Returns:
- the federatedClientId value.
-
withFederatedClientId
Set the federatedClientId property: Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property.- Parameters:
federatedClientId- the federatedClientId value to set.- Returns:
- the DiskEncryptionSetUpdate 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<DiskEncryptionSetUpdate>- Throws:
IOException
-
fromJson
public static DiskEncryptionSetUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiskEncryptionSetUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskEncryptionSetUpdate 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 DiskEncryptionSetUpdate.
-