Class CreateDistributedDatabaseDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • chunks

        public CreateDistributedDatabaseDetails.Builder chunks​(Integer chunks)
        Number of chunks in a shardspace.

        The value of chunks must be greater than 2 times the size of the largest shardgroup in any shardspace. Chunks is required to be provided for distributed databases being created with SYSTEM shardingMethod. For USER shardingMethod, chunks should not be set in create payload.

        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.

        The listener port number has to be unique for a customer tenancy across all distributed databases. Same port number should not be re-used for any other distributed database.

        Parameters:
        listenerPort - the value to set
        Returns:
        this builder
      • listenerPortTls

        public CreateDistributedDatabaseDetails.Builder listenerPortTls​(Integer listenerPortTls)
        The TLS listener port number for the Globally distributed database.

        The TLS listener port number has to be unique for a customer tenancy across all distributed databases. Same port number should not be re-used for any other distributed database. For BASE_DB and EXADB_XS based distributed databases, tls is not supported hence the listenerPortTls is not needed to be provided in create payload.

        Parameters:
        listenerPortTls - the value to set
        Returns:
        this builder
      • onsPortLocal

        public CreateDistributedDatabaseDetails.Builder onsPortLocal​(Integer onsPortLocal)
        The ons local port number for the Globally distributed database.

        The onsPortLocal has to be unique for a customer tenancy across all distributed databases. Same port number should not be re-used for any other distributed database.

        Parameters:
        onsPortLocal - the value to set
        Returns:
        this builder
      • onsPortRemote

        public CreateDistributedDatabaseDetails.Builder onsPortRemote​(Integer onsPortRemote)
        The ons remote port number for the Globally distributed database.

        The onsPortRemote has to be unique for a customer tenancy across all distributed databases. Same port number should not be re-used for any other distributed database.

        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 based replication. With RAFT replication, shards cannot have peers details set on them. In case shards need to have peers, please do not set RAFT replicationMethod. For all non RAFT replication cases (with or without peers), please set replicationMethod as DG or do not set any value for replicationMethod.

        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)
        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
      • 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
      • 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