Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Secret |
build() |
Secret.Builder |
compartmentId(String compartmentId)
The OCID of the compartment where you want to create the secret.
|
Secret.Builder |
copy(Secret model) |
Secret.Builder |
currentVersionNumber(Long currentVersionNumber)
The version number of the secret version that’s currently in use.
|
Secret.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Secret.Builder |
description(String description)
A brief description of the secret.
|
Secret.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
Secret.Builder |
id(String id)
The OCID of the secret.
|
Secret.Builder |
isAutoGenerationEnabled(Boolean isAutoGenerationEnabled)
The value of this flag determines whether or not secret content will be generated
automatically.
|
Secret.Builder |
keyId(String keyId)
The OCID of the master encryption key that is used to encrypt the secret.
|
Secret.Builder |
lastRotationTime(Date lastRotationTime)
A property indicating when the secret was last rotated successfully, expressed in RFC
3339 timestamp format.
|
Secret.Builder |
lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state of the secret.
|
Secret.Builder |
lifecycleState(Secret.LifecycleState lifecycleState)
The current lifecycle state of the secret.
|
Secret.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.
|
Secret.Builder |
nextRotationTime(Date nextRotationTime)
A property indicating when the secret is scheduled to be rotated, expressed in RFC
3339 timestamp format.
|
Secret.Builder |
rotationConfig(RotationConfig rotationConfig) |
Secret.Builder |
rotationStatus(Secret.RotationStatus rotationStatus)
Additional information about the status of the secret rotation
|
Secret.Builder |
secretGenerationContext(SecretGenerationContext secretGenerationContext) |
Secret.Builder |
secretName(String secretName)
The user-friendly name of the secret.
|
Secret.Builder |
secretRules(List<SecretRule> secretRules)
A list of rules that control how the secret is used and managed.
|
Secret.Builder |
timeCreated(Date timeCreated)
A property indicating when the secret was created, expressed in RFC
3339 timestamp format.
|
Secret.Builder |
timeOfCurrentVersionExpiry(Date timeOfCurrentVersionExpiry)
An optional property indicating when the current secret version will expire, expressed in
RFC 3339 timestamp format.
|
Secret.Builder |
timeOfDeletion(Date timeOfDeletion)
An optional property indicating when to delete the secret, expressed in RFC
3339 timestamp format.
|
Secret.Builder |
vaultId(String vaultId)
The OCID of the vault where the secret exists.
|
public Secret.Builder compartmentId(String compartmentId)
The OCID of the compartment where you want to create the secret.
compartmentId
- the value to setpublic Secret.Builder currentVersionNumber(Long currentVersionNumber)
The version number of the secret version that’s currently in use.
currentVersionNumber
- the value to setpublic Secret.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 Secret.Builder description(String description)
A brief description of the secret. Avoid entering confidential information.
description
- the value to setpublic Secret.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 Secret.Builder id(String id)
The OCID of the secret.
id
- the value to setpublic Secret.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 Secret.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the current lifecycle state of the secret.
lifecycleDetails
- the value to setpublic Secret.Builder lifecycleState(Secret.LifecycleState lifecycleState)
The current lifecycle state of the secret.
lifecycleState
- the value to setpublic Secret.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.
metadata
- the value to setpublic Secret.Builder rotationConfig(RotationConfig rotationConfig)
public Secret.Builder rotationStatus(Secret.RotationStatus rotationStatus)
Additional information about the status of the secret rotation
rotationStatus
- the value to setpublic Secret.Builder lastRotationTime(Date lastRotationTime)
A property indicating when the secret was last rotated successfully, expressed in RFC
3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
lastRotationTime
- the value to setpublic Secret.Builder nextRotationTime(Date nextRotationTime)
A property indicating when the secret is scheduled to be rotated, expressed in RFC
3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
nextRotationTime
- the value to setpublic Secret.Builder secretName(String secretName)
The user-friendly name of the secret. Avoid entering confidential information.
secretName
- the value to setpublic Secret.Builder secretRules(List<SecretRule> secretRules)
A list of rules that control how the secret is used and managed.
secretRules
- the value to setpublic Secret.Builder timeCreated(Date timeCreated)
A property indicating when the secret was created, expressed in RFC
3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
timeCreated
- the value to setpublic Secret.Builder timeOfCurrentVersionExpiry(Date timeOfCurrentVersionExpiry)
An optional property indicating when the current secret version will expire, expressed in
RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
timeOfCurrentVersionExpiry
- the value to setpublic Secret.Builder timeOfDeletion(Date timeOfDeletion)
An optional property indicating when to delete the secret, expressed in RFC
3339 timestamp format. Example: 2019-04-03T21:10:29.600Z
timeOfDeletion
- the value to setpublic Secret.Builder vaultId(String vaultId)
The OCID of the vault where the secret exists.
vaultId
- the value to setpublic Secret.Builder secretGenerationContext(SecretGenerationContext secretGenerationContext)
public Secret.Builder isAutoGenerationEnabled(Boolean isAutoGenerationEnabled)
The value of this flag determines whether or not secret content will be generated automatically.
isAutoGenerationEnabled
- the value to setpublic Secret build()
public Secret.Builder copy(Secret model)
Copyright © 2016–2024. All rights reserved.