KeyForDiskEncryptionSet Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. KeyForDiskEncryptionSet
- com.
Implements
public final class KeyForDiskEncryptionSet
implements JsonSerializable<KeyForDiskEncryptionSet>
Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots.
Constructor Summary
Constructor | Description |
---|---|
KeyForDiskEncryptionSet() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
String |
keyUrl()
Get the key |
Source |
sourceVault()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Key |
withKeyUrl(String keyUrl)
Set the key |
Key |
withSourceVault(SourceVault sourceVault)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
KeyForDiskEncryptionSet
public KeyForDiskEncryptionSet()
Creates an instance of KeyForDiskEncryptionSet class.
Method Details
fromJson
public static KeyForDiskEncryptionSet fromJson(JsonReader jsonReader)
Reads an instance of KeyForDiskEncryptionSet from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java