Class KeyVersionSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.KeyVersionSummary.Builder
-
- Enclosing class:
- KeyVersionSummary
public static class KeyVersionSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyVersionSummarybuild()KeyVersionSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains this key version.KeyVersionSummary.Buildercopy(KeyVersionSummary model)KeyVersionSummary.BuilderexternalKeyReferenceDetails(ExternalKeyReferenceDetails externalKeyReferenceDetails)KeyVersionSummary.Builderid(String id)The OCID of the key version.KeyVersionSummary.BuilderisAutoRotated(Boolean isAutoRotated)An optional property indicating whether this keyversion is generated from auto rotatation.KeyVersionSummary.BuilderkeyId(String keyId)The OCID of the master encryption key associated with this key version.KeyVersionSummary.BuilderlifecycleState(KeyVersionSummary.LifecycleState lifecycleState)The key version’s current lifecycle state.KeyVersionSummary.Builderorigin(KeyVersionSummary.Origin origin)The source of the key material.KeyVersionSummary.BuildertimeCreated(Date timeCreated)The date and time this key version was created, expressed in RFC 3339 timestamp format.KeyVersionSummary.BuildertimeOfDeletion(Date timeOfDeletion)An optional property to indicate when to delete the key version, expressed in RFC 3339 timestamp format.KeyVersionSummary.BuildervaultId(String vaultId)The OCID of the vault that contains this key version.
-
-
-
Method Detail
-
compartmentId
public KeyVersionSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains this key version.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
id
public KeyVersionSummary.Builder id(String id)
The OCID of the key version.- Parameters:
id- the value to set- Returns:
- this builder
-
keyId
public KeyVersionSummary.Builder keyId(String keyId)
The OCID of the master encryption key associated with this key version.- Parameters:
keyId- the value to set- Returns:
- this builder
-
lifecycleState
public KeyVersionSummary.Builder lifecycleState(KeyVersionSummary.LifecycleState lifecycleState)
The key version’s current lifecycle state.Example: ENABLED
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
origin
public KeyVersionSummary.Builder origin(KeyVersionSummary.Origin origin)
The source of the key material.When this value is INTERNAL, Key Management created the key material. When this value is EXTERNAL, the key material was imported from an external source.
- Parameters:
origin- the value to set- Returns:
- this builder
-
timeCreated
public KeyVersionSummary.Builder timeCreated(Date timeCreated)
The date and time this key version was created, expressed in RFC 3339 timestamp format.Example: 2018-04-03T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeOfDeletion
public KeyVersionSummary.Builder timeOfDeletion(Date timeOfDeletion)
An optional property to indicate when to delete the key version, expressed in RFC 3339 timestamp format.Example: 2019-04-03T21:10:29.600Z
- Parameters:
timeOfDeletion- the value to set- Returns:
- this builder
-
vaultId
public KeyVersionSummary.Builder vaultId(String vaultId)
The OCID of the vault that contains this key version.- Parameters:
vaultId- the value to set- Returns:
- this builder
-
externalKeyReferenceDetails
public KeyVersionSummary.Builder externalKeyReferenceDetails(ExternalKeyReferenceDetails externalKeyReferenceDetails)
-
isAutoRotated
public KeyVersionSummary.Builder isAutoRotated(Boolean isAutoRotated)
An optional property indicating whether this keyversion is generated from auto rotatation.- Parameters:
isAutoRotated- the value to set- Returns:
- this builder
-
build
public KeyVersionSummary build()
-
copy
public KeyVersionSummary.Builder copy(KeyVersionSummary model)
-
-