Class PluggableDatabase.Builder
- java.lang.Object
- 
- com.oracle.bmc.database.model.PluggableDatabase.Builder
 
- 
- Enclosing class:
- PluggableDatabase
 
 public static class PluggableDatabase.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PluggableDatabasebuild()PluggableDatabase.BuildercompartmentId(String compartmentId)The OCID of the compartment.PluggableDatabase.BuilderconnectionStrings(PluggableDatabaseConnectionStrings connectionStrings)PluggableDatabase.BuildercontainerDatabaseId(String containerDatabaseId)The OCID of the CDB.PluggableDatabase.Buildercopy(PluggableDatabase model)PluggableDatabase.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.PluggableDatabase.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.PluggableDatabase.Builderid(String id)The OCID of the pluggable database.PluggableDatabase.BuilderisRestricted(Boolean isRestricted)The restricted mode of the pluggable database.PluggableDatabase.BuilderkmsKeyId(String kmsKeyId)The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.PluggableDatabase.BuilderkmsKeyVersionId(String kmsKeyVersionId)The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions.PluggableDatabase.BuilderlifecycleDetails(String lifecycleDetails)Detailed message for the lifecycle state.PluggableDatabase.BuilderlifecycleState(PluggableDatabase.LifecycleState lifecycleState)The current state of the pluggable database.PluggableDatabase.BuilderopenMode(PluggableDatabase.OpenMode openMode)Deprecated. UsepluggableDatabaseNodeLevelDetailsfor OpenMode details.PluggableDatabase.BuilderpdbName(String pdbName)The name for the pluggable database (PDB).PluggableDatabase.BuilderpdbNodeLevelDetails(List<PluggableDatabaseNodeLevelDetails> pdbNodeLevelDetails)Pluggable Database Node Level Details.PluggableDatabase.BuilderpluggableDatabaseManagementConfig(PluggableDatabaseManagementConfig pluggableDatabaseManagementConfig)PluggableDatabase.BuilderrefreshableCloneConfig(PluggableDatabaseRefreshableCloneConfig refreshableCloneConfig)PluggableDatabase.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.PluggableDatabase.BuildertimeCreated(Date timeCreated)The date and time the pluggable database was created.
 
- 
- 
- 
Method Detail- 
idpublic PluggableDatabase.Builder id(String id) The OCID of the pluggable database.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
containerDatabaseIdpublic PluggableDatabase.Builder containerDatabaseId(String containerDatabaseId) The OCID of the CDB.- Parameters:
- containerDatabaseId- the value to set
- Returns:
- this builder
 
 - 
pdbNamepublic PluggableDatabase.Builder pdbName(String pdbName) The name for the pluggable database (PDB).The name is unique in the context of a Database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.- Parameters:
- pdbName- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic PluggableDatabase.Builder lifecycleState(PluggableDatabase.LifecycleState lifecycleState) The current state of the pluggable database.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic PluggableDatabase.Builder lifecycleDetails(String lifecycleDetails) Detailed message for the lifecycle state.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic PluggableDatabase.Builder timeCreated(Date timeCreated) The date and time the pluggable database was created.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
connectionStringspublic PluggableDatabase.Builder connectionStrings(PluggableDatabaseConnectionStrings connectionStrings) 
 - 
openModepublic PluggableDatabase.Builder openMode(PluggableDatabase.OpenMode openMode) Deprecated. UsepluggableDatabaseNodeLevelDetailsfor OpenMode details.The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software). - Parameters:
- openMode- the value to set
- Returns:
- this builder
 
 - 
isRestrictedpublic PluggableDatabase.Builder isRestricted(Boolean isRestricted) The restricted mode of the pluggable database.If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it. - Parameters:
- isRestricted- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic PluggableDatabase.Builder compartmentId(String compartmentId) The OCID of the compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic PluggableDatabase.Builder freeformTags(Map<String,String> freeformTags) Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic PluggableDatabase.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
systemTagspublic PluggableDatabase.Builder systemTags(Map<String,Map<String,Object>> systemTags) System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
pluggableDatabaseManagementConfigpublic PluggableDatabase.Builder pluggableDatabaseManagementConfig(PluggableDatabaseManagementConfig pluggableDatabaseManagementConfig) 
 - 
kmsKeyIdpublic PluggableDatabase.Builder kmsKeyId(String kmsKeyId) The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.- Parameters:
- kmsKeyId- the value to set
- Returns:
- this builder
 
 - 
kmsKeyVersionIdpublic PluggableDatabase.Builder kmsKeyVersionId(String kmsKeyVersionId) The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions.If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances. - Parameters:
- kmsKeyVersionId- the value to set
- Returns:
- this builder
 
 - 
refreshableCloneConfigpublic PluggableDatabase.Builder refreshableCloneConfig(PluggableDatabaseRefreshableCloneConfig refreshableCloneConfig) 
 - 
pdbNodeLevelDetailspublic PluggableDatabase.Builder pdbNodeLevelDetails(List<PluggableDatabaseNodeLevelDetails> pdbNodeLevelDetails) Pluggable Database Node Level Details.Example: [{“nodeName” : “node1”, “openMode” : “READ_WRITE”}, {“nodeName” : “node2”, “openMode” : “READ_ONLY”}] - Parameters:
- pdbNodeLevelDetails- the value to set
- Returns:
- this builder
 
 - 
buildpublic PluggableDatabase build() 
 - 
copypublic PluggableDatabase.Builder copy(PluggableDatabase model) 
 
- 
 
-