Class KeyForDiskEncryptionSet
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.KeyForDiskEncryptionSet
-
public final class KeyForDiskEncryptionSet extends Object
Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.
-
-
Constructor Summary
Constructors Constructor Description KeyForDiskEncryptionSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringkeyUrl()Get the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault.SourceVaultsourceVault()Get the sourceVault property: Resource id of the KeyVault containing the key or secret.voidvalidate()Validates the instance.KeyForDiskEncryptionSetwithKeyUrl(String keyUrl)Set the keyUrl property: Fully versioned Key Url pointing to a key in KeyVault.KeyForDiskEncryptionSetwithSourceVault(SourceVault sourceVault)Set the sourceVault property: Resource id of the KeyVault containing the key or secret.
-
-
-
Method Detail
-
sourceVault
public SourceVault 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
public KeyForDiskEncryptionSet withSourceVault(SourceVault sourceVault)
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
public String 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
public KeyForDiskEncryptionSet withKeyUrl(String keyUrl)
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.
-
-