public static class RedisCluster.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RedisCluster |
build() |
RedisCluster.Builder |
clusterMode(RedisCluster.ClusterMode clusterMode)
Specifies whether the cluster is sharded or non-sharded.
|
RedisCluster.Builder |
compartmentId(String compartmentId)
The
OCID
of the compartment that contains the cluster.
|
RedisCluster.Builder |
copy(RedisCluster model) |
RedisCluster.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
RedisCluster.Builder |
displayName(String displayName)
A user-friendly name.
|
RedisCluster.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
RedisCluster.Builder |
id(String id)
The
OCID
of the cluster.
|
RedisCluster.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
RedisCluster.Builder |
lifecycleState(RedisCluster.LifecycleState lifecycleState)
The current state of the cluster.
|
RedisCluster.Builder |
nodeCollection(NodeCollection nodeCollection) |
RedisCluster.Builder |
nodeCount(Integer nodeCount)
The number of nodes per shard in the cluster when clusterMode is SHARDED.
|
RedisCluster.Builder |
nodeMemoryInGBs(Float nodeMemoryInGBs)
The amount of memory allocated to the cluster’s nodes, in gigabytes.
|
RedisCluster.Builder |
nsgIds(List<String> nsgIds)
A list of Network Security Group (NSG)
OCIDs
associated with this cluster.
|
RedisCluster.Builder |
primaryEndpointIpAddress(String primaryEndpointIpAddress)
The private IP address of the API endpoint for the cluster’s primary node.
|
RedisCluster.Builder |
primaryFqdn(String primaryFqdn)
The fully qualified domain name (FQDN) of the API endpoint for the cluster’s primary
node.
|
RedisCluster.Builder |
replicasEndpointIpAddress(String replicasEndpointIpAddress)
The private IP address of the API endpoint for the cluster’s replica nodes.
|
RedisCluster.Builder |
replicasFqdn(String replicasFqdn)
The fully qualified domain name (FQDN) of the API endpoint for the cluster’s replica
nodes.
|
RedisCluster.Builder |
shardCount(Integer shardCount)
The number of shards in a sharded cluster.
|
RedisCluster.Builder |
softwareVersion(RedisCluster.SoftwareVersion softwareVersion)
The OCI Cache engine version that the cluster is running.
|
RedisCluster.Builder |
subnetId(String subnetId)
The
OCID
of the cluster’s subnet.
|
RedisCluster.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
RedisCluster.Builder |
timeCreated(Date timeCreated)
The date and time the cluster was created.
|
RedisCluster.Builder |
timeUpdated(Date timeUpdated)
The date and time the cluster was updated.
|
public RedisCluster.Builder id(String id)
The OCID of the cluster.
id
- the value to setpublic RedisCluster.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic RedisCluster.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the cluster.
compartmentId
- the value to setpublic RedisCluster.Builder lifecycleState(RedisCluster.LifecycleState lifecycleState)
The current state of the cluster.
lifecycleState
- the value to setpublic RedisCluster.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail. For example, the message might
provide actionable information for a resource in FAILED
state.
lifecycleDetails
- the value to setpublic RedisCluster.Builder nodeCount(Integer nodeCount)
The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
nodeCount
- the value to setpublic RedisCluster.Builder nodeMemoryInGBs(Float nodeMemoryInGBs)
The amount of memory allocated to the cluster’s nodes, in gigabytes.
nodeMemoryInGBs
- the value to setpublic RedisCluster.Builder primaryFqdn(String primaryFqdn)
The fully qualified domain name (FQDN) of the API endpoint for the cluster’s primary node.
primaryFqdn
- the value to setpublic RedisCluster.Builder primaryEndpointIpAddress(String primaryEndpointIpAddress)
The private IP address of the API endpoint for the cluster’s primary node.
primaryEndpointIpAddress
- the value to setpublic RedisCluster.Builder replicasFqdn(String replicasFqdn)
The fully qualified domain name (FQDN) of the API endpoint for the cluster’s replica nodes.
replicasFqdn
- the value to setpublic RedisCluster.Builder replicasEndpointIpAddress(String replicasEndpointIpAddress)
The private IP address of the API endpoint for the cluster’s replica nodes.
replicasEndpointIpAddress
- the value to setpublic RedisCluster.Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion)
The OCI Cache engine version that the cluster is running.
softwareVersion
- the value to setpublic RedisCluster.Builder subnetId(String subnetId)
The OCID of the cluster’s subnet.
subnetId
- the value to setpublic RedisCluster.Builder timeCreated(Date timeCreated)
The date and time the cluster was created. An RFC3339 formatted datetime string.
timeCreated
- the value to setpublic RedisCluster.Builder timeUpdated(Date timeUpdated)
The date and time the cluster was updated. An RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic RedisCluster.Builder nodeCollection(NodeCollection nodeCollection)
public RedisCluster.Builder clusterMode(RedisCluster.ClusterMode clusterMode)
Specifies whether the cluster is sharded or non-sharded.
clusterMode
- the value to setpublic RedisCluster.Builder shardCount(Integer shardCount)
The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED.
shardCount
- the value to setpublic RedisCluster.Builder nsgIds(List<String> nsgIds)
A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
nsgIds
- the value to setpublic RedisCluster.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"}
freeformTags
- the value to setpublic RedisCluster.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"}}
definedTags
- the value to setpublic RedisCluster.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"}}
systemTags
- the value to setpublic RedisCluster build()
public RedisCluster.Builder copy(RedisCluster model)
Copyright © 2016–2024. All rights reserved.