Interface CacheBehaviors.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CacheBehaviors.Builder,CacheBehaviors>
,SdkBuilder<CacheBehaviors.Builder,CacheBehaviors>
,SdkPojo
- Enclosing class:
- CacheBehaviors
public static interface CacheBehaviors.Builder extends SdkPojo, CopyableBuilder<CacheBehaviors.Builder,CacheBehaviors>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheBehaviors.Builder
items(Collection<CacheBehavior> items)
Optional: A complex type that contains cache behaviors for this distribution.CacheBehaviors.Builder
items(Consumer<CacheBehavior.Builder>... items)
Optional: A complex type that contains cache behaviors for this distribution.CacheBehaviors.Builder
items(CacheBehavior... items)
Optional: A complex type that contains cache behaviors for this distribution.CacheBehaviors.Builder
quantity(Integer quantity)
The number of cache behaviors for this distribution.-
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
-
quantity
CacheBehaviors.Builder quantity(Integer quantity)
The number of cache behaviors for this distribution.
- Parameters:
quantity
- The number of cache behaviors for this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
CacheBehaviors.Builder items(Collection<CacheBehavior> items)
Optional: A complex type that contains cache behaviors for this distribution. If
Quantity
is0
, you can omitItems
.- Parameters:
items
- Optional: A complex type that contains cache behaviors for this distribution. IfQuantity
is0
, you can omitItems
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
CacheBehaviors.Builder items(CacheBehavior... items)
Optional: A complex type that contains cache behaviors for this distribution. If
Quantity
is0
, you can omitItems
.- Parameters:
items
- Optional: A complex type that contains cache behaviors for this distribution. IfQuantity
is0
, you can omitItems
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
CacheBehaviors.Builder items(Consumer<CacheBehavior.Builder>... items)
Optional: A complex type that contains cache behaviors for this distribution. If
This is a convenience method that creates an instance of theQuantity
is0
, you can omitItems
.CacheBehavior.Builder
avoiding the need to create one manually viaCacheBehavior.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#items(List
.) - Parameters:
items
- a consumer that will call methods onCacheBehavior.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#items(java.util.Collection
)
-
-