Interface CreateCachePolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudFrontResponse.Builder
,CopyableBuilder<CreateCachePolicyResponse.Builder,CreateCachePolicyResponse>
,SdkBuilder<CreateCachePolicyResponse.Builder,CreateCachePolicyResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- CreateCachePolicyResponse
public static interface CreateCachePolicyResponse.Builder extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<CreateCachePolicyResponse.Builder,CreateCachePolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateCachePolicyResponse.Builder
cachePolicy(Consumer<CachePolicy.Builder> cachePolicy)
A cache policy.CreateCachePolicyResponse.Builder
cachePolicy(CachePolicy cachePolicy)
A cache policy.CreateCachePolicyResponse.Builder
eTag(String eTag)
The current version of the cache policy.CreateCachePolicyResponse.Builder
location(String location)
The fully qualified URI of the cache policy just created.-
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 Detail
-
cachePolicy
CreateCachePolicyResponse.Builder cachePolicy(CachePolicy 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
default CreateCachePolicyResponse.Builder cachePolicy(Consumer<CachePolicy.Builder> cachePolicy)
A cache policy.
This is a convenience method that creates an instance of theCachePolicy.Builder
avoiding the need to create one manually viaCachePolicy.builder()
.When the
Consumer
completes,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:
cachePolicy(CachePolicy)
-
location
CreateCachePolicyResponse.Builder location(String location)
The fully qualified URI of the cache policy just created.
- Parameters:
location
- The fully qualified URI of the cache policy just created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eTag
CreateCachePolicyResponse.Builder eTag(String 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.
-
-