Class DataEncryption

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.DataEncryption
All Implemented Interfaces:
com.azure.json.JsonSerializable<DataEncryption>

public final class DataEncryption extends Object implements com.azure.json.JsonSerializable<DataEncryption>
Data encryption properties of a server.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of DataEncryption class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DataEncryption from the JsonReader.
    Get the geoBackupEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
    Get the geoBackupKeyUri property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
    Get the geoBackupUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
    Get the primaryEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
    Get the primaryKeyUri property: URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
    Get the primaryUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Data encryption type used by a server.
    void
    Validates the instance.
    Set the geoBackupEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
    withGeoBackupKeyUri(String geoBackupKeyUri)
    Set the geoBackupKeyUri property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
    withGeoBackupUserAssignedIdentityId(String geoBackupUserAssignedIdentityId)
    Set the geoBackupUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
    Set the primaryEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
    withPrimaryKeyUri(String primaryKeyUri)
    Set the primaryKeyUri property: URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
    withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)
    Set the primaryUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
    Set the type property: Data encryption type used by a server.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • DataEncryption

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

    • primaryKeyUri

      public String primaryKeyUri()
      Get the primaryKeyUri property: URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
      Returns:
      the primaryKeyUri value.
    • withPrimaryKeyUri

      public DataEncryption withPrimaryKeyUri(String primaryKeyUri)
      Set the primaryKeyUri property: URI of the key in Azure Key Vault used for data encryption of the primary storage associated to a server.
      Parameters:
      primaryKeyUri - the primaryKeyUri value to set.
      Returns:
      the DataEncryption object itself.
    • primaryUserAssignedIdentityId

      public String primaryUserAssignedIdentityId()
      Get the primaryUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
      Returns:
      the primaryUserAssignedIdentityId value.
    • withPrimaryUserAssignedIdentityId

      public DataEncryption withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)
      Set the primaryUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the primary storage associated to a server.
      Parameters:
      primaryUserAssignedIdentityId - the primaryUserAssignedIdentityId value to set.
      Returns:
      the DataEncryption object itself.
    • geoBackupKeyUri

      public String geoBackupKeyUri()
      Get the geoBackupKeyUri property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
      Returns:
      the geoBackupKeyUri value.
    • withGeoBackupKeyUri

      public DataEncryption withGeoBackupKeyUri(String geoBackupKeyUri)
      Set the geoBackupKeyUri property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
      Parameters:
      geoBackupKeyUri - the geoBackupKeyUri value to set.
      Returns:
      the DataEncryption object itself.
    • geoBackupUserAssignedIdentityId

      public String geoBackupUserAssignedIdentityId()
      Get the geoBackupUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
      Returns:
      the geoBackupUserAssignedIdentityId value.
    • withGeoBackupUserAssignedIdentityId

      public DataEncryption withGeoBackupUserAssignedIdentityId(String geoBackupUserAssignedIdentityId)
      Set the geoBackupUserAssignedIdentityId property: Identifier of the user assigned managed identity used to access the key in Azure Key Vault for data encryption of the geographically redundant storage associated to a server that is configured to support geographically redundant backups.
      Parameters:
      geoBackupUserAssignedIdentityId - the geoBackupUserAssignedIdentityId value to set.
      Returns:
      the DataEncryption object itself.
    • type

      public DataEncryptionType type()
      Get the type property: Data encryption type used by a server.
      Returns:
      the type value.
    • withType

      public DataEncryption withType(DataEncryptionType type)
      Set the type property: Data encryption type used by a server.
      Parameters:
      type - the type value to set.
      Returns:
      the DataEncryption object itself.
    • primaryEncryptionKeyStatus

      public EncryptionKeyStatus primaryEncryptionKeyStatus()
      Get the primaryEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
      Returns:
      the primaryEncryptionKeyStatus value.
    • withPrimaryEncryptionKeyStatus

      public DataEncryption withPrimaryEncryptionKeyStatus(EncryptionKeyStatus primaryEncryptionKeyStatus)
      Set the primaryEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the primary storage associated to the server.
      Parameters:
      primaryEncryptionKeyStatus - the primaryEncryptionKeyStatus value to set.
      Returns:
      the DataEncryption object itself.
    • geoBackupEncryptionKeyStatus

      public EncryptionKeyStatus geoBackupEncryptionKeyStatus()
      Get the geoBackupEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
      Returns:
      the geoBackupEncryptionKeyStatus value.
    • withGeoBackupEncryptionKeyStatus

      public DataEncryption withGeoBackupEncryptionKeyStatus(EncryptionKeyStatus geoBackupEncryptionKeyStatus)
      Set the geoBackupEncryptionKeyStatus property: Status of key used by a server configured with data encryption based on customer managed key, to encrypt the geographically redundant storage associated to the server when it is configured to support geographically redundant backups.
      Parameters:
      geoBackupEncryptionKeyStatus - the geoBackupEncryptionKeyStatus value to set.
      Returns:
      the DataEncryption object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DataEncryption>
      Throws:
      IOException
    • fromJson

      public static DataEncryption fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DataEncryption from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DataEncryption if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the DataEncryption.