Interface CustomHeaders.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CustomHeaders.Builder,CustomHeaders>,SdkBuilder<CustomHeaders.Builder,CustomHeaders>,SdkPojo
- Enclosing class:
- CustomHeaders
@Mutable @NotThreadSafe 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.Builderitems(Collection<OriginCustomHeader> items)Optional: A list that contains oneOriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin.CustomHeaders.Builderitems(Consumer<OriginCustomHeader.Builder>... items)Optional: A list that contains oneOriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin.CustomHeaders.Builderitems(OriginCustomHeader... items)Optional: A list that contains oneOriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin.CustomHeaders.Builderquantity(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, sdkFieldNameToField, 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
OriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin. If Quantity is0, omitItems.- Parameters:
items- Optional: A list that contains oneOriginCustomHeaderelement 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
OriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin. If Quantity is0, omitItems.- Parameters:
items- Optional: A list that contains oneOriginCustomHeaderelement 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 theOriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin. If Quantity is0, omitItems.OriginCustomHeader.Builderavoiding the need to create one manually viaOriginCustomHeader.builder().When the
Consumercompletes,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)
-
-