Interface CustomHeaders.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomHeaders.Builder,CustomHeaders>
,SdkBuilder<CustomHeaders.Builder,CustomHeaders>
,SdkPojo
- Enclosing class:
- CustomHeaders
public static interface CustomHeaders.Builder extends SdkPojo, CopyableBuilder<CustomHeaders.Builder,CustomHeaders>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomHeaders.Builder
items(Collection<OriginCustomHeader> items)
Optional: A list that contains oneOriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin.CustomHeaders.Builder
items(Consumer<OriginCustomHeader.Builder>... items)
Optional: A list that contains oneOriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin.CustomHeaders.Builder
items(OriginCustomHeader... items)
Optional: A list that contains oneOriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin.CustomHeaders.Builder
quantity(Integer quantity)
The number of custom headers, if any, 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
CustomHeaders.Builder quantity(Integer quantity)
The number of custom headers, if any, for this distribution.
- Parameters:
quantity
- The number of custom headers, if any, for this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
CustomHeaders.Builder items(Collection<OriginCustomHeader> items)
Optional: A list that contains one
OriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin. If Quantity is0
, omitItems
.- Parameters:
items
- Optional: A list that contains oneOriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin. If Quantity is0
, omitItems
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
CustomHeaders.Builder items(OriginCustomHeader... items)
Optional: A list that contains one
OriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin. If Quantity is0
, omitItems
.- Parameters:
items
- Optional: A list that contains oneOriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin. If Quantity is0
, omitItems
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
CustomHeaders.Builder items(Consumer<OriginCustomHeader.Builder>... items)
Optional: A list that contains one
This is a convenience method that creates an instance of theOriginCustomHeader
element for each custom header that you want CloudFront to forward to the origin. If Quantity is0
, omitItems
.OriginCustomHeader.Builder
avoiding the need to create one manually viaOriginCustomHeader.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 onOriginCustomHeader.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#items(java.util.Collection
)
-
-