Class ManagedDatabase.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.ManagedDatabase.Builder
-
- Enclosing class:
- ManagedDatabase
public static class ManagedDatabase.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedDatabase.Builder
additionalDetails(Map<String,String> additionalDetails)
The additional details specific to a type of database defined in {“key”: “value”} format.ManagedDatabase
build()
ManagedDatabase.Builder
compartmentId(String compartmentId)
The OCID of the compartment.ManagedDatabase.Builder
copy(ManagedDatabase model)
ManagedDatabase.Builder
databasePlatformName(String databasePlatformName)
The operating system of database.ManagedDatabase.Builder
databaseStatus(DatabaseStatus databaseStatus)
The status of the Oracle Database.ManagedDatabase.Builder
databaseSubType(DatabaseSubType databaseSubType)
The subtype of the Oracle Database.ManagedDatabase.Builder
databaseType(DatabaseType databaseType)
The type of Oracle Database installation.ManagedDatabase.Builder
databaseVersion(String databaseVersion)
The Oracle Database version.ManagedDatabase.Builder
dbmgmtFeatureConfigs(List<DatabaseFeatureConfiguration> dbmgmtFeatureConfigs)
The list of feature configurationsManagedDatabase.Builder
dbSystemId(String dbSystemId)
The OCID of the external DB system that this Managed Database is part of.ManagedDatabase.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ManagedDatabase.Builder
deploymentType(DeploymentType deploymentType)
The infrastructure used to deploy the Oracle Database.ManagedDatabase.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.ManagedDatabase.Builder
id(String id)
The OCID of the Managed Database.ManagedDatabase.Builder
instanceCount(Integer instanceCount)
The number of Oracle Real Application Clusters (Oracle RAC) database instances.ManagedDatabase.Builder
instanceDetails(List<InstanceDetails> instanceDetails)
The details of the Oracle Real Application Clusters (Oracle RAC) database instances.ManagedDatabase.Builder
isCluster(Boolean isCluster)
Indicates whether the Oracle Database is part of a cluster.ManagedDatabase.Builder
managedDatabaseGroups(List<ParentGroup> managedDatabaseGroups)
A list of Managed Database Groups that the Managed Database belongs to.ManagedDatabase.Builder
managementOption(ManagementOption managementOption)
The management option used when enabling Database Management.ManagedDatabase.Builder
name(String name)
The name of the Managed Database.ManagedDatabase.Builder
parentContainerCompartmentId(String parentContainerCompartmentId)
The OCID of the compartment in which the parent Container Database resides, if the Managed Database is a Pluggable Database (PDB).ManagedDatabase.Builder
parentContainerId(String parentContainerId)
The OCID of the parent Container Database if Managed Database is a Pluggable Database.ManagedDatabase.Builder
parentContainerName(String parentContainerName)
The name of the parent Container Database.ManagedDatabase.Builder
pdbCount(Integer pdbCount)
The number of PDBs in the Container Database.ManagedDatabase.Builder
pdbStatus(List<PdbStatusDetails> pdbStatus)
The status of the PDB in the Container Database.ManagedDatabase.Builder
storageSystemId(String storageSystemId)
The OCID of the storage DB system.ManagedDatabase.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.ManagedDatabase.Builder
timeCreated(Date timeCreated)
The date and time the Managed Database was created.ManagedDatabase.Builder
workloadType(WorkloadType workloadType)
The workload type of the Autonomous Database.
-
-
-
Method Detail
-
id
public ManagedDatabase.Builder id(String id)
The OCID of the Managed Database.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public ManagedDatabase.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public ManagedDatabase.Builder name(String name)
The name of the Managed Database.- Parameters:
name
- the value to set- Returns:
- this builder
-
databaseType
public ManagedDatabase.Builder databaseType(DatabaseType databaseType)
The type of Oracle Database installation.- Parameters:
databaseType
- the value to set- Returns:
- this builder
-
databaseSubType
public ManagedDatabase.Builder databaseSubType(DatabaseSubType databaseSubType)
The subtype of the Oracle Database.Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
- Parameters:
databaseSubType
- the value to set- Returns:
- this builder
-
deploymentType
public ManagedDatabase.Builder deploymentType(DeploymentType deploymentType)
The infrastructure used to deploy the Oracle Database.- Parameters:
deploymentType
- the value to set- Returns:
- this builder
-
managementOption
public ManagedDatabase.Builder managementOption(ManagementOption managementOption)
The management option used when enabling Database Management.- Parameters:
managementOption
- the value to set- Returns:
- this builder
-
workloadType
public ManagedDatabase.Builder workloadType(WorkloadType workloadType)
The workload type of the Autonomous Database.- Parameters:
workloadType
- the value to set- Returns:
- this builder
-
isCluster
public ManagedDatabase.Builder isCluster(Boolean isCluster)
Indicates whether the Oracle Database is part of a cluster.- Parameters:
isCluster
- the value to set- Returns:
- this builder
-
parentContainerId
public ManagedDatabase.Builder parentContainerId(String parentContainerId)
The OCID of the parent Container Database if Managed Database is a Pluggable Database.- Parameters:
parentContainerId
- the value to set- Returns:
- this builder
-
managedDatabaseGroups
public ManagedDatabase.Builder managedDatabaseGroups(List<ParentGroup> managedDatabaseGroups)
A list of Managed Database Groups that the Managed Database belongs to.- Parameters:
managedDatabaseGroups
- the value to set- Returns:
- this builder
-
dbSystemId
public ManagedDatabase.Builder dbSystemId(String dbSystemId)
The OCID of the external DB system that this Managed Database is part of.- Parameters:
dbSystemId
- the value to set- Returns:
- this builder
-
storageSystemId
public ManagedDatabase.Builder storageSystemId(String storageSystemId)
The OCID of the storage DB system.- Parameters:
storageSystemId
- the value to set- Returns:
- this builder
-
timeCreated
public ManagedDatabase.Builder timeCreated(Date timeCreated)
The date and time the Managed Database was created.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
databaseVersion
public ManagedDatabase.Builder databaseVersion(String databaseVersion)
The Oracle Database version.- Parameters:
databaseVersion
- the value to set- Returns:
- this builder
-
databaseStatus
public ManagedDatabase.Builder databaseStatus(DatabaseStatus databaseStatus)
The status of the Oracle Database.Indicates whether the status of the database is UP, DOWN, or UNKNOWN at the current time.
- Parameters:
databaseStatus
- the value to set- Returns:
- this builder
-
parentContainerName
public ManagedDatabase.Builder parentContainerName(String parentContainerName)
The name of the parent Container Database.- Parameters:
parentContainerName
- the value to set- Returns:
- this builder
-
parentContainerCompartmentId
public ManagedDatabase.Builder parentContainerCompartmentId(String parentContainerCompartmentId)
The OCID of the compartment in which the parent Container Database resides, if the Managed Database is a Pluggable Database (PDB).- Parameters:
parentContainerCompartmentId
- the value to set- Returns:
- this builder
-
instanceCount
public ManagedDatabase.Builder instanceCount(Integer instanceCount)
The number of Oracle Real Application Clusters (Oracle RAC) database instances.- Parameters:
instanceCount
- the value to set- Returns:
- this builder
-
instanceDetails
public ManagedDatabase.Builder instanceDetails(List<InstanceDetails> instanceDetails)
The details of the Oracle Real Application Clusters (Oracle RAC) database instances.- Parameters:
instanceDetails
- the value to set- Returns:
- this builder
-
pdbCount
public ManagedDatabase.Builder pdbCount(Integer pdbCount)
The number of PDBs in the Container Database.- Parameters:
pdbCount
- the value to set- Returns:
- this builder
-
pdbStatus
public ManagedDatabase.Builder pdbStatus(List<PdbStatusDetails> pdbStatus)
The status of the PDB in the Container Database.- Parameters:
pdbStatus
- the value to set- Returns:
- this builder
-
additionalDetails
public ManagedDatabase.Builder additionalDetails(Map<String,String> additionalDetails)
The additional details specific to a type of database defined in {“key”: “value”} format.Example: {“bar-key”: “value”}
- Parameters:
additionalDetails
- the value to set- Returns:
- this builder
-
freeformTags
public ManagedDatabase.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
-
definedTags
public ManagedDatabase.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. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public ManagedDatabase.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. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
dbmgmtFeatureConfigs
public ManagedDatabase.Builder dbmgmtFeatureConfigs(List<DatabaseFeatureConfiguration> dbmgmtFeatureConfigs)
The list of feature configurations- Parameters:
dbmgmtFeatureConfigs
- the value to set- Returns:
- this builder
-
databasePlatformName
public ManagedDatabase.Builder databasePlatformName(String databasePlatformName)
The operating system of database.- Parameters:
databasePlatformName
- the value to set- Returns:
- this builder
-
build
public ManagedDatabase build()
-
copy
public ManagedDatabase.Builder copy(ManagedDatabase model)
-
-