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
Modifier and TypeMethodDescriptionitems(Collection<OriginCustomHeader> items) Optional: A list that contains oneOriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin.items(Consumer<OriginCustomHeader.Builder>... items) Optional: A list that contains oneOriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin.items(OriginCustomHeader... items) Optional: A list that contains oneOriginCustomHeaderelement for each custom header that you want CloudFront to forward to the origin.The number of custom headers, if any, for this distribution.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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 toitems(List<OriginCustomHeader>).- 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:
-