Package com.oracle.bmc.vault.model
Class UpdateSecretDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vault.model.UpdateSecretDetails.Builder
-
- Enclosing class:
- UpdateSecretDetails
public static class UpdateSecretDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateSecretDetails
build()
UpdateSecretDetails.Builder
copy(UpdateSecretDetails model)
UpdateSecretDetails.Builder
currentVersionNumber(Long currentVersionNumber)
Details to update the secret version of the specified secret.UpdateSecretDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.UpdateSecretDetails.Builder
description(String description)
A brief description of the secret.UpdateSecretDetails.Builder
enableAutoGeneration(Boolean enableAutoGeneration)
The value of this flag determines whether or not secret content will be generated automatically.UpdateSecretDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.UpdateSecretDetails.Builder
metadata(Map<String,Object> metadata)
Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks.UpdateSecretDetails.Builder
rotationConfig(RotationConfig rotationConfig)
UpdateSecretDetails.Builder
secretContent(SecretContentDetails secretContent)
UpdateSecretDetails.Builder
secretGenerationContext(SecretGenerationContext secretGenerationContext)
UpdateSecretDetails.Builder
secretRules(List<SecretRule> secretRules)
A list of rules to control how the secret is used and managed.
-
-
-
Method Detail
-
currentVersionNumber
public UpdateSecretDetails.Builder currentVersionNumber(Long currentVersionNumber)
Details to update the secret version of the specified secret.The secret contents, version number, and rules can’t be specified at the same time. Updating the secret contents automatically creates a new secret version.
- Parameters:
currentVersionNumber
- the value to set- Returns:
- this builder
-
definedTags
public UpdateSecretDetails.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 UpdateSecretDetails.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 UpdateSecretDetails.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
-
metadata
public UpdateSecretDetails.Builder metadata(Map<String,Object> metadata)
Additional metadata that you can use to provide context about how to use the secret or 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 UpdateSecretDetails.Builder secretContent(SecretContentDetails secretContent)
-
rotationConfig
public UpdateSecretDetails.Builder rotationConfig(RotationConfig rotationConfig)
-
secretRules
public UpdateSecretDetails.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
-
secretGenerationContext
public UpdateSecretDetails.Builder secretGenerationContext(SecretGenerationContext secretGenerationContext)
-
enableAutoGeneration
public UpdateSecretDetails.Builder enableAutoGeneration(Boolean enableAutoGeneration)
The value of this flag determines whether or not secret content will be generated automatically.- Parameters:
enableAutoGeneration
- the value to set- Returns:
- this builder
-
build
public UpdateSecretDetails build()
-
copy
public UpdateSecretDetails.Builder copy(UpdateSecretDetails model)
-
-