Interface ClusterConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ClusterConfiguration.Builder,
,ClusterConfiguration> SdkBuilder<ClusterConfiguration.Builder,
,ClusterConfiguration> SdkPojo
- Enclosing class:
ClusterConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the cluster configurationengineVersion
(String engineVersion) The Redis engine version used by the clustermaintenanceWindow
(String maintenanceWindow) The specified maintenance window for the clusterThe name of the clusterThe node type used for the clusterThe number of shards in the clusterparameterGroupName
(String parameterGroupName) The name of parameter group used by the clusterThe port used by the clustershards
(Collection<ShardDetail> shards) The list of shards in the clustershards
(Consumer<ShardDetail.Builder>... shards) The list of shards in the clustershards
(ShardDetail... shards) The list of shards in the clustersnapshotRetentionLimit
(Integer snapshotRetentionLimit) The snapshot retention limit set by the clustersnapshotWindow
(String snapshotWindow) The snapshot window set by the clustersubnetGroupName
(String subnetGroupName) The name of the subnet group used by the clusterThe Amazon Resource Name (ARN) of the SNS notification topic for the clusterThe ID of the VPC the cluster belongs toMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the cluster
- Parameters:
name
- The name of the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the cluster configuration
- Parameters:
description
- The description of the cluster configuration- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeType
The node type used for the cluster
- Parameters:
nodeType
- The node type used for the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
The Redis engine version used by the cluster
- Parameters:
engineVersion
- The Redis engine version used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceWindow
The specified maintenance window for the cluster
- Parameters:
maintenanceWindow
- The specified maintenance window for the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicArn
The Amazon Resource Name (ARN) of the SNS notification topic for the cluster
- Parameters:
topicArn
- The Amazon Resource Name (ARN) of the SNS notification topic for the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
port
The port used by the cluster
- Parameters:
port
- The port used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameterGroupName
The name of parameter group used by the cluster
- Parameters:
parameterGroupName
- The name of parameter group used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetGroupName
The name of the subnet group used by the cluster
- Parameters:
subnetGroupName
- The name of the subnet group used by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The ID of the VPC the cluster belongs to
- Parameters:
vpcId
- The ID of the VPC the cluster belongs to- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotRetentionLimit
The snapshot retention limit set by the cluster
- Parameters:
snapshotRetentionLimit
- The snapshot retention limit set by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotWindow
The snapshot window set by the cluster
- Parameters:
snapshotWindow
- The snapshot window set by the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numShards
The number of shards in the cluster
- Parameters:
numShards
- The number of shards in the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
The list of shards in the cluster
- Parameters:
shards
- The list of shards in the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
The list of shards in the cluster
- Parameters:
shards
- The list of shards in the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
The list of shards in the cluster
This is a convenience method that creates an instance of theShardDetail.Builder
avoiding the need to create one manually viaShardDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshards(List<ShardDetail>)
.- Parameters:
shards
- a consumer that will call methods onShardDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-