DiskEncryptionSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. DiskEncryptionSettings
- com.
Implements
public final class DiskEncryptionSettings
implements JsonSerializable<DiskEncryptionSettings>
Describes a Encryption Settings for a Disk.
Constructor Summary
Constructor | Description |
---|---|
DiskEncryptionSettings() |
Creates an instance of Disk |
Method Summary
Modifier and Type | Method and Description |
---|---|
Key |
diskEncryptionKey()
Get the disk |
Boolean |
enabled()
Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine. |
static
Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk |
Key |
keyEncryptionKey()
Get the key |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Disk |
withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey)
Set the disk |
Disk |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine. |
Disk |
withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
DiskEncryptionSettings
public DiskEncryptionSettings()
Creates an instance of DiskEncryptionSettings class.
Method Details
diskEncryptionKey
public KeyVaultSecretReference diskEncryptionKey()
Get the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.
Returns:
fromJson
public static DiskEncryptionSettings fromJson(JsonReader jsonReader)
Reads an instance of DiskEncryptionSettings from the JsonReader.
Parameters:
Returns:
Throws:
keyEncryptionKey
public KeyVaultKeyReference keyEncryptionKey()
Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDiskEncryptionKey
public DiskEncryptionSettings withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey)
Set the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.
Parameters:
Returns:
withEnabled
public DiskEncryptionSettings withEnabled(Boolean enabled)
Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.
Parameters:
Returns:
withKeyEncryptionKey
public DiskEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)
Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.
Parameters:
Returns:
Applies to
Azure SDK for Java