Interface CustomHeaders.Builder

    • 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 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

        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.

        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.