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
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
-
serverlessCacheSnapshot
CopyServerlessCacheSnapshotResponse.Builder serverlessCacheSnapshot(ServerlessCacheSnapshot serverlessCacheSnapshot) The response for the attempt to copy the serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached only.
- Parameters:
serverlessCacheSnapshot- The response for the attempt to copy the serverless cache snapshot. Available for Valkey, Redis OSS and Serverless Memcached 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 Valkey, Redis OSS and Serverless Memcached only.
This is a convenience method that creates an instance of theServerlessCacheSnapshot.Builderavoiding the need to create one manually viaServerlessCacheSnapshot.builder().When the
Consumercompletes,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:
-