Class DataEncryption
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption
-
public final class DataEncryption extends Object
The date encryption for cmk.
-
-
Constructor Summary
Constructors Constructor Description DataEncryption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
geoBackupKeyUri()
Get the geoBackupKeyUri property: Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup.String
geoBackupUserAssignedIdentityId()
Get the geoBackupUserAssignedIdentityId property: Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup.String
primaryKeyUri()
Get the primaryKeyUri property: Primary key uri.String
primaryUserAssignedIdentityId()
Get the primaryUserAssignedIdentityId property: Primary user identity resource id.DataEncryptionType
type()
Get the type property: The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.void
validate()
Validates the instance.DataEncryption
withGeoBackupKeyUri(String geoBackupKeyUri)
Set the geoBackupKeyUri property: Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup.DataEncryption
withGeoBackupUserAssignedIdentityId(String geoBackupUserAssignedIdentityId)
Set the geoBackupUserAssignedIdentityId property: Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup.DataEncryption
withPrimaryKeyUri(String primaryKeyUri)
Set the primaryKeyUri property: Primary key uri.DataEncryption
withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)
Set the primaryUserAssignedIdentityId property: Primary user identity resource id.DataEncryption
withType(DataEncryptionType type)
Set the type property: The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
-
-
-
Method Detail
-
primaryUserAssignedIdentityId
public String primaryUserAssignedIdentityId()
Get the primaryUserAssignedIdentityId property: Primary user identity resource id.- Returns:
- the primaryUserAssignedIdentityId value.
-
withPrimaryUserAssignedIdentityId
public DataEncryption withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)
Set the primaryUserAssignedIdentityId property: Primary user identity resource id.- Parameters:
primaryUserAssignedIdentityId
- the primaryUserAssignedIdentityId value to set.- Returns:
- the DataEncryption object itself.
-
primaryKeyUri
public String primaryKeyUri()
Get the primaryKeyUri property: Primary key uri.- Returns:
- the primaryKeyUri value.
-
withPrimaryKeyUri
public DataEncryption withPrimaryKeyUri(String primaryKeyUri)
Set the primaryKeyUri property: Primary key uri.- Parameters:
primaryKeyUri
- the primaryKeyUri value to set.- Returns:
- the DataEncryption object itself.
-
geoBackupUserAssignedIdentityId
public String geoBackupUserAssignedIdentityId()
Get the geoBackupUserAssignedIdentityId property: Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup.- Returns:
- the geoBackupUserAssignedIdentityId value.
-
withGeoBackupUserAssignedIdentityId
public DataEncryption withGeoBackupUserAssignedIdentityId(String geoBackupUserAssignedIdentityId)
Set the geoBackupUserAssignedIdentityId property: Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup.- Parameters:
geoBackupUserAssignedIdentityId
- the geoBackupUserAssignedIdentityId value to set.- Returns:
- the DataEncryption object itself.
-
geoBackupKeyUri
public String geoBackupKeyUri()
Get the geoBackupKeyUri property: Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup.- Returns:
- the geoBackupKeyUri value.
-
withGeoBackupKeyUri
public DataEncryption withGeoBackupKeyUri(String geoBackupKeyUri)
Set the geoBackupKeyUri property: Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup.- Parameters:
geoBackupKeyUri
- the geoBackupKeyUri value to set.- Returns:
- the DataEncryption object itself.
-
type
public DataEncryptionType type()
Get the type property: The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.- Returns:
- the type value.
-
withType
public DataEncryption withType(DataEncryptionType type)
Set the type property: The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.- Parameters:
type
- the type value to set.- Returns:
- the DataEncryption object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-