Interface ModifyServerlessCacheResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ModifyServerlessCacheResponse.Builder,,ModifyServerlessCacheResponse> ElastiCacheResponse.Builder,SdkBuilder<ModifyServerlessCacheResponse.Builder,,ModifyServerlessCacheResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ModifyServerlessCacheResponse
@Mutable
@NotThreadSafe
public static interface ModifyServerlessCacheResponse.Builder
extends ElastiCacheResponse.Builder, SdkPojo, CopyableBuilder<ModifyServerlessCacheResponse.Builder,ModifyServerlessCacheResponse>
-
Method Summary
Modifier and TypeMethodDescriptionserverlessCache(Consumer<ServerlessCache.Builder> serverlessCache) The response for the attempt to modify the serverless cache.serverlessCache(ServerlessCache serverlessCache) The response for the attempt to modify the serverless cache.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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
serverlessCache
The response for the attempt to modify the serverless cache.
- Parameters:
serverlessCache- The response for the attempt to modify the serverless cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverlessCache
default ModifyServerlessCacheResponse.Builder serverlessCache(Consumer<ServerlessCache.Builder> serverlessCache) The response for the attempt to modify the serverless cache.
This is a convenience method that creates an instance of theServerlessCache.Builderavoiding the need to create one manually viaServerlessCache.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserverlessCache(ServerlessCache).- Parameters:
serverlessCache- a consumer that will call methods onServerlessCache.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-