public static class CreateRedisClusterDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateRedisClusterDetails |
build() |
CreateRedisClusterDetails.Builder |
clusterMode(RedisCluster.ClusterMode clusterMode)
Specifies whether the cluster is sharded or non-sharded.
|
CreateRedisClusterDetails.Builder |
compartmentId(String compartmentId)
The
OCID
of the compartment that contains the cluster.
|
CreateRedisClusterDetails.Builder |
copy(CreateRedisClusterDetails model) |
CreateRedisClusterDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateRedisClusterDetails.Builder |
displayName(String displayName)
A user-friendly name.
|
CreateRedisClusterDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
CreateRedisClusterDetails.Builder |
nodeCount(Integer nodeCount)
The number of nodes per shard in the cluster when clusterMode is SHARDED.
|
CreateRedisClusterDetails.Builder |
nodeMemoryInGBs(Float nodeMemoryInGBs)
The amount of memory allocated to the cluster’s nodes, in gigabytes.
|
CreateRedisClusterDetails.Builder |
nsgIds(List<String> nsgIds)
A list of Network Security Group (NSG)
OCIDs
associated with this cluster.
|
CreateRedisClusterDetails.Builder |
shardCount(Integer shardCount)
The number of shards in sharded cluster.
|
CreateRedisClusterDetails.Builder |
softwareVersion(RedisCluster.SoftwareVersion softwareVersion)
The OCI Cache engine version that the cluster is running.
|
CreateRedisClusterDetails.Builder |
subnetId(String subnetId)
The
OCID
of the cluster’s subnet.
|
public CreateRedisClusterDetails.Builder clusterMode(RedisCluster.ClusterMode clusterMode)
Specifies whether the cluster is sharded or non-sharded.
clusterMode
- the value to setpublic CreateRedisClusterDetails.Builder shardCount(Integer shardCount)
The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
shardCount
- the value to setpublic CreateRedisClusterDetails.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 CreateRedisClusterDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the cluster.
compartmentId
- the value to setpublic CreateRedisClusterDetails.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 CreateRedisClusterDetails.Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion)
The OCI Cache engine version that the cluster is running.
softwareVersion
- the value to setpublic CreateRedisClusterDetails.Builder nodeMemoryInGBs(Float nodeMemoryInGBs)
The amount of memory allocated to the cluster’s nodes, in gigabytes.
nodeMemoryInGBs
- the value to setpublic CreateRedisClusterDetails.Builder subnetId(String subnetId)
The OCID of the cluster’s subnet.
subnetId
- the value to setpublic CreateRedisClusterDetails.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 CreateRedisClusterDetails.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 CreateRedisClusterDetails.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 CreateRedisClusterDetails build()
public CreateRedisClusterDetails.Builder copy(CreateRedisClusterDetails model)
Copyright © 2016–2024. All rights reserved.