Class DedicatedShardedDatabase.Builder
- java.lang.Object
-
- com.oracle.bmc.globallydistributeddatabase.model.DedicatedShardedDatabase.Builder
-
- Enclosing class:
- DedicatedShardedDatabase
public static class DedicatedShardedDatabase.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public DedicatedShardedDatabase.Builder id(String id)
-
compartmentId
public DedicatedShardedDatabase.Builder compartmentId(String compartmentId)
-
displayName
public DedicatedShardedDatabase.Builder displayName(String displayName)
-
timeCreated
public DedicatedShardedDatabase.Builder timeCreated(Date timeCreated)
-
timeUpdated
public DedicatedShardedDatabase.Builder timeUpdated(Date timeUpdated)
-
lifecycleState
public DedicatedShardedDatabase.Builder lifecycleState(ShardedDatabase.LifecycleState lifecycleState)
-
lifecycleStateDetails
public DedicatedShardedDatabase.Builder lifecycleStateDetails(String lifecycleStateDetails)
-
freeformTags
public DedicatedShardedDatabase.Builder freeformTags(Map<String,String> freeformTags)
-
definedTags
public DedicatedShardedDatabase.Builder definedTags(Map<String,Map<String,Object>> definedTags)
-
systemTags
public DedicatedShardedDatabase.Builder systemTags(Map<String,Map<String,Object>> systemTags)
-
replicationMethod
public DedicatedShardedDatabase.Builder replicationMethod(DedicatedShardedDatabase.ReplicationMethod replicationMethod)
The Replication method for sharded 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 DedicatedShardedDatabase.Builder replicationFactor(Integer replicationFactor)
The Replication factor for RAFT replication based sharded database.Currently supported values are 3, 5 and 7.
- Parameters:
replicationFactor
- the value to set- Returns:
- this builder
-
replicationUnit
public DedicatedShardedDatabase.Builder replicationUnit(Integer replicationUnit)
For RAFT replication based sharded database, the value should be atleast twice the number of shards.- Parameters:
replicationUnit
- the value to set- Returns:
- this builder
-
clusterCertificateCommonName
public DedicatedShardedDatabase.Builder clusterCertificateCommonName(String clusterCertificateCommonName)
The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology.Eg. Production. All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for clusterCertificateCommonName include uppercase or lowercase letters, numbers, hyphens, underscores, and period.
- Parameters:
clusterCertificateCommonName
- the value to set- Returns:
- this builder
-
characterSet
public DedicatedShardedDatabase.Builder characterSet(String characterSet)
The character set for the database.- Parameters:
characterSet
- the value to set- Returns:
- this builder
-
ncharacterSet
public DedicatedShardedDatabase.Builder ncharacterSet(String ncharacterSet)
The national character set for the database.- Parameters:
ncharacterSet
- the value to set- Returns:
- this builder
-
chunks
public DedicatedShardedDatabase.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
-
dbWorkload
public DedicatedShardedDatabase.Builder dbWorkload(DedicatedShardedDatabase.DbWorkload dbWorkload)
Possible workload types.- Parameters:
dbWorkload
- the value to set- Returns:
- this builder
-
shardingMethod
public DedicatedShardedDatabase.Builder shardingMethod(DedicatedShardedDatabase.ShardingMethod shardingMethod)
Sharding Method.- Parameters:
shardingMethod
- the value to set- Returns:
- this builder
-
dbVersion
public DedicatedShardedDatabase.Builder dbVersion(String dbVersion)
Oracle Database version number.- Parameters:
dbVersion
- the value to set- Returns:
- this builder
-
listenerPort
public DedicatedShardedDatabase.Builder listenerPort(Integer listenerPort)
The GSM listener port number.- Parameters:
listenerPort
- the value to set- Returns:
- this builder
-
listenerPortTls
public DedicatedShardedDatabase.Builder listenerPortTls(Integer listenerPortTls)
The TLS listener port number for sharded database.- Parameters:
listenerPortTls
- the value to set- Returns:
- this builder
-
onsPortLocal
public DedicatedShardedDatabase.Builder onsPortLocal(Integer onsPortLocal)
Ons local port number.- Parameters:
onsPortLocal
- the value to set- Returns:
- this builder
-
onsPortRemote
public DedicatedShardedDatabase.Builder onsPortRemote(Integer onsPortRemote)
Ons remote port number.- Parameters:
onsPortRemote
- the value to set- Returns:
- this builder
-
prefix
public DedicatedShardedDatabase.Builder prefix(String prefix)
Unique prefix for the sharded database.- Parameters:
prefix
- the value to set- Returns:
- this builder
-
privateEndpoint
public DedicatedShardedDatabase.Builder privateEndpoint(String privateEndpoint)
The OCID of private endpoint being used by the sharded database.- Parameters:
privateEndpoint
- the value to set- Returns:
- this builder
-
connectionStrings
public DedicatedShardedDatabase.Builder connectionStrings(ConnectionString connectionStrings)
-
timeZone
public DedicatedShardedDatabase.Builder timeZone(String timeZone)
Timezone associated with the sharded database.- Parameters:
timeZone
- the value to set- Returns:
- this builder
-
gsms
public DedicatedShardedDatabase.Builder gsms(List<GsmDetails> gsms)
Details of GSM instances for the sharded database.- Parameters:
gsms
- the value to set- Returns:
- this builder
-
shardDetails
public DedicatedShardedDatabase.Builder shardDetails(List<DedicatedShardDetails> shardDetails)
Details of ATP-D based shards.- Parameters:
shardDetails
- the value to set- Returns:
- this builder
-
catalogDetails
public DedicatedShardedDatabase.Builder catalogDetails(List<DedicatedCatalogDetails> catalogDetails)
Details of ATP-D based catalogs.- Parameters:
catalogDetails
- the value to set- Returns:
- this builder
-
build
public DedicatedShardedDatabase build()
-
copy
public DedicatedShardedDatabase.Builder copy(DedicatedShardedDatabase model)
-
-