public static class SecretSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SecretSummary |
build() |
SecretSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the secret.
|
SecretSummary.Builder |
copy(SecretSummary model) |
SecretSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
SecretSummary.Builder |
description(String description)
A brief description of the secret.
|
SecretSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
SecretSummary.Builder |
id(String id)
The OCID of the secret.
|
SecretSummary.Builder |
keyId(String keyId)
The OCID of the master encryption key that is used to encrypt the secret.
|
SecretSummary.Builder |
lifecycleDetails(String lifecycleDetails)
Additional information about the secret’s current lifecycle state.
|
SecretSummary.Builder |
lifecycleState(SecretSummary.LifecycleState lifecycleState)
The current lifecycle state of the secret.
|
SecretSummary.Builder |
secretName(String secretName)
The name of the secret.
|
SecretSummary.Builder |
timeCreated(Date timeCreated)
A property indicating when the secret was created, expressed in RFC
3339 timestamp format.
|
SecretSummary.Builder |
timeOfCurrentVersionExpiry(Date timeOfCurrentVersionExpiry)
An optional property indicating when the current secret version will expire, expressed in
RFC 3339 timestamp format.
|
SecretSummary.Builder |
timeOfDeletion(Date timeOfDeletion)
An optional property indicating when to delete the secret, expressed in RFC
3339 timestamp format.
|
SecretSummary.Builder |
vaultId(String vaultId)
The OCID of the Vault in which the secret exists
|
public SecretSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the secret.
compartmentId
- the value to setpublic SecretSummary.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 SecretSummary.Builder description(String description)
A brief description of the secret.
description
- the value to setpublic SecretSummary.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 SecretSummary.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 SecretSummary.Builder id(String id)
The OCID of the secret.
id
- the value to setpublic SecretSummary.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the secret’s current lifecycle state.
lifecycleDetails
- the value to setpublic SecretSummary.Builder lifecycleState(SecretSummary.LifecycleState lifecycleState)
The current lifecycle state of the secret.
lifecycleState
- the value to setpublic SecretSummary.Builder secretName(String secretName)
The name of the secret.
secretName
- the value to setpublic SecretSummary.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 SecretSummary.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 SecretSummary.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 SecretSummary.Builder vaultId(String vaultId)
The OCID of the Vault in which the secret exists
vaultId
- the value to setpublic SecretSummary build()
public SecretSummary.Builder copy(SecretSummary model)
Copyright © 2016–2023. All rights reserved.