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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CachePolicySummary.Builder
cachePolicy(Consumer<CachePolicy.Builder> cachePolicy)
The cache policy.CachePolicySummary.Builder
cachePolicy(CachePolicy cachePolicy)
The cache policy.CachePolicySummary.Builder
type(String type)
The type of cache policy, eithermanaged
(created by Amazon Web Services) orcustom
(created in this Amazon Web Services account).CachePolicySummary.Builder
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 Detail
-
type
CachePolicySummary.Builder type(String 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:
CachePolicyType
,CachePolicyType
-
type
CachePolicySummary.Builder type(CachePolicyType 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:
CachePolicyType
,CachePolicyType
-
cachePolicy
CachePolicySummary.Builder cachePolicy(CachePolicy 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
default CachePolicySummary.Builder cachePolicy(Consumer<CachePolicy.Builder> 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:
cachePolicy(CachePolicy)
-
-