Class DistributedDatabaseSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.distributeddatabase.model.DistributedDatabaseSummary.Builder
-
- Enclosing class:
- DistributedDatabaseSummary
public static class DistributedDatabaseSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedDatabaseSummarybuild()DistributedDatabaseSummary.BuildercharacterSet(String characterSet)The character set for the database.DistributedDatabaseSummary.Builderchunks(Integer chunks)The default number of unique chunks in a shardspace.DistributedDatabaseSummary.BuildercompartmentId(String compartmentId)The OCID of the Globally distributed database compartment.DistributedDatabaseSummary.BuilderconnectionStrings(DistributedDbConnectionString connectionStrings)DistributedDatabaseSummary.Buildercopy(DistributedDatabaseSummary model)DistributedDatabaseSummary.BuilderdatabaseVersion(String databaseVersion)Oracle Database version for the shards and catalog used in Globally distributed database.DistributedDatabaseSummary.BuilderdbDeploymentType(DistributedDatabaseSummary.DbDeploymentType dbDeploymentType)The distributed database deployment type.DistributedDatabaseSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.DistributedDatabaseSummary.BuilderdisplayName(String displayName)The display name of the Globally distributed database.DistributedDatabaseSummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.DistributedDatabaseSummary.Builderid(String id)The OCID of the Globally distributed database.DistributedDatabaseSummary.BuilderlifecycleDetails(String lifecycleDetails)The lifecycleDetails for the Globally distributed database.DistributedDatabaseSummary.BuilderlifecycleState(DistributedDatabase.LifecycleState lifecycleState)Lifecycle state of sharded database.DistributedDatabaseSummary.BuilderlistenerPort(Integer listenerPort)The listener port number for the Globally distributed database.DistributedDatabaseSummary.BuilderlistenerPortTls(Integer listenerPortTls)The TLS listener port number for the Globally distributed database.DistributedDatabaseSummary.Buildermetadata(DistributedDbMetadata metadata)DistributedDatabaseSummary.BuilderncharacterSet(String ncharacterSet)The national character set for the database.DistributedDatabaseSummary.BuilderonsPortLocal(Integer onsPortLocal)Ons local port number for the Globally distributed database.DistributedDatabaseSummary.BuilderonsPortRemote(Integer onsPortRemote)Ons remote port number for the Globally distributed database.DistributedDatabaseSummary.Builderprefix(String prefix)Unique name prefix for the Globally distributed databases.DistributedDatabaseSummary.BuilderprivateEndpointIds(List<String> privateEndpointIds)The collection of OCID of the private endpoint associated with Globally distributed autonomous database.DistributedDatabaseSummary.BuilderreplicationFactor(Integer replicationFactor)The Replication factor for RAFT replication based Globally distributed database.DistributedDatabaseSummary.BuilderreplicationMethod(DistributedDatabase.ReplicationMethod replicationMethod)The Replication method for Globally distributed database.DistributedDatabaseSummary.BuilderreplicationUnit(Integer replicationUnit)The replication unit count for RAFT based distributed database.DistributedDatabaseSummary.BuildershardingMethod(DistributedDatabase.ShardingMethod shardingMethod)Sharding Methods for the Globally distributed database.DistributedDatabaseSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.DistributedDatabaseSummary.BuildertimeCreated(Date timeCreated)The time the Globally distributed database was created.DistributedDatabaseSummary.BuildertimeUpdated(Date timeUpdated)The time the Globally distributed database was last updated.
-
-
-
Method Detail
-
id
public DistributedDatabaseSummary.Builder id(String id)
The OCID of the Globally distributed database.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public DistributedDatabaseSummary.Builder compartmentId(String compartmentId)
The OCID of the Globally distributed database compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public DistributedDatabaseSummary.Builder displayName(String displayName)
The display name of the Globally distributed database.- Parameters:
displayName- the value to set- Returns:
- this builder
-
timeCreated
public DistributedDatabaseSummary.Builder timeCreated(Date timeCreated)
The time the Globally distributed database was created.An RFC3339 formatted datetime string
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public DistributedDatabaseSummary.Builder timeUpdated(Date timeUpdated)
The time the Globally distributed database was last updated.An RFC3339 formatted datetime string
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
databaseVersion
public DistributedDatabaseSummary.Builder databaseVersion(String databaseVersion)
Oracle Database version for the shards and catalog used in Globally distributed database.- Parameters:
databaseVersion- the value to set- Returns:
- this builder
-
lifecycleState
public DistributedDatabaseSummary.Builder lifecycleState(DistributedDatabase.LifecycleState lifecycleState)
Lifecycle state of sharded database.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public DistributedDatabaseSummary.Builder lifecycleDetails(String lifecycleDetails)
The lifecycleDetails for the Globally distributed database.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
connectionStrings
public DistributedDatabaseSummary.Builder connectionStrings(DistributedDbConnectionString connectionStrings)
-
prefix
public DistributedDatabaseSummary.Builder prefix(String prefix)
Unique name prefix for the Globally distributed databases.Only alpha-numeric values are allowed. First character has to be a letter followed by any combination of letter and number.
- Parameters:
prefix- the value to set- Returns:
- this builder
-
privateEndpointIds
public DistributedDatabaseSummary.Builder privateEndpointIds(List<String> privateEndpointIds)
The collection of OCID of the private endpoint associated with Globally distributed autonomous database.- Parameters:
privateEndpointIds- the value to set- Returns:
- this builder
-
shardingMethod
public DistributedDatabaseSummary.Builder shardingMethod(DistributedDatabase.ShardingMethod shardingMethod)
Sharding Methods for the Globally distributed database.- Parameters:
shardingMethod- the value to set- Returns:
- this builder
-
characterSet
public DistributedDatabaseSummary.Builder characterSet(String characterSet)
The character set for the database.- Parameters:
characterSet- the value to set- Returns:
- this builder
-
ncharacterSet
public DistributedDatabaseSummary.Builder ncharacterSet(String ncharacterSet)
The national character set for the database.- Parameters:
ncharacterSet- the value to set- Returns:
- this builder
-
chunks
public DistributedDatabaseSummary.Builder chunks(Integer chunks)
The default number of unique chunks in a shardspace.The value of chunks must be greater than 2 times the size of the largest shardgroup in any shardspace.
- Parameters:
chunks- the value to set- Returns:
- this builder
-
listenerPort
public DistributedDatabaseSummary.Builder listenerPort(Integer listenerPort)
The listener port number for the Globally distributed database.- Parameters:
listenerPort- the value to set- Returns:
- this builder
-
listenerPortTls
public DistributedDatabaseSummary.Builder listenerPortTls(Integer listenerPortTls)
The TLS listener port number for the Globally distributed database.- Parameters:
listenerPortTls- the value to set- Returns:
- this builder
-
onsPortLocal
public DistributedDatabaseSummary.Builder onsPortLocal(Integer onsPortLocal)
Ons local port number for the Globally distributed database.- Parameters:
onsPortLocal- the value to set- Returns:
- this builder
-
onsPortRemote
public DistributedDatabaseSummary.Builder onsPortRemote(Integer onsPortRemote)
Ons remote port number for the Globally distributed database.- Parameters:
onsPortRemote- the value to set- Returns:
- this builder
-
replicationMethod
public DistributedDatabaseSummary.Builder replicationMethod(DistributedDatabase.ReplicationMethod replicationMethod)
The Replication method for Globally distributed database.Use RAFT for Raft replication, and DG for DataGuard. If replicationMethod is not provided, it defaults to DG.
- Parameters:
replicationMethod- the value to set- Returns:
- this builder
-
replicationFactor
public DistributedDatabaseSummary.Builder replicationFactor(Integer replicationFactor)
The Replication factor for RAFT replication based Globally distributed database.Currently supported values are 3, 5 and 7.
- Parameters:
replicationFactor- the value to set- Returns:
- this builder
-
replicationUnit
public DistributedDatabaseSummary.Builder replicationUnit(Integer replicationUnit)
The replication unit count for RAFT based distributed database.For RAFT replication based Globally distributed database, the value should be at least twice the number of shards.
- Parameters:
replicationUnit- the value to set- Returns:
- this builder
-
dbDeploymentType
public DistributedDatabaseSummary.Builder dbDeploymentType(DistributedDatabaseSummary.DbDeploymentType dbDeploymentType)
The distributed database deployment type.- Parameters:
dbDeploymentType- the value to set- Returns:
- this builder
-
metadata
public DistributedDatabaseSummary.Builder metadata(DistributedDbMetadata metadata)
-
freeformTags
public DistributedDatabaseSummary.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
-
definedTags
public DistributedDatabaseSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public DistributedDatabaseSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public DistributedDatabaseSummary build()
-
copy
public DistributedDatabaseSummary.Builder copy(DistributedDatabaseSummary model)
-
-