Interface ModifyCacheSubnetGroupResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ModifyCacheSubnetGroupResponse.Builder,,ModifyCacheSubnetGroupResponse> ElastiCacheResponse.Builder,SdkBuilder<ModifyCacheSubnetGroupResponse.Builder,,ModifyCacheSubnetGroupResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ModifyCacheSubnetGroupResponse
@Mutable
@NotThreadSafe
public static interface ModifyCacheSubnetGroupResponse.Builder
extends ElastiCacheResponse.Builder, SdkPojo, CopyableBuilder<ModifyCacheSubnetGroupResponse.Builder,ModifyCacheSubnetGroupResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncacheSubnetGroup(Consumer<CacheSubnetGroup.Builder> cacheSubnetGroup) Sets the value of the CacheSubnetGroup property for this object.cacheSubnetGroup(CacheSubnetGroup cacheSubnetGroup) Sets the value of the CacheSubnetGroup 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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
cacheSubnetGroup
Sets the value of the CacheSubnetGroup property for this object.- Parameters:
cacheSubnetGroup- The new value for the CacheSubnetGroup property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheSubnetGroup
default ModifyCacheSubnetGroupResponse.Builder cacheSubnetGroup(Consumer<CacheSubnetGroup.Builder> cacheSubnetGroup) Sets the value of the CacheSubnetGroup property for this object. This is a convenience method that creates an instance of theCacheSubnetGroup.Builderavoiding the need to create one manually viaCacheSubnetGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocacheSubnetGroup(CacheSubnetGroup).- Parameters:
cacheSubnetGroup- a consumer that will call methods onCacheSubnetGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-