Package com.oracle.bmc.nosql.model
Class KmsKey.Builder
- java.lang.Object
-
- com.oracle.bmc.nosql.model.KmsKey.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KmsKey
build()
KmsKey.Builder
copy(KmsKey model)
KmsKey.Builder
id(String id)
The OCID of the KMS encryption key assigned to this Hosted Environment.KmsKey.Builder
kmsKeyState(KmsKey.KmsKeyState kmsKeyState)
The current state of the encryption key assigned to this Hosted Environment.KmsKey.Builder
kmsVaultId(String kmsVaultId)
The OCID of the vault containing the encryption key assigned to this Hosted Environment.KmsKey.Builder
timeCreated(Date timeCreated)
The timestamp when encryption key was first enabled for this Hosted Environment.KmsKey.Builder
timeUpdated(Date timeUpdated)
The timestamp of the last update to the encryption key status.
-
-
-
Method Detail
-
id
public KmsKey.Builder id(String id)
The OCID of the KMS encryption key assigned to this Hosted Environment.If the Hosted Environment is using an Oracle-managed Key, then the id will be a null string..
- Parameters:
id
- the value to set- Returns:
- this builder
-
kmsVaultId
public KmsKey.Builder kmsVaultId(String kmsVaultId)
The OCID of the vault containing the encryption key assigned to this Hosted Environment.If the Hosted Environment is using an Oracle-managed Key, then the kmsVaultId will be a null string.
- Parameters:
kmsVaultId
- the value to set- Returns:
- this builder
-
kmsKeyState
public KmsKey.Builder kmsKeyState(KmsKey.KmsKeyState kmsKeyState)
The current state of the encryption key assigned to this Hosted Environment.Oracle-managed keys will always report an ACTIVE state.
- Parameters:
kmsKeyState
- the value to set- Returns:
- this builder
-
timeCreated
public KmsKey.Builder timeCreated(Date timeCreated)
The timestamp when encryption key was first enabled for this Hosted Environment.RFC3339 formatted.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public KmsKey.Builder timeUpdated(Date timeUpdated)
The timestamp of the last update to the encryption key status.RFC3339 formatted.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
build
public KmsKey build()
-
copy
public KmsKey.Builder copy(KmsKey model)
-
-