Class ImportKeyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.ImportKeyDetails.Builder
-
- Enclosing class:
- ImportKeyDetails
public static class ImportKeyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportKeyDetails.Builder
autoKeyRotationDetails(AutoKeyRotationDetails autoKeyRotationDetails)
ImportKeyDetails
build()
ImportKeyDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains this key.ImportKeyDetails.Builder
copy(ImportKeyDetails model)
ImportKeyDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.ImportKeyDetails.Builder
displayName(String displayName)
A user-friendly name for the key.ImportKeyDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.ImportKeyDetails.Builder
isAutoRotationEnabled(Boolean isAutoRotationEnabled)
A parameter specifying whether the auto key rotation is enabled or not.ImportKeyDetails.Builder
keyShape(KeyShape keyShape)
ImportKeyDetails.Builder
protectionMode(ImportKeyDetails.ProtectionMode protectionMode)
The key’s protection mode indicates how the key persists and where cryptographic operations that use the key are performed.ImportKeyDetails.Builder
wrappedImportKey(WrappedImportKey wrappedImportKey)
-
-
-
Method Detail
-
isAutoRotationEnabled
public ImportKeyDetails.Builder isAutoRotationEnabled(Boolean isAutoRotationEnabled)
A parameter specifying whether the auto key rotation is enabled or not.- Parameters:
isAutoRotationEnabled
- the value to set- Returns:
- this builder
-
autoKeyRotationDetails
public ImportKeyDetails.Builder autoKeyRotationDetails(AutoKeyRotationDetails autoKeyRotationDetails)
-
compartmentId
public ImportKeyDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains this key.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public ImportKeyDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Usage of predefined tag keys.These predefined keys are scoped to namespaces. Example: {“foo-namespace”: {“bar-key”: “foo-value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
displayName
public ImportKeyDetails.Builder displayName(String displayName)
A user-friendly name for the key.It does not have to be unique, and it is changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public ImportKeyDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type, or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
keyShape
public ImportKeyDetails.Builder keyShape(KeyShape keyShape)
-
wrappedImportKey
public ImportKeyDetails.Builder wrappedImportKey(WrappedImportKey wrappedImportKey)
-
protectionMode
public ImportKeyDetails.Builder protectionMode(ImportKeyDetails.ProtectionMode protectionMode)
The key’s protection mode indicates how the key persists and where cryptographic operations that use the key are performed.A protection mode of HSM means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode of SOFTWARE means that the key persists on the server, protected by the vault’s RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode of SOFTWARE are performed on the server. By default, a key’s protection mode is set to HSM. You can’t change a key’s protection mode after the key is created or imported.
- Parameters:
protectionMode
- the value to set- Returns:
- this builder
-
build
public ImportKeyDetails build()
-
copy
public ImportKeyDetails.Builder copy(ImportKeyDetails model)
-
-