Interface UpdateCachePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudFrontResponse.Builder,CopyableBuilder<UpdateCachePolicyResponse.Builder,,UpdateCachePolicyResponse> SdkBuilder<UpdateCachePolicyResponse.Builder,,UpdateCachePolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
UpdateCachePolicyResponse
@Mutable
@NotThreadSafe
public static interface UpdateCachePolicyResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<UpdateCachePolicyResponse.Builder,UpdateCachePolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncachePolicy(Consumer<CachePolicy.Builder> cachePolicy) A cache policy.cachePolicy(CachePolicy cachePolicy) A cache policy.The current version of the cache policy.Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
cachePolicy
A cache policy.
- Parameters:
cachePolicy- A cache policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePolicy
A cache policy.
This is a convenience method that creates an instance of theCachePolicy.Builderavoiding the need to create one manually viaCachePolicy.builder().When the
Consumercompletes,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.
-