Interface ModifyReplicationGroupResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ModifyReplicationGroupResponse.Builder,,ModifyReplicationGroupResponse> ElastiCacheResponse.Builder,SdkBuilder<ModifyReplicationGroupResponse.Builder,,ModifyReplicationGroupResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ModifyReplicationGroupResponse
public static interface ModifyReplicationGroupResponse.Builder
extends ElastiCacheResponse.Builder, SdkPojo, CopyableBuilder<ModifyReplicationGroupResponse.Builder,ModifyReplicationGroupResponse>
-
Method Summary
Modifier and TypeMethodDescriptionreplicationGroup(Consumer<ReplicationGroup.Builder> replicationGroup) Sets the value of the ReplicationGroup property for this object.replicationGroup(ReplicationGroup replicationGroup) Sets the value of the ReplicationGroup property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.elasticache.model.ElastiCacheResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
replicationGroup
Sets the value of the ReplicationGroup property for this object.- Parameters:
replicationGroup- The new value for the ReplicationGroup property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationGroup
default ModifyReplicationGroupResponse.Builder replicationGroup(Consumer<ReplicationGroup.Builder> replicationGroup) Sets the value of the ReplicationGroup property for this object. This is a convenience method that creates an instance of theReplicationGroup.Builderavoiding the need to create one manually viaReplicationGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreplicationGroup(ReplicationGroup).- Parameters:
replicationGroup- a consumer that will call methods onReplicationGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-