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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default UpdateCachePolicyRequest.Builder
cachePolicyConfig(Consumer<CachePolicyConfig.Builder> cachePolicyConfig)
A cache policy configuration.UpdateCachePolicyRequest.Builder
cachePolicyConfig(CachePolicyConfig cachePolicyConfig)
A cache policy configuration.UpdateCachePolicyRequest.Builder
id(String id)
The unique identifier for the cache policy that you are updating.UpdateCachePolicyRequest.Builder
ifMatch(String ifMatch)
The version of the cache policy that you are updating.UpdateCachePolicyRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
UpdateCachePolicyRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
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 Detail
-
cachePolicyConfig
UpdateCachePolicyRequest.Builder cachePolicyConfig(CachePolicyConfig 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:
cachePolicyConfig(CachePolicyConfig)
-
id
UpdateCachePolicyRequest.Builder id(String 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
UpdateCachePolicyRequest.Builder ifMatch(String 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateCachePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-