Interface GetCachePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudFrontResponse.Builder
,CopyableBuilder<GetCachePolicyResponse.Builder,
,GetCachePolicyResponse> SdkBuilder<GetCachePolicyResponse.Builder,
,GetCachePolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCachePolicyResponse
public static interface GetCachePolicyResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<GetCachePolicyResponse.Builder,GetCachePolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetCachePolicyResponse.Builder
cachePolicy
(Consumer<CachePolicy.Builder> cachePolicy) The cache policy.cachePolicy
(CachePolicy cachePolicy) The cache policy.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
-
cachePolicy
The cache policy.
- Parameters:
cachePolicy
- The cache policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePolicy
The cache policy.
This is a convenience method that creates an instance of theCachePolicy.Builder
avoiding the need to create one manually viaCachePolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocachePolicy(CachePolicy)
.- Parameters:
cachePolicy
- a consumer that will call methods onCachePolicy.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.
-