Class KeyVersion.Builder
- java.lang.Object
- 
- com.oracle.bmc.keymanagement.model.KeyVersion.Builder
 
- 
- Enclosing class:
- KeyVersion
 
 public static class KeyVersion.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyVersionbuild()KeyVersion.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains this key version.KeyVersion.Buildercopy(KeyVersion model)KeyVersion.BuilderexternalKeyReferenceDetails(ExternalKeyReferenceDetails externalKeyReferenceDetails)KeyVersion.Builderid(String id)The OCID of the key version.KeyVersion.BuilderisAutoRotated(Boolean isAutoRotated)A Boolean Value indicating whether this keyversion is generated from auto rotation of keyKeyVersion.BuilderisPrimary(Boolean isPrimary)A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.KeyVersion.BuilderkeyId(String keyId)The OCID of the key associated with this key version.KeyVersion.BuilderlifecycleState(KeyVersion.LifecycleState lifecycleState)The key version’s current lifecycle state.KeyVersion.Builderorigin(KeyVersion.Origin origin)The source of the key material.KeyVersion.BuilderpublicKey(String publicKey)The public key in PEM format.KeyVersion.BuilderreplicaDetails(KeyVersionReplicaDetails replicaDetails)KeyVersion.BuilderrestoredFromKeyVersionId(String restoredFromKeyVersionId)The OCID of the key version from which this key version was restored.KeyVersion.BuildertimeCreated(Date timeCreated)The date and time this key version was created, expressed in RFC 3339 timestamp format.KeyVersion.BuildertimeOfDeletion(Date timeOfDeletion)An optional property indicating when to delete the key version, expressed in RFC 3339 timestamp format.KeyVersion.BuildervaultId(String vaultId)The OCID of the vault that contains this key version.
 
- 
- 
- 
Method Detail- 
compartmentIdpublic KeyVersion.Builder compartmentId(String compartmentId) The OCID of the compartment that contains this key version.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
idpublic KeyVersion.Builder id(String id) The OCID of the key version.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
keyIdpublic KeyVersion.Builder keyId(String keyId) The OCID of the key associated with this key version.- Parameters:
- keyId- the value to set
- Returns:
- this builder
 
 - 
publicKeypublic KeyVersion.Builder publicKey(String publicKey) The public key in PEM format.(This value pertains only to RSA and ECDSA keys.) - Parameters:
- publicKey- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic KeyVersion.Builder lifecycleState(KeyVersion.LifecycleState lifecycleState) The key version’s current lifecycle state.Example: ENABLED - Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
originpublic KeyVersion.Builder origin(KeyVersion.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
 
 - 
timeCreatedpublic KeyVersion.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
 
 - 
timeOfDeletionpublic KeyVersion.Builder timeOfDeletion(Date timeOfDeletion) An optional property indicating 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
 
 - 
vaultIdpublic KeyVersion.Builder vaultId(String vaultId) The OCID of the vault that contains this key version.- Parameters:
- vaultId- the value to set
- Returns:
- this builder
 
 - 
restoredFromKeyVersionIdpublic KeyVersion.Builder restoredFromKeyVersionId(String restoredFromKeyVersionId) The OCID of the key version from which this key version was restored.- Parameters:
- restoredFromKeyVersionId- the value to set
- Returns:
- this builder
 
 - 
replicaDetailspublic KeyVersion.Builder replicaDetails(KeyVersionReplicaDetails replicaDetails) 
 - 
isPrimarypublic KeyVersion.Builder isPrimary(Boolean isPrimary) A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.- Parameters:
- isPrimary- the value to set
- Returns:
- this builder
 
 - 
externalKeyReferenceDetailspublic KeyVersion.Builder externalKeyReferenceDetails(ExternalKeyReferenceDetails externalKeyReferenceDetails) 
 - 
isAutoRotatedpublic KeyVersion.Builder isAutoRotated(Boolean isAutoRotated) A Boolean Value indicating whether this keyversion is generated from auto rotation of key- Parameters:
- isAutoRotated- the value to set
- Returns:
- this builder
 
 - 
buildpublic KeyVersion build() 
 - 
copypublic KeyVersion.Builder copy(KeyVersion model) 
 
- 
 
-