Class Vault.Builder

  • Enclosing class:
    Vault

    public static class Vault.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public Vault.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains this vault.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • cryptoEndpoint

        public Vault.Builder cryptoEndpoint​(String cryptoEndpoint)
        The service endpoint to perform cryptographic operations against.

        Cryptographic operations include Encrypt, Decrypt, and GenerateDataEncryptionKey operations.

        Parameters:
        cryptoEndpoint - the value to set
        Returns:
        this builder
      • definedTags

        public Vault.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • displayName

        public Vault.Builder displayName​(String displayName)
        A user-friendly name for the vault.

        It does not have to be unique, and it is changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • freeformTags

        public Vault.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

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

        public Vault.Builder id​(String id)
        The OCID of the vault.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • lifecycleState

        public Vault.Builder lifecycleState​(Vault.LifecycleState lifecycleState)
        The vault’s current lifecycle state.

        Example: DELETED

        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • managementEndpoint

        public Vault.Builder managementEndpoint​(String managementEndpoint)
        The service endpoint to perform management operations against.

        Management operations include “Create,” “Update,” “List,” “Get,” and “Delete” operations.

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

        public Vault.Builder timeCreated​(Date timeCreated)
        The date and time this vault was created, expressed in RFC 3339 timestamp format.

        Example: 2018-04-03T21:10:29.600Z

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

        public Vault.Builder timeOfDeletion​(Date timeOfDeletion)
        An optional property to indicate when to delete the vault, expressed in RFC 3339 timestamp format.

        Example: 2018-04-03T21:10:29.600Z

        Parameters:
        timeOfDeletion - the value to set
        Returns:
        this builder
      • vaultType

        public Vault.Builder vaultType​(Vault.VaultType vaultType)
        The type of vault.

        Each type of vault stores the key with different degrees of isolation and has different options and pricing.

        Parameters:
        vaultType - the value to set
        Returns:
        this builder
      • restoredFromVaultId

        public Vault.Builder restoredFromVaultId​(String restoredFromVaultId)
        The OCID of the vault from which this vault was restored, if it was restored from a backup file.

        If you restore a vault to the same region, the vault retains the same OCID that it had when you backed up the vault.

        Parameters:
        restoredFromVaultId - the value to set
        Returns:
        this builder
      • wrappingkeyId

        public Vault.Builder wrappingkeyId​(String wrappingkeyId)
        The OCID of the vault’s wrapping key.
        Parameters:
        wrappingkeyId - the value to set
        Returns:
        this builder
      • isPrimary

        public Vault.Builder isPrimary​(Boolean isPrimary)
        A Boolean value that indicates whether the Vault is primary Vault or replica Vault.
        Parameters:
        isPrimary - the value to set
        Returns:
        this builder
      • isVaultReplicable

        public Vault.Builder isVaultReplicable​(Boolean isVaultReplicable)
        A Boolean value that indicates whether the Vault has cross region replication capability.

        Always true for Virtual Private Vaults.

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

        public Vault build()