public static class KeyVersion.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
KeyVersion |
build() |
KeyVersion.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains this key version.
|
KeyVersion.Builder |
copy(KeyVersion model) |
KeyVersion.Builder |
externalKeyReferenceDetails(ExternalKeyReferenceDetails externalKeyReferenceDetails) |
KeyVersion.Builder |
id(String id)
The OCID of the key version.
|
KeyVersion.Builder |
isAutoRotated(Boolean isAutoRotated)
A Boolean Value indicating whether this keyversion is generated from auto rotation of key
|
KeyVersion.Builder |
isPrimary(Boolean isPrimary)
A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica
Vault.
|
KeyVersion.Builder |
keyId(String keyId)
The OCID of the key associated with this key version.
|
KeyVersion.Builder |
lifecycleState(KeyVersion.LifecycleState lifecycleState)
The key version’s current lifecycle state.
|
KeyVersion.Builder |
origin(KeyVersion.Origin origin)
The source of the key material.
|
KeyVersion.Builder |
publicKey(String publicKey)
The public key in PEM format.
|
KeyVersion.Builder |
replicaDetails(KeyVersionReplicaDetails replicaDetails) |
KeyVersion.Builder |
restoredFromKeyVersionId(String restoredFromKeyVersionId)
The OCID of the key version from which this key version was restored.
|
KeyVersion.Builder |
timeCreated(Date timeCreated)
The date and time this key version was created, expressed in RFC
3339 timestamp format.
|
KeyVersion.Builder |
timeOfDeletion(Date timeOfDeletion)
An optional property indicating when to delete the key version, expressed in RFC
3339 timestamp format.
|
KeyVersion.Builder |
vaultId(String vaultId)
The OCID of the vault that contains this key version.
|
public KeyVersion.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains this key version.
compartmentId
- the value to setpublic KeyVersion.Builder id(String id)
The OCID of the key version.
id
- the value to setpublic KeyVersion.Builder keyId(String keyId)
The OCID of the key associated with this key version.
keyId
- the value to setpublic KeyVersion.Builder publicKey(String publicKey)
The public key in PEM format. (This value pertains only to RSA and ECDSA keys.)
publicKey
- the value to setpublic KeyVersion.Builder lifecycleState(KeyVersion.LifecycleState lifecycleState)
The key version’s current lifecycle state.
Example: ENABLED
lifecycleState
- the value to setpublic 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.
origin
- the value to setpublic 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"
timeCreated
- the value to setpublic 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
timeOfDeletion
- the value to setpublic KeyVersion.Builder vaultId(String vaultId)
The OCID of the vault that contains this key version.
vaultId
- the value to setpublic KeyVersion.Builder restoredFromKeyVersionId(String restoredFromKeyVersionId)
The OCID of the key version from which this key version was restored.
restoredFromKeyVersionId
- the value to setpublic KeyVersion.Builder replicaDetails(KeyVersionReplicaDetails replicaDetails)
public KeyVersion.Builder isPrimary(Boolean isPrimary)
A Boolean value that indicates whether the KeyVersion belongs to primary Vault or replica Vault.
isPrimary
- the value to setpublic KeyVersion.Builder externalKeyReferenceDetails(ExternalKeyReferenceDetails externalKeyReferenceDetails)
public KeyVersion.Builder isAutoRotated(Boolean isAutoRotated)
A Boolean Value indicating whether this keyversion is generated from auto rotation of key
isAutoRotated
- the value to setpublic KeyVersion build()
public KeyVersion.Builder copy(KeyVersion model)
Copyright © 2016–2024. All rights reserved.