Interface CopyServerlessCacheSnapshotResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CopyServerlessCacheSnapshotResponse.Builder,
,CopyServerlessCacheSnapshotResponse> ElastiCacheResponse.Builder
,SdkBuilder<CopyServerlessCacheSnapshotResponse.Builder,
,CopyServerlessCacheSnapshotResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CopyServerlessCacheSnapshotResponse
public static interface CopyServerlessCacheSnapshotResponse.Builder
extends ElastiCacheResponse.Builder, SdkPojo, CopyableBuilder<CopyServerlessCacheSnapshotResponse.Builder,CopyServerlessCacheSnapshotResponse>
-
Method Summary
Modifier and TypeMethodDescriptionserverlessCacheSnapshot
(Consumer<ServerlessCacheSnapshot.Builder> serverlessCacheSnapshot) The response for the attempt to copy the serverless cache snapshot.serverlessCacheSnapshot
(ServerlessCacheSnapshot serverlessCacheSnapshot) The response for the attempt to copy the serverless cache snapshot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.elasticache.model.ElastiCacheResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
serverlessCacheSnapshot
CopyServerlessCacheSnapshotResponse.Builder serverlessCacheSnapshot(ServerlessCacheSnapshot serverlessCacheSnapshot) The response for the attempt to copy the serverless cache snapshot. Available for Redis only.
- Parameters:
serverlessCacheSnapshot
- The response for the attempt to copy the serverless cache snapshot. Available for Redis only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverlessCacheSnapshot
default CopyServerlessCacheSnapshotResponse.Builder serverlessCacheSnapshot(Consumer<ServerlessCacheSnapshot.Builder> serverlessCacheSnapshot) The response for the attempt to copy the serverless cache snapshot. Available for Redis only.
This is a convenience method that creates an instance of theServerlessCacheSnapshot.Builder
avoiding the need to create one manually viaServerlessCacheSnapshot.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverlessCacheSnapshot(ServerlessCacheSnapshot)
.- Parameters:
serverlessCacheSnapshot
- a consumer that will call methods onServerlessCacheSnapshot.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-