Class CreateDistributedDatabaseDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.distributeddatabase.model.CreateDistributedDatabaseDetails.Builder
-
- Enclosing class:
- CreateDistributedDatabaseDetails
public static class CreateDistributedDatabaseDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDistributedDatabaseDetails
build()
CreateDistributedDatabaseDetails.Builder
catalogDetails(List<CreateDistributedDatabaseCatalogDetails> catalogDetails)
Collection of catalog for the Globally distributed database.CreateDistributedDatabaseDetails.Builder
characterSet(String characterSet)
The character set for the database.CreateDistributedDatabaseDetails.Builder
chunks(Integer chunks)
The default number of unique chunks in a shardspace.CreateDistributedDatabaseDetails.Builder
compartmentId(String compartmentId)
The OCID of the Globally distributed database compartment.CreateDistributedDatabaseDetails.Builder
copy(CreateDistributedDatabaseDetails model)
CreateDistributedDatabaseDetails.Builder
databaseVersion(String databaseVersion)
Oracle Database version for the shards and catalog used in Globally distributed database.CreateDistributedDatabaseDetails.Builder
dbBackupConfig(DistributedDbBackupConfig dbBackupConfig)
CreateDistributedDatabaseDetails.Builder
dbDeploymentType(CreateDistributedDatabaseDetails.DbDeploymentType dbDeploymentType)
The distributed database deployment type.CreateDistributedDatabaseDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateDistributedDatabaseDetails.Builder
displayName(String displayName)
The display name of the Globally distributed database.CreateDistributedDatabaseDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.CreateDistributedDatabaseDetails.Builder
gsmSshPublicKey(String gsmSshPublicKey)
The SSH public key for Global service manager instances.CreateDistributedDatabaseDetails.Builder
listenerPort(Integer listenerPort)
The listener port number for the Globally distributed database.CreateDistributedDatabaseDetails.Builder
listenerPortTls(Integer listenerPortTls)
The TLS listener port number for Globally distributed database.CreateDistributedDatabaseDetails.Builder
ncharacterSet(String ncharacterSet)
The national character set for the database.CreateDistributedDatabaseDetails.Builder
onsPortLocal(Integer onsPortLocal)
Ons local port number.CreateDistributedDatabaseDetails.Builder
onsPortRemote(Integer onsPortRemote)
Ons remote port number.CreateDistributedDatabaseDetails.Builder
prefix(String prefix)
Unique name prefix for the Globally distributed databases.CreateDistributedDatabaseDetails.Builder
privateEndpointIds(List<String> privateEndpointIds)
The collection of OCID of the private endpoint associated with Globally distributed autonomous database.CreateDistributedDatabaseDetails.Builder
replicationFactor(Integer replicationFactor)
The Replication factor for RAFT replication based Globally distributed database.CreateDistributedDatabaseDetails.Builder
replicationMethod(CreateDistributedDatabaseDetails.ReplicationMethod replicationMethod)
The Replication method for Globally distributed database.CreateDistributedDatabaseDetails.Builder
replicationUnit(Integer replicationUnit)
For RAFT replication based Globally distributed database, the value should be atleast twice the number of shards.CreateDistributedDatabaseDetails.Builder
shardDetails(List<CreateDistributedDatabaseShardDetails> shardDetails)
Collection of shards for the Globally distributed database.CreateDistributedDatabaseDetails.Builder
shardingMethod(CreateDistributedDatabaseDetails.ShardingMethod shardingMethod)
Sharding Methods for the Globally distributed database.
-
-
-
Method Detail
-
compartmentId
public CreateDistributedDatabaseDetails.Builder compartmentId(String compartmentId)
The OCID of the Globally distributed database compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public CreateDistributedDatabaseDetails.Builder displayName(String displayName)
The display name of the Globally distributed database.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
databaseVersion
public CreateDistributedDatabaseDetails.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
-
prefix
public CreateDistributedDatabaseDetails.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 CreateDistributedDatabaseDetails.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 CreateDistributedDatabaseDetails.Builder shardingMethod(CreateDistributedDatabaseDetails.ShardingMethod shardingMethod)
Sharding Methods for the Globally distributed database.- Parameters:
shardingMethod
- the value to set- Returns:
- this builder
-
characterSet
public CreateDistributedDatabaseDetails.Builder characterSet(String characterSet)
The character set for the database.- Parameters:
characterSet
- the value to set- Returns:
- this builder
-
ncharacterSet
public CreateDistributedDatabaseDetails.Builder ncharacterSet(String ncharacterSet)
The national character set for the database.- Parameters:
ncharacterSet
- the value to set- Returns:
- this builder
-
chunks
public CreateDistributedDatabaseDetails.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 CreateDistributedDatabaseDetails.Builder listenerPort(Integer listenerPort)
The listener port number for the Globally distributed database.- Parameters:
listenerPort
- the value to set- Returns:
- this builder
-
listenerPortTls
public CreateDistributedDatabaseDetails.Builder listenerPortTls(Integer listenerPortTls)
The TLS listener port number for Globally distributed database.- Parameters:
listenerPortTls
- the value to set- Returns:
- this builder
-
onsPortLocal
public CreateDistributedDatabaseDetails.Builder onsPortLocal(Integer onsPortLocal)
Ons local port number.- Parameters:
onsPortLocal
- the value to set- Returns:
- this builder
-
onsPortRemote
public CreateDistributedDatabaseDetails.Builder onsPortRemote(Integer onsPortRemote)
Ons remote port number.- Parameters:
onsPortRemote
- the value to set- Returns:
- this builder
-
replicationMethod
public CreateDistributedDatabaseDetails.Builder replicationMethod(CreateDistributedDatabaseDetails.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 CreateDistributedDatabaseDetails.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 CreateDistributedDatabaseDetails.Builder replicationUnit(Integer replicationUnit)
For RAFT replication based Globally distributed database, the value should be atleast twice the number of shards.- Parameters:
replicationUnit
- the value to set- Returns:
- this builder
-
dbDeploymentType
public CreateDistributedDatabaseDetails.Builder dbDeploymentType(CreateDistributedDatabaseDetails.DbDeploymentType dbDeploymentType)
The distributed database deployment type.- Parameters:
dbDeploymentType
- the value to set- Returns:
- this builder
-
shardDetails
public CreateDistributedDatabaseDetails.Builder shardDetails(List<CreateDistributedDatabaseShardDetails> shardDetails)
Collection of shards for the Globally distributed database.- Parameters:
shardDetails
- the value to set- Returns:
- this builder
-
catalogDetails
public CreateDistributedDatabaseDetails.Builder catalogDetails(List<CreateDistributedDatabaseCatalogDetails> catalogDetails)
Collection of catalog for the Globally distributed database.- Parameters:
catalogDetails
- the value to set- Returns:
- this builder
-
gsmSshPublicKey
public CreateDistributedDatabaseDetails.Builder gsmSshPublicKey(String gsmSshPublicKey)
The SSH public key for Global service manager instances.- Parameters:
gsmSshPublicKey
- the value to set- Returns:
- this builder
-
dbBackupConfig
public CreateDistributedDatabaseDetails.Builder dbBackupConfig(DistributedDbBackupConfig dbBackupConfig)
-
freeformTags
public CreateDistributedDatabaseDetails.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 CreateDistributedDatabaseDetails.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
-
build
public CreateDistributedDatabaseDetails build()
-
copy
public CreateDistributedDatabaseDetails.Builder copy(CreateDistributedDatabaseDetails model)
-
-