Interface GetCachePolicyConfigResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudFrontResponse.Builder
,CopyableBuilder<GetCachePolicyConfigResponse.Builder,
,GetCachePolicyConfigResponse> SdkBuilder<GetCachePolicyConfigResponse.Builder,
,GetCachePolicyConfigResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCachePolicyConfigResponse
public static interface GetCachePolicyConfigResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<GetCachePolicyConfigResponse.Builder,GetCachePolicyConfigResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncachePolicyConfig
(Consumer<CachePolicyConfig.Builder> cachePolicyConfig) The cache policy configuration.cachePolicyConfig
(CachePolicyConfig cachePolicyConfig) The cache policy configuration.The current version of the cache policy.Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
cachePolicyConfig
The cache policy configuration.
- Parameters:
cachePolicyConfig
- The cache policy configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePolicyConfig
default GetCachePolicyConfigResponse.Builder cachePolicyConfig(Consumer<CachePolicyConfig.Builder> cachePolicyConfig) The cache policy configuration.
This is a convenience method that creates an instance of theCachePolicyConfig.Builder
avoiding the need to create one manually viaCachePolicyConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocachePolicyConfig(CachePolicyConfig)
.- Parameters:
cachePolicyConfig
- a consumer that will call methods onCachePolicyConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eTag
The current version of the cache policy.
- Parameters:
eTag
- The current version of the cache policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-