Interface UpdateCachePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudFrontRequest.Builder
,CopyableBuilder<UpdateCachePolicyRequest.Builder,
,UpdateCachePolicyRequest> SdkBuilder<UpdateCachePolicyRequest.Builder,
,UpdateCachePolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateCachePolicyRequest
public static interface UpdateCachePolicyRequest.Builder
extends CloudFrontRequest.Builder, SdkPojo, CopyableBuilder<UpdateCachePolicyRequest.Builder,UpdateCachePolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateCachePolicyRequest.Builder
cachePolicyConfig
(Consumer<CachePolicyConfig.Builder> cachePolicyConfig) A cache policy configuration.cachePolicyConfig
(CachePolicyConfig cachePolicyConfig) A cache policy configuration.The unique identifier for the cache policy that you are updating.The version of the cache policy that you are updating.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontRequest.Builder
build
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
-
Method Details
-
cachePolicyConfig
A cache policy configuration.
- Parameters:
cachePolicyConfig
- A cache policy configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePolicyConfig
default UpdateCachePolicyRequest.Builder cachePolicyConfig(Consumer<CachePolicyConfig.Builder> cachePolicyConfig) A 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:
-
id
The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior's
CachePolicyId
field in the response toGetDistributionConfig
.- Parameters:
id
- The unique identifier for the cache policy that you are updating. The identifier is returned in a cache behavior'sCachePolicyId
field in the response toGetDistributionConfig
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ifMatch
The version of the cache policy that you are updating. The version is returned in the cache policy's
ETag
field in the response toGetCachePolicyConfig
.- Parameters:
ifMatch
- The version of the cache policy that you are updating. The version is returned in the cache policy'sETag
field in the response toGetCachePolicyConfig
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateCachePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateCachePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-