Class GenerateKeyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.GenerateKeyDetails.Builder
-
- Enclosing class:
- GenerateKeyDetails
public static class GenerateKeyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateKeyDetails.BuilderassociatedData(Map<String,String> associatedData)Information that can be used to provide an encryption context for the encrypted data.GenerateKeyDetailsbuild()GenerateKeyDetails.Buildercopy(GenerateKeyDetails model)GenerateKeyDetails.BuilderincludePlaintextKey(Boolean includePlaintextKey)If true, the generated key is also returned unencrypted.GenerateKeyDetails.BuilderkeyId(String keyId)The OCID of the master encryption key to encrypt the generated data encryption key with.GenerateKeyDetails.BuilderkeyShape(KeyShape keyShape)GenerateKeyDetails.BuilderloggingContext(Map<String,String> loggingContext)Information that provides context for audit logging.
-
-
-
Method Detail
-
associatedData
public GenerateKeyDetails.Builder associatedData(Map<String,String> associatedData)
Information that can be used to provide an encryption context for the encrypted data.The length of the string representation of the associated data must be fewer than 4096 characters.
- Parameters:
associatedData- the value to set- Returns:
- this builder
-
includePlaintextKey
public GenerateKeyDetails.Builder includePlaintextKey(Boolean includePlaintextKey)
If true, the generated key is also returned unencrypted.- Parameters:
includePlaintextKey- the value to set- Returns:
- this builder
-
keyId
public GenerateKeyDetails.Builder keyId(String keyId)
The OCID of the master encryption key to encrypt the generated data encryption key with.- Parameters:
keyId- the value to set- Returns:
- this builder
-
keyShape
public GenerateKeyDetails.Builder keyShape(KeyShape keyShape)
-
loggingContext
public GenerateKeyDetails.Builder loggingContext(Map<String,String> loggingContext)
Information that provides context for audit logging.You can provide this additional data by formatting it as key-value pairs to include in audit logs when audit logging is enabled.
- Parameters:
loggingContext- the value to set- Returns:
- this builder
-
build
public GenerateKeyDetails build()
-
copy
public GenerateKeyDetails.Builder copy(GenerateKeyDetails model)
-
-