public static class CreateSecretDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateSecretDetails |
build() |
CreateSecretDetails.Builder |
compartmentId(String compartmentId)
The OCID of the compartment where you want to create the secret.
|
CreateSecretDetails.Builder |
copy(CreateSecretDetails model) |
CreateSecretDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateSecretDetails.Builder |
description(String description)
A brief description of the secret.
|
CreateSecretDetails.Builder |
enableAutoGeneration(Boolean enableAutoGeneration)
The value of this flag determines whether or not secret content will be generated
automatically.
|
CreateSecretDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
CreateSecretDetails.Builder |
keyId(String keyId)
The OCID of the master encryption key that is used to encrypt the secret.
|
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.
|
CreateSecretDetails.Builder |
rotationConfig(RotationConfig rotationConfig) |
CreateSecretDetails.Builder |
secretContent(SecretContentDetails secretContent) |
CreateSecretDetails.Builder |
secretGenerationContext(SecretGenerationContext secretGenerationContext) |
CreateSecretDetails.Builder |
secretName(String secretName)
A user-friendly name for the secret.
|
CreateSecretDetails.Builder |
secretRules(List<SecretRule> secretRules)
A list of rules to control how the secret is used and managed.
|
CreateSecretDetails.Builder |
vaultId(String vaultId)
The OCID of the vault where you want to create the secret.
|
public CreateSecretDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment where you want to create the secret.
compartmentId
- the value to setpublic 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"}}
definedTags
- the value to setpublic CreateSecretDetails.Builder description(String description)
A brief description of the secret. Avoid entering confidential information.
description
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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.
keyId
- the value to setpublic 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.
metadata
- the value to setpublic CreateSecretDetails.Builder secretContent(SecretContentDetails secretContent)
public CreateSecretDetails.Builder rotationConfig(RotationConfig rotationConfig)
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.
secretName
- the value to setpublic CreateSecretDetails.Builder secretRules(List<SecretRule> secretRules)
A list of rules to control how the secret is used and managed.
secretRules
- the value to setpublic CreateSecretDetails.Builder vaultId(String vaultId)
The OCID of the vault where you want to create the secret.
vaultId
- the value to setpublic CreateSecretDetails.Builder secretGenerationContext(SecretGenerationContext secretGenerationContext)
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.
enableAutoGeneration
- the value to setpublic CreateSecretDetails build()
public CreateSecretDetails.Builder copy(CreateSecretDetails model)
Copyright © 2016–2024. All rights reserved.