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.BuildercachePolicyConfig(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontRequest.Builder
buildMethods 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, 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.Builderavoiding the need to create one manually viaCachePolicyConfig.builder().When the
Consumercompletes,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
CachePolicyIdfield 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'sCachePolicyIdfield 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
ETagfield in the response toGetCachePolicyConfig.- Parameters:
ifMatch- The version of the cache policy that you are updating. The version is returned in the cache policy'sETagfield 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-