Interface ModifyReplicationGroupShardConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyReplicationGroupShardConfigurationRequest.Builder,,ModifyReplicationGroupShardConfigurationRequest> ElastiCacheRequest.Builder,SdkBuilder<ModifyReplicationGroupShardConfigurationRequest.Builder,,ModifyReplicationGroupShardConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ModifyReplicationGroupShardConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionapplyImmediately(Boolean applyImmediately) Indicates that the shard reconfiguration process begins immediately.nodeGroupCount(Integer nodeGroupCount) The number of node groups (shards) that results from the modification of the shard configuration.nodeGroupsToRemove(String... nodeGroupsToRemove) If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.nodeGroupsToRemove(Collection<String> nodeGroupsToRemove) If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.nodeGroupsToRetain(String... nodeGroupsToRetain) If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.nodeGroupsToRetain(Collection<String> nodeGroupsToRetain) If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.replicationGroupId(String replicationGroupId) The name of the Valkey or Redis OSS (cluster mode enabled) cluster (replication group) on which the shards are to be configured.reshardingConfiguration(Collection<ReshardingConfiguration> reshardingConfiguration) Specifies the preferred availability zones for each node group in the cluster.reshardingConfiguration(Consumer<ReshardingConfiguration.Builder>... reshardingConfiguration) Specifies the preferred availability zones for each node group in the cluster.reshardingConfiguration(ReshardingConfiguration... reshardingConfiguration) Specifies the preferred availability zones for each node group in the cluster.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.elasticache.model.ElastiCacheRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
replicationGroupId
ModifyReplicationGroupShardConfigurationRequest.Builder replicationGroupId(String replicationGroupId) The name of the Valkey or Redis OSS (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
- Parameters:
replicationGroupId- The name of the Valkey or Redis OSS (cluster mode enabled) cluster (replication group) on which the shards are to be configured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeGroupCount
The number of node groups (shards) that results from the modification of the shard configuration.
- Parameters:
nodeGroupCount- The number of node groups (shards) that results from the modification of the shard configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applyImmediately
Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is
true.Value: true
- Parameters:
applyImmediately- Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter istrue.Value: true
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reshardingConfiguration
ModifyReplicationGroupShardConfigurationRequest.Builder reshardingConfiguration(Collection<ReshardingConfiguration> reshardingConfiguration) Specifies the preferred availability zones for each node group in the cluster. If the value of
NodeGroupCountis greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.You can specify this parameter only if the value of
NodeGroupCountis greater than the current number of node groups (shards).- Parameters:
reshardingConfiguration- Specifies the preferred availability zones for each node group in the cluster. If the value ofNodeGroupCountis greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.You can specify this parameter only if the value of
NodeGroupCountis greater than the current number of node groups (shards).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reshardingConfiguration
ModifyReplicationGroupShardConfigurationRequest.Builder reshardingConfiguration(ReshardingConfiguration... reshardingConfiguration) Specifies the preferred availability zones for each node group in the cluster. If the value of
NodeGroupCountis greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.You can specify this parameter only if the value of
NodeGroupCountis greater than the current number of node groups (shards).- Parameters:
reshardingConfiguration- Specifies the preferred availability zones for each node group in the cluster. If the value ofNodeGroupCountis greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.You can specify this parameter only if the value of
NodeGroupCountis greater than the current number of node groups (shards).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reshardingConfiguration
ModifyReplicationGroupShardConfigurationRequest.Builder reshardingConfiguration(Consumer<ReshardingConfiguration.Builder>... reshardingConfiguration) Specifies the preferred availability zones for each node group in the cluster. If the value of
NodeGroupCountis greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.You can specify this parameter only if the value of
This is a convenience method that creates an instance of theNodeGroupCountis greater than the current number of node groups (shards).ReshardingConfiguration.Builderavoiding the need to create one manually viaReshardingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreshardingConfiguration(List<ReshardingConfiguration>).- Parameters:
reshardingConfiguration- a consumer that will call methods onReshardingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nodeGroupsToRemove
ModifyReplicationGroupShardConfigurationRequest.Builder nodeGroupsToRemove(Collection<String> nodeGroupsToRemove) If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRemoveis a list ofNodeGroupIds to remove from the cluster.ElastiCache will attempt to remove all node groups listed by
NodeGroupsToRemovefrom the cluster.- Parameters:
nodeGroupsToRemove- If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRemoveis a list ofNodeGroupIds to remove from the cluster.ElastiCache will attempt to remove all node groups listed by
NodeGroupsToRemovefrom the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeGroupsToRemove
ModifyReplicationGroupShardConfigurationRequest.Builder nodeGroupsToRemove(String... nodeGroupsToRemove) If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRemoveis a list ofNodeGroupIds to remove from the cluster.ElastiCache will attempt to remove all node groups listed by
NodeGroupsToRemovefrom the cluster.- Parameters:
nodeGroupsToRemove- If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRemoveis a list ofNodeGroupIds to remove from the cluster.ElastiCache will attempt to remove all node groups listed by
NodeGroupsToRemovefrom the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeGroupsToRetain
ModifyReplicationGroupShardConfigurationRequest.Builder nodeGroupsToRetain(Collection<String> nodeGroupsToRetain) If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRetainis a list ofNodeGroupIds to retain in the cluster.ElastiCache will attempt to remove all node groups except those listed by
NodeGroupsToRetainfrom the cluster.- Parameters:
nodeGroupsToRetain- If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRetainis a list ofNodeGroupIds to retain in the cluster.ElastiCache will attempt to remove all node groups except those listed by
NodeGroupsToRetainfrom the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeGroupsToRetain
ModifyReplicationGroupShardConfigurationRequest.Builder nodeGroupsToRetain(String... nodeGroupsToRetain) If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRetainis a list ofNodeGroupIds to retain in the cluster.ElastiCache will attempt to remove all node groups except those listed by
NodeGroupsToRetainfrom the cluster.- Parameters:
nodeGroupsToRetain- If the value ofNodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRetainis a list ofNodeGroupIds to retain in the cluster.ElastiCache will attempt to remove all node groups except those listed by
NodeGroupsToRetainfrom the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyReplicationGroupShardConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifyReplicationGroupShardConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-