Interface CachePolicySummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CachePolicySummary.Builder,
,CachePolicySummary> SdkBuilder<CachePolicySummary.Builder,
,CachePolicySummary> SdkPojo
- Enclosing class:
CachePolicySummary
public static interface CachePolicySummary.Builder
extends SdkPojo, CopyableBuilder<CachePolicySummary.Builder,CachePolicySummary>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CachePolicySummary.Builder
cachePolicy
(Consumer<CachePolicy.Builder> cachePolicy) The cache policy.cachePolicy
(CachePolicy cachePolicy) The cache policy.The type of cache policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).type
(CachePolicyType type) The type of cache policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).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
-
type
The type of cache policy, either
managed
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Parameters:
type
- The type of cache policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of cache policy, either
managed
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Parameters:
type
- The type of cache policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cachePolicy
The cache policy.
- Parameters:
cachePolicy
- The cache policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cachePolicy
The 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:
-