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 Details

    • 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

      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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      This is a convenience method that creates an instance of the OriginCustomHeader.Builder avoiding the need to create one manually via OriginCustomHeader.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to items(List<OriginCustomHeader>).

      Parameters:
      items - a consumer that will call methods on OriginCustomHeader.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: