public static interface CustomHeaders.Builder extends CopyableBuilder<CustomHeaders.Builder,CustomHeaders>
Modifier and Type | Method and Description |
---|---|
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. |
CustomHeaders.Builder |
items(Consumer<OriginCustomHeader.Builder>... items)
Optional: A list that contains one
OriginCustomHeader element for each custom header that
you want CloudFront to forward to the origin. |
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. |
CustomHeaders.Builder |
quantity(Integer quantity)
The number of custom headers, if any, for this distribution.
|
copy
applyMutation, build
CustomHeaders.Builder quantity(Integer quantity)
The number of custom headers, if any, for this distribution.
quantity
- The number of custom headers, if any, for this distribution.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 is 0
, omit Items
.
items
- Optional: A list that contains one OriginCustomHeader
element for each custom
header that you want CloudFront to forward to the origin. If Quantity is 0
, omit
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 is 0
, omit Items
.
items
- Optional: A list that contains one OriginCustomHeader
element for each custom
header that you want CloudFront to forward to the origin. If Quantity is 0
, omit
Items
.CustomHeaders.Builder items(Consumer<OriginCustomHeader.Builder>... items)
Optional: A list that contains one OriginCustomHeader
element for each custom header that
you want CloudFront to forward to the origin. If Quantity is 0
, omit Items
.
List.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #items(List)
.items
- a consumer that will call methods on List.Builder
#items(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.