Class EncryptionDetails
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails
-
public final class EncryptionDetails extends Object
Details needed if the VM was encrypted at the time of backup.
-
-
Constructor Summary
Constructors Constructor Description EncryptionDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
encryptionEnabled()
Get the encryptionEnabled property: Identifies whether this backup copy represents an encrypted VM at the time of backup.String
kekUrl()
Get the kekUrl property: Key Url.String
kekVaultId()
Get the kekVaultId property: ID of Key Vault where KEK is stored.String
secretKeyUrl()
Get the secretKeyUrl property: Secret Url.String
secretKeyVaultId()
Get the secretKeyVaultId property: ID of Key Vault where Secret is stored.void
validate()
Validates the instance.EncryptionDetails
withEncryptionEnabled(Boolean encryptionEnabled)
Set the encryptionEnabled property: Identifies whether this backup copy represents an encrypted VM at the time of backup.EncryptionDetails
withKekUrl(String kekUrl)
Set the kekUrl property: Key Url.EncryptionDetails
withKekVaultId(String kekVaultId)
Set the kekVaultId property: ID of Key Vault where KEK is stored.EncryptionDetails
withSecretKeyUrl(String secretKeyUrl)
Set the secretKeyUrl property: Secret Url.EncryptionDetails
withSecretKeyVaultId(String secretKeyVaultId)
Set the secretKeyVaultId property: ID of Key Vault where Secret is stored.
-
-
-
Method Detail
-
encryptionEnabled
public Boolean encryptionEnabled()
Get the encryptionEnabled property: Identifies whether this backup copy represents an encrypted VM at the time of backup.- Returns:
- the encryptionEnabled value.
-
withEncryptionEnabled
public EncryptionDetails withEncryptionEnabled(Boolean encryptionEnabled)
Set the encryptionEnabled property: Identifies whether this backup copy represents an encrypted VM at the time of backup.- Parameters:
encryptionEnabled
- the encryptionEnabled value to set.- Returns:
- the EncryptionDetails object itself.
-
kekUrl
public String kekUrl()
Get the kekUrl property: Key Url.- Returns:
- the kekUrl value.
-
withKekUrl
public EncryptionDetails withKekUrl(String kekUrl)
Set the kekUrl property: Key Url.- Parameters:
kekUrl
- the kekUrl value to set.- Returns:
- the EncryptionDetails object itself.
-
secretKeyUrl
public String secretKeyUrl()
Get the secretKeyUrl property: Secret Url.- Returns:
- the secretKeyUrl value.
-
withSecretKeyUrl
public EncryptionDetails withSecretKeyUrl(String secretKeyUrl)
Set the secretKeyUrl property: Secret Url.- Parameters:
secretKeyUrl
- the secretKeyUrl value to set.- Returns:
- the EncryptionDetails object itself.
-
kekVaultId
public String kekVaultId()
Get the kekVaultId property: ID of Key Vault where KEK is stored.- Returns:
- the kekVaultId value.
-
withKekVaultId
public EncryptionDetails withKekVaultId(String kekVaultId)
Set the kekVaultId property: ID of Key Vault where KEK is stored.- Parameters:
kekVaultId
- the kekVaultId value to set.- Returns:
- the EncryptionDetails object itself.
-
secretKeyVaultId
public String secretKeyVaultId()
Get the secretKeyVaultId property: ID of Key Vault where Secret is stored.- Returns:
- the secretKeyVaultId value.
-
withSecretKeyVaultId
public EncryptionDetails withSecretKeyVaultId(String secretKeyVaultId)
Set the secretKeyVaultId property: ID of Key Vault where Secret is stored.- Parameters:
secretKeyVaultId
- the secretKeyVaultId value to set.- Returns:
- the EncryptionDetails object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-