Interface ListCachePoliciesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudFrontResponse.Builder
,CopyableBuilder<ListCachePoliciesResponse.Builder,
,ListCachePoliciesResponse> SdkBuilder<ListCachePoliciesResponse.Builder,
,ListCachePoliciesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListCachePoliciesResponse
public static interface ListCachePoliciesResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<ListCachePoliciesResponse.Builder,ListCachePoliciesResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncachePolicyList
(Consumer<CachePolicyList.Builder> cachePolicyList) A list of cache policies.cachePolicyList
(CachePolicyList cachePolicyList) A list of cache policies.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
-
cachePolicyList
A list of cache policies.
- Parameters:
cachePolicyList
- A list of cache policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePolicyList
default ListCachePoliciesResponse.Builder cachePolicyList(Consumer<CachePolicyList.Builder> cachePolicyList) A list of cache policies.
This is a convenience method that creates an instance of theCachePolicyList.Builder
avoiding the need to create one manually viaCachePolicyList.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocachePolicyList(CachePolicyList)
.- Parameters:
cachePolicyList
- a consumer that will call methods onCachePolicyList.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-