java.lang.Object
com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption

public final class DataEncryption extends Object
The date encryption for cmk.
  • Constructor Details

    • DataEncryption

      public DataEncryption()
      Creates an instance of DataEncryption class.
  • Method Details

    • 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.