Class KeyForDiskEncryptionSet
java.lang.Object
com.azure.resourcemanager.compute.models.KeyForDiskEncryptionSet
Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkeyUrl()Get the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault.Get the sourceVault property: Resource id of the KeyVault containing the key or secret.voidvalidate()Validates the instance.withKeyUrl(String keyUrl) Set the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault.withSourceVault(SourceVault sourceVault) Set the sourceVault property: Resource id of the KeyVault containing the key or secret.
-
Constructor Details
-
KeyForDiskEncryptionSet
public KeyForDiskEncryptionSet()
-
-
Method Details
-
sourceVault
Get the sourceVault property: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription.- Returns:
- the sourceVault value.
-
withSourceVault
Set the sourceVault property: Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription.- Parameters:
sourceVault- the sourceVault value to set.- Returns:
- the KeyForDiskEncryptionSet object itself.
-
keyUrl
Get the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.- Returns:
- the keyUrl value.
-
withKeyUrl
Set the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.- Parameters:
keyUrl- the keyUrl value to set.- Returns:
- the KeyForDiskEncryptionSet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-