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 Vaultbuild()Vault.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains this vault.Vault.Buildercopy(Vault model)Vault.BuildercryptoEndpoint(String cryptoEndpoint)The service endpoint to perform cryptographic operations against.Vault.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Vault.BuilderdisplayName(String displayName)A user-friendly name for the vault.Vault.BuilderexternalKeyManagerMetadataSummary(ExternalKeyManagerMetadataSummary externalKeyManagerMetadataSummary)Vault.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.Vault.Builderid(String id)The OCID of the vault.Vault.BuilderisPrimary(Boolean isPrimary)A Boolean value that indicates whether the Vault is primary Vault or replica Vault.Vault.BuilderisVaultReplicable(Boolean isVaultReplicable)A Boolean value that indicates whether the Vault has cross region replication capability.Vault.BuilderlifecycleState(Vault.LifecycleState lifecycleState)The vault’s current lifecycle state.Vault.BuildermanagementEndpoint(String managementEndpoint)The service endpoint to perform management operations against.Vault.BuilderreplicaDetails(VaultReplicaDetails replicaDetails)Vault.BuilderrestoredFromVaultId(String restoredFromVaultId)The OCID of the vault from which this vault was restored, if it was restored from a backup file.Vault.BuildertimeCreated(Date timeCreated)The date and time this vault was created, expressed in RFC 3339 timestamp format.Vault.BuildertimeOfDeletion(Date timeOfDeletion)An optional property to indicate when to delete the vault, expressed in RFC 3339 timestamp format.Vault.BuildervaultType(Vault.VaultType vaultType)The type of vault.Vault.BuilderwrappingkeyId(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)
-
-