Class Vault.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.Vault.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vault
build()
Vault.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains this vault.Vault.Builder
copy(Vault model)
Vault.Builder
cryptoEndpoint(String cryptoEndpoint)
The service endpoint to perform cryptographic operations against.Vault.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Vault.Builder
displayName(String displayName)
A user-friendly name for the vault.Vault.Builder
externalKeyManagerMetadataSummary(ExternalKeyManagerMetadataSummary externalKeyManagerMetadataSummary)
Vault.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Vault.Builder
id(String id)
The OCID of the vault.Vault.Builder
isPrimary(Boolean isPrimary)
A Boolean value that indicates whether the Vault is primary Vault or replica Vault.Vault.Builder
isVaultReplicable(Boolean isVaultReplicable)
A Boolean value that indicates whether the Vault has cross region replication capability.Vault.Builder
lifecycleState(Vault.LifecycleState lifecycleState)
The vault’s current lifecycle state.Vault.Builder
managementEndpoint(String managementEndpoint)
The service endpoint to perform management operations against.Vault.Builder
replicaDetails(VaultReplicaDetails replicaDetails)
Vault.Builder
restoredFromVaultId(String restoredFromVaultId)
The OCID of the vault from which this vault was restored, if it was restored from a backup file.Vault.Builder
timeCreated(Date timeCreated)
The date and time this vault was created, expressed in RFC 3339 timestamp format.Vault.Builder
timeOfDeletion(Date timeOfDeletion)
An optional property to indicate when to delete the vault, expressed in RFC 3339 timestamp format.Vault.Builder
vaultType(Vault.VaultType vaultType)
The type of vault.Vault.Builder
wrappingkeyId(String wrappingkeyId)
The OCID of the vault’s wrapping key.
-
-
-
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
-
replicaDetails
public Vault.Builder replicaDetails(VaultReplicaDetails replicaDetails)
-
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
-
externalKeyManagerMetadataSummary
public Vault.Builder externalKeyManagerMetadataSummary(ExternalKeyManagerMetadataSummary externalKeyManagerMetadataSummary)
-
build
public Vault build()
-
copy
public Vault.Builder copy(Vault model)
-
-