Class RedisCluster.Builder
- java.lang.Object
- 
- com.oracle.bmc.redis.model.RedisCluster.Builder
 
- 
- Enclosing class:
- RedisCluster
 
 public static class RedisCluster.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisClusterbuild()RedisCluster.BuilderclusterMode(RedisCluster.ClusterMode clusterMode)Specifies whether the cluster is sharded or non-sharded.RedisCluster.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the cluster.RedisCluster.Buildercopy(RedisCluster model)RedisCluster.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.RedisCluster.BuilderdiscoveryEndpointIpAddress(String discoveryEndpointIpAddress)The private IP address of the API endpoint for sharded cluster discovery.RedisCluster.BuilderdiscoveryFqdn(String discoveryFqdn)The fully qualified domain name (FQDN) of the API endpoint for sharded cluster discovery.RedisCluster.BuilderdisplayName(String displayName)A user-friendly name.RedisCluster.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.RedisCluster.Builderid(String id)The OCID of the cluster.RedisCluster.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.RedisCluster.BuilderlifecycleState(RedisCluster.LifecycleState lifecycleState)The current state of the cluster.RedisCluster.BuildernodeCollection(NodeCollection nodeCollection)RedisCluster.BuildernodeCount(Integer nodeCount)The number of nodes per shard in the cluster when clusterMode is SHARDED.RedisCluster.BuildernodeMemoryInGBs(Float nodeMemoryInGBs)The amount of memory allocated to the cluster’s nodes, in gigabytes.RedisCluster.BuildernsgIds(List<String> nsgIds)A list of Network Security Group (NSG) OCIDs associated with this cluster.RedisCluster.BuilderociCacheConfigSetId(String ociCacheConfigSetId)The ID of the corresponding OCI Cache Config Set for the cluster.RedisCluster.BuilderprimaryEndpointIpAddress(String primaryEndpointIpAddress)The private IP address of the API endpoint for the cluster’s primary node.RedisCluster.BuilderprimaryFqdn(String primaryFqdn)The fully qualified domain name (FQDN) of the API endpoint for the cluster’s primary node.RedisCluster.BuilderreplicasEndpointIpAddress(String replicasEndpointIpAddress)The private IP address of the API endpoint for the cluster’s replica nodes.RedisCluster.BuilderreplicasFqdn(String replicasFqdn)The fully qualified domain name (FQDN) of the API endpoint for the cluster’s replica nodes.RedisCluster.BuildersecurityAttributes(Map<String,Map<String,Object>> securityAttributes)Security attributes for redis cluster resource.RedisCluster.BuildershardCount(Integer shardCount)The number of shards in a sharded cluster.RedisCluster.BuildersoftwareVersion(RedisCluster.SoftwareVersion softwareVersion)The OCI Cache engine version that the cluster is running.RedisCluster.BuildersubnetId(String subnetId)The OCID of the cluster’s subnet.RedisCluster.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.RedisCluster.BuildertimeCreated(Date timeCreated)The date and time the cluster was created.RedisCluster.BuildertimeUpdated(Date timeUpdated)The date and time the cluster was updated.
 
- 
- 
- 
Method Detail- 
idpublic RedisCluster.Builder id(String id) The OCID of the cluster.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic RedisCluster.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
 
 - 
compartmentIdpublic RedisCluster.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the cluster.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic RedisCluster.Builder lifecycleState(RedisCluster.LifecycleState lifecycleState) The current state of the cluster.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic 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. - Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
nodeCountpublic 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. - Parameters:
- nodeCount- the value to set
- Returns:
- this builder
 
 - 
nodeMemoryInGBspublic RedisCluster.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
 
 - 
primaryFqdnpublic RedisCluster.Builder primaryFqdn(String primaryFqdn) The fully qualified domain name (FQDN) of the API endpoint for the cluster’s primary node.- Parameters:
- primaryFqdn- the value to set
- Returns:
- this builder
 
 - 
primaryEndpointIpAddresspublic RedisCluster.Builder primaryEndpointIpAddress(String primaryEndpointIpAddress) The private IP address of the API endpoint for the cluster’s primary node.- Parameters:
- primaryEndpointIpAddress- the value to set
- Returns:
- this builder
 
 - 
replicasFqdnpublic RedisCluster.Builder replicasFqdn(String replicasFqdn) The fully qualified domain name (FQDN) of the API endpoint for the cluster’s replica nodes.- Parameters:
- replicasFqdn- the value to set
- Returns:
- this builder
 
 - 
replicasEndpointIpAddresspublic RedisCluster.Builder replicasEndpointIpAddress(String replicasEndpointIpAddress) The private IP address of the API endpoint for the cluster’s replica nodes.- Parameters:
- replicasEndpointIpAddress- the value to set
- Returns:
- this builder
 
 - 
discoveryFqdnpublic RedisCluster.Builder discoveryFqdn(String discoveryFqdn) The fully qualified domain name (FQDN) of the API endpoint for sharded cluster discovery.- Parameters:
- discoveryFqdn- the value to set
- Returns:
- this builder
 
 - 
discoveryEndpointIpAddresspublic RedisCluster.Builder discoveryEndpointIpAddress(String discoveryEndpointIpAddress) The private IP address of the API endpoint for sharded cluster discovery.- Parameters:
- discoveryEndpointIpAddress- the value to set
- Returns:
- this builder
 
 - 
softwareVersionpublic RedisCluster.Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion) The OCI Cache engine version that the cluster is running.- Parameters:
- softwareVersion- the value to set
- Returns:
- this builder
 
 - 
subnetIdpublic RedisCluster.Builder subnetId(String subnetId) The OCID of the cluster’s subnet.- Parameters:
- subnetId- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic RedisCluster.Builder timeCreated(Date timeCreated) The date and time the cluster was created.An RFC3339 formatted datetime string. - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic RedisCluster.Builder timeUpdated(Date timeUpdated) The date and time the cluster was updated.An RFC3339 formatted datetime string. - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
nodeCollectionpublic RedisCluster.Builder nodeCollection(NodeCollection nodeCollection) 
 - 
ociCacheConfigSetIdpublic RedisCluster.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
 
 - 
clusterModepublic RedisCluster.Builder clusterMode(RedisCluster.ClusterMode clusterMode) Specifies whether the cluster is sharded or non-sharded.- Parameters:
- clusterMode- the value to set
- Returns:
- this builder
 
 - 
shardCountpublic RedisCluster.Builder shardCount(Integer shardCount) The number of shards in a sharded cluster.Only applicable when clusterMode is SHARDED. - Parameters:
- shardCount- the value to set
- Returns:
- this builder
 
 - 
nsgIdspublic 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. - Parameters:
- nsgIds- the value to set
- Returns:
- this builder
 
 - 
securityAttributespublic RedisCluster.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
 
 - 
freeformTagspublic 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”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
systemTagspublic 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”}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic RedisCluster build() 
 - 
copypublic RedisCluster.Builder copy(RedisCluster model) 
 
- 
 
-