Class ImportKeyDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.keymanagement.model.ImportKeyDetails.Builder
 
- 
- Enclosing class:
- ImportKeyDetails
 
 public static class ImportKeyDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportKeyDetails.BuilderautoKeyRotationDetails(AutoKeyRotationDetails autoKeyRotationDetails)ImportKeyDetailsbuild()ImportKeyDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains this key.ImportKeyDetails.Buildercopy(ImportKeyDetails model)ImportKeyDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Usage of predefined tag keys.ImportKeyDetails.BuilderdisplayName(String displayName)A user-friendly name for the key.ImportKeyDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type, or scope.ImportKeyDetails.BuilderisAutoRotationEnabled(Boolean isAutoRotationEnabled)A parameter specifying whether the auto key rotation is enabled or not.ImportKeyDetails.BuilderkeyShape(KeyShape keyShape)ImportKeyDetails.BuilderprotectionMode(ImportKeyDetails.ProtectionMode protectionMode)The key’s protection mode indicates how the key persists and where cryptographic operations that use the key are performed.ImportKeyDetails.BuilderwrappedImportKey(WrappedImportKey wrappedImportKey)
 
- 
- 
- 
Method Detail- 
isAutoRotationEnabledpublic 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
 
 - 
autoKeyRotationDetailspublic ImportKeyDetails.Builder autoKeyRotationDetails(AutoKeyRotationDetails autoKeyRotationDetails) 
 - 
compartmentIdpublic ImportKeyDetails.Builder compartmentId(String compartmentId) The OCID of the compartment that contains this key.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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
 
 - 
displayNamepublic 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
 
 - 
freeformTagspublic 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
 
 - 
keyShapepublic ImportKeyDetails.Builder keyShape(KeyShape keyShape) 
 - 
wrappedImportKeypublic ImportKeyDetails.Builder wrappedImportKey(WrappedImportKey wrappedImportKey) 
 - 
protectionModepublic 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
 
 - 
buildpublic ImportKeyDetails build() 
 - 
copypublic ImportKeyDetails.Builder copy(ImportKeyDetails model) 
 
- 
 
-