Class WrappingKey.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.WrappingKey.Builder
-
- Enclosing class:
- WrappingKey
public static class WrappingKey.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WrappingKeybuild()WrappingKey.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains this key.WrappingKey.Buildercopy(WrappingKey model)WrappingKey.Builderid(String id)The OCID of the key.WrappingKey.BuilderlifecycleState(WrappingKey.LifecycleState lifecycleState)The key’s current lifecycle state.WrappingKey.BuilderpublicKey(String publicKey)The public key, in PEM format, to use to wrap the key material before importing it.WrappingKey.BuildertimeCreated(Date timeCreated)The date and time the key was created, expressed in RFC 3339 timestamp format.WrappingKey.BuildervaultId(String vaultId)The OCID of the vault that contains this key.
-
-
-
Method Detail
-
compartmentId
public WrappingKey.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains this key.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
id
public WrappingKey.Builder id(String id)
The OCID of the key.- Parameters:
id- the value to set- Returns:
- this builder
-
lifecycleState
public WrappingKey.Builder lifecycleState(WrappingKey.LifecycleState lifecycleState)
The key’s current lifecycle state.Example: ENABLED
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
publicKey
public WrappingKey.Builder publicKey(String publicKey)
The public key, in PEM format, to use to wrap the key material before importing it.- Parameters:
publicKey- the value to set- Returns:
- this builder
-
timeCreated
public WrappingKey.Builder timeCreated(Date timeCreated)
The date and time the key was created, expressed in RFC 3339 timestamp format.Example: 2018-04-03T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
vaultId
public WrappingKey.Builder vaultId(String vaultId)
The OCID of the vault that contains this key.- Parameters:
vaultId- the value to set- Returns:
- this builder
-
build
public WrappingKey build()
-
copy
public WrappingKey.Builder copy(WrappingKey model)
-
-