Package com.oracle.bmc.redis.model
Class UpdateRedisClusterDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.redis.model.UpdateRedisClusterDetails.Builder
-
- Enclosing class:
- UpdateRedisClusterDetails
public static class UpdateRedisClusterDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateRedisClusterDetailsbuild()UpdateRedisClusterDetails.Buildercopy(UpdateRedisClusterDetails model)UpdateRedisClusterDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.UpdateRedisClusterDetails.BuilderdisplayName(String displayName)A user-friendly name.UpdateRedisClusterDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.UpdateRedisClusterDetails.BuildernodeCount(Integer nodeCount)The number of nodes per shard in the cluster when clusterMode is SHARDED.UpdateRedisClusterDetails.BuildernodeMemoryInGBs(Float nodeMemoryInGBs)The amount of memory allocated to the cluster’s nodes, in gigabytes.UpdateRedisClusterDetails.BuildernsgIds(List<String> nsgIds)A list of Network Security Group (NSG) OCIDs associated with this cluster.UpdateRedisClusterDetails.BuilderociCacheConfigSetId(String ociCacheConfigSetId)The ID of the corresponding OCI Cache Config Set for the cluster.UpdateRedisClusterDetails.BuildersecurityAttributes(Map<String,Map<String,Object>> securityAttributes)Security attributes for redis cluster resource.UpdateRedisClusterDetails.BuildershardCount(Integer shardCount)The number of shards in sharded cluster.UpdateRedisClusterDetails.BuildersoftwareVersion(RedisCluster.SoftwareVersion softwareVersion)The OCI Cache engine version that the cluster is running.
-
-
-
Method Detail
-
ociCacheConfigSetId
public UpdateRedisClusterDetails.Builder ociCacheConfigSetId(String ociCacheConfigSetId)
The ID of the corresponding OCI Cache Config Set for the cluster.- Parameters:
ociCacheConfigSetId- the value to set- Returns:
- this builder
-
shardCount
public UpdateRedisClusterDetails.Builder shardCount(Integer shardCount)
The number of shards in sharded cluster.Only applicable when clusterMode is SHARDED.
- Parameters:
shardCount- the value to set- Returns:
- this builder
-
displayName
public UpdateRedisClusterDetails.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
nodeCount
public UpdateRedisClusterDetails.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.
- Parameters:
nodeCount- the value to set- Returns:
- this builder
-
nodeMemoryInGBs
public UpdateRedisClusterDetails.Builder nodeMemoryInGBs(Float nodeMemoryInGBs)
The amount of memory allocated to the cluster’s nodes, in gigabytes.- Parameters:
nodeMemoryInGBs- the value to set- Returns:
- this builder
-
softwareVersion
public UpdateRedisClusterDetails.Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion)
The OCI Cache engine version that the cluster is running.- Parameters:
softwareVersion- the value to set- Returns:
- this builder
-
nsgIds
public UpdateRedisClusterDetails.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.
- Parameters:
nsgIds- the value to set- Returns:
- this builder
-
securityAttributes
public UpdateRedisClusterDetails.Builder securityAttributes(Map<String,Map<String,Object>> securityAttributes)
Security attributes for redis cluster resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}
- Parameters:
securityAttributes- the value to set- Returns:
- this builder
-
freeformTags
public UpdateRedisClusterDetails.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 UpdateRedisClusterDetails.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 UpdateRedisClusterDetails build()
-
copy
public UpdateRedisClusterDetails.Builder copy(UpdateRedisClusterDetails model)
-
-