Interface CreateCacheParameterGroupResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateCacheParameterGroupResponse.Builder,,CreateCacheParameterGroupResponse> ElastiCacheResponse.Builder,SdkBuilder<CreateCacheParameterGroupResponse.Builder,,CreateCacheParameterGroupResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateCacheParameterGroupResponse
public static interface CreateCacheParameterGroupResponse.Builder
extends ElastiCacheResponse.Builder, SdkPojo, CopyableBuilder<CreateCacheParameterGroupResponse.Builder,CreateCacheParameterGroupResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncacheParameterGroup(Consumer<CacheParameterGroup.Builder> cacheParameterGroup) Sets the value of the CacheParameterGroup property for this object.cacheParameterGroup(CacheParameterGroup cacheParameterGroup) Sets the value of the CacheParameterGroup 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
-
cacheParameterGroup
CreateCacheParameterGroupResponse.Builder cacheParameterGroup(CacheParameterGroup cacheParameterGroup) Sets the value of the CacheParameterGroup property for this object.- Parameters:
cacheParameterGroup- The new value for the CacheParameterGroup property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheParameterGroup
default CreateCacheParameterGroupResponse.Builder cacheParameterGroup(Consumer<CacheParameterGroup.Builder> cacheParameterGroup) Sets the value of the CacheParameterGroup property for this object. This is a convenience method that creates an instance of theCacheParameterGroup.Builderavoiding the need to create one manually viaCacheParameterGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocacheParameterGroup(CacheParameterGroup).- Parameters:
cacheParameterGroup- a consumer that will call methods onCacheParameterGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-