Class KmsKey.Builder

  • Enclosing class:
    KmsKey

    public static class KmsKey.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public KmsKey.Builder id​(String id)
        The OCID of the KMS encryption key assigned to this Hosted Environment.

        If the Hosted Environment is using an Oracle-managed Key, then the id will be a null string..

        Parameters:
        id - the value to set
        Returns:
        this builder
      • kmsVaultId

        public KmsKey.Builder kmsVaultId​(String kmsVaultId)
        The OCID of the vault containing the encryption key assigned to this Hosted Environment.

        If the Hosted Environment is using an Oracle-managed Key, then the kmsVaultId will be a null string.

        Parameters:
        kmsVaultId - the value to set
        Returns:
        this builder
      • kmsKeyState

        public KmsKey.Builder kmsKeyState​(KmsKey.KmsKeyState kmsKeyState)
        The current state of the encryption key assigned to this Hosted Environment.

        Oracle-managed keys will always report an ACTIVE state.

        Parameters:
        kmsKeyState - the value to set
        Returns:
        this builder
      • timeCreated

        public KmsKey.Builder timeCreated​(Date timeCreated)
        The timestamp when encryption key was first enabled for this Hosted Environment.

        RFC3339 formatted.

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public KmsKey.Builder timeUpdated​(Date timeUpdated)
        The timestamp of the last update to the encryption key status.

        RFC3339 formatted.

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • build

        public KmsKey build()