Class SecretSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.vault.model.SecretSummary.Builder
-
- Enclosing class:
- SecretSummary
public static class SecretSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
isAutoGenerationEnabled(Boolean isAutoGenerationEnabled)
The value of this flag determines whether or not secret content will be generated automatically.SecretSummary.Builder
keyId(String keyId)
The OCID of the master encryption key that is used to encrypt the secret.SecretSummary.Builder
lastRotationTime(Date lastRotationTime)
A property indicating when the secret was last rotated successfully, expressed in RFC 3339 timestamp format.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
nextRotationTime(Date nextRotationTime)
A property indicating when the secret is scheduled to be rotated, expressed in RFC 3339 timestamp format.SecretSummary.Builder
rotationConfig(RotationConfig rotationConfig)
SecretSummary.Builder
rotationStatus(Secret.RotationStatus rotationStatus)
Additional information about the status of the secret rotationSecretSummary.Builder
secretGenerationContext(SecretGenerationContext secretGenerationContext)
SecretSummary.Builder
secretName(String secretName)
The name of the secret.SecretSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.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
-
-
-
Method Detail
-
compartmentId
public SecretSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the secret.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
description
public SecretSummary.Builder description(String description)
A brief description of the secret.- Parameters:
description
- the value to set- Returns:
- this builder
-
freeformTags
public 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”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
systemTags
public SecretSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
keyId
public 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.
- Parameters:
keyId
- the value to set- Returns:
- this builder
-
id
public SecretSummary.Builder id(String id)
The OCID of the secret.- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleDetails
public SecretSummary.Builder lifecycleDetails(String lifecycleDetails)
Additional information about the secret’s current lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
lifecycleState
public SecretSummary.Builder lifecycleState(SecretSummary.LifecycleState lifecycleState)
The current lifecycle state of the secret.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
rotationConfig
public SecretSummary.Builder rotationConfig(RotationConfig rotationConfig)
-
rotationStatus
public SecretSummary.Builder rotationStatus(Secret.RotationStatus rotationStatus)
Additional information about the status of the secret rotation- Parameters:
rotationStatus
- the value to set- Returns:
- this builder
-
lastRotationTime
public SecretSummary.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
- Parameters:
lastRotationTime
- the value to set- Returns:
- this builder
-
nextRotationTime
public SecretSummary.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
- Parameters:
nextRotationTime
- the value to set- Returns:
- this builder
-
secretName
public SecretSummary.Builder secretName(String secretName)
The name of the secret.- Parameters:
secretName
- the value to set- Returns:
- this builder
-
timeCreated
public 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
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeOfCurrentVersionExpiry
public 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
- Parameters:
timeOfCurrentVersionExpiry
- the value to set- Returns:
- this builder
-
timeOfDeletion
public 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
- Parameters:
timeOfDeletion
- the value to set- Returns:
- this builder
-
vaultId
public SecretSummary.Builder vaultId(String vaultId)
The OCID of the Vault in which the secret exists- Parameters:
vaultId
- the value to set- Returns:
- this builder
-
secretGenerationContext
public SecretSummary.Builder secretGenerationContext(SecretGenerationContext secretGenerationContext)
-
isAutoGenerationEnabled
public SecretSummary.Builder isAutoGenerationEnabled(Boolean isAutoGenerationEnabled)
The value of this flag determines whether or not secret content will be generated automatically.- Parameters:
isAutoGenerationEnabled
- the value to set- Returns:
- this builder
-
build
public SecretSummary build()
-
copy
public SecretSummary.Builder copy(SecretSummary model)
-
-