Class CreateSecretDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vault.model.CreateSecretDetails.Builder
-
- Enclosing class:
- CreateSecretDetails
public static class CreateSecretDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSecretDetailsbuild()CreateSecretDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment where you want to create the secret.CreateSecretDetails.Buildercopy(CreateSecretDetails model)CreateSecretDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateSecretDetails.Builderdescription(String description)A brief description of the secret.CreateSecretDetails.BuilderenableAutoGeneration(Boolean enableAutoGeneration)The value of this flag determines whether or not secret content will be generated automatically.CreateSecretDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreateSecretDetails.BuilderkeyId(String keyId)The OCID of the master encryption key that is used to encrypt the secret.CreateSecretDetails.Buildermetadata(Map<String,Object> metadata)Additional metadata that you can use to provide context about how to use the secret during rotation or other administrative tasks.CreateSecretDetails.BuilderreplicationConfig(ReplicationConfig replicationConfig)CreateSecretDetails.BuilderrotationConfig(RotationConfig rotationConfig)CreateSecretDetails.BuildersecretContent(SecretContentDetails secretContent)CreateSecretDetails.BuildersecretGenerationContext(SecretGenerationContext secretGenerationContext)CreateSecretDetails.BuildersecretName(String secretName)A user-friendly name for the secret.CreateSecretDetails.BuildersecretRules(List<SecretRule> secretRules)A list of rules to control how the secret is used and managed.CreateSecretDetails.BuildervaultId(String vaultId)The OCID of the vault where you want to create the secret.
-
-
-
Method Detail
-
compartmentId
public CreateSecretDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment where you want to create the secret.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
definedTags
public CreateSecretDetails.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
-
description
public CreateSecretDetails.Builder description(String description)
A brief description of the secret.Avoid entering confidential information.
- Parameters:
description- the value to set- Returns:
- this builder
-
freeformTags
public CreateSecretDetails.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
-
keyId
public CreateSecretDetails.Builder keyId(String keyId)
The OCID of the master encryption key that is used to encrypt the secret.You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
- Parameters:
keyId- the value to set- Returns:
- this builder
-
metadata
public CreateSecretDetails.Builder metadata(Map<String,Object> metadata)
Additional metadata that you can use to provide context about how to use the secret during rotation or other administrative tasks.For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.
- Parameters:
metadata- the value to set- Returns:
- this builder
-
secretContent
public CreateSecretDetails.Builder secretContent(SecretContentDetails secretContent)
-
replicationConfig
public CreateSecretDetails.Builder replicationConfig(ReplicationConfig replicationConfig)
-
rotationConfig
public CreateSecretDetails.Builder rotationConfig(RotationConfig rotationConfig)
-
secretName
public CreateSecretDetails.Builder secretName(String secretName)
A user-friendly name for the secret.Secret names should be unique within a vault. Avoid entering confidential information. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
- Parameters:
secretName- the value to set- Returns:
- this builder
-
secretRules
public CreateSecretDetails.Builder secretRules(List<SecretRule> secretRules)
A list of rules to control how the secret is used and managed.- Parameters:
secretRules- the value to set- Returns:
- this builder
-
vaultId
public CreateSecretDetails.Builder vaultId(String vaultId)
The OCID of the vault where you want to create the secret.- Parameters:
vaultId- the value to set- Returns:
- this builder
-
secretGenerationContext
public CreateSecretDetails.Builder secretGenerationContext(SecretGenerationContext secretGenerationContext)
-
enableAutoGeneration
public CreateSecretDetails.Builder enableAutoGeneration(Boolean enableAutoGeneration)
The value of this flag determines whether or not secret content will be generated automatically.If not set, it defaults to false.
- Parameters:
enableAutoGeneration- the value to set- Returns:
- this builder
-
build
public CreateSecretDetails build()
-
copy
public CreateSecretDetails.Builder copy(CreateSecretDetails model)
-
-