Interface HeaderObject.Builder

    • Method Detail

      • option

        HeaderObject.Builder option​(String option)

        The headers that you want your distribution to forward to your origin and base caching on.

        You can configure your distribution to do one of the following:

        • all - Forward all headers to your origin.

        • none - Forward only the default headers.

        • allow-list - Forward only the headers you specify using the headersAllowList parameter.

        Parameters:
        option - The headers that you want your distribution to forward to your origin and base caching on.

        You can configure your distribution to do one of the following:

        • all - Forward all headers to your origin.

        • none - Forward only the default headers.

        • allow-list - Forward only the headers you specify using the headersAllowList parameter.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ForwardValues, ForwardValues
      • option

        HeaderObject.Builder option​(ForwardValues option)

        The headers that you want your distribution to forward to your origin and base caching on.

        You can configure your distribution to do one of the following:

        • all - Forward all headers to your origin.

        • none - Forward only the default headers.

        • allow-list - Forward only the headers you specify using the headersAllowList parameter.

        Parameters:
        option - The headers that you want your distribution to forward to your origin and base caching on.

        You can configure your distribution to do one of the following:

        • all - Forward all headers to your origin.

        • none - Forward only the default headers.

        • allow-list - Forward only the headers you specify using the headersAllowList parameter.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ForwardValues, ForwardValues
      • headersAllowListWithStrings

        HeaderObject.Builder headersAllowListWithStrings​(Collection<String> headersAllowList)

        The specific headers to forward to your distribution's origin.

        Parameters:
        headersAllowList - The specific headers to forward to your distribution's origin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headersAllowListWithStrings

        HeaderObject.Builder headersAllowListWithStrings​(String... headersAllowList)

        The specific headers to forward to your distribution's origin.

        Parameters:
        headersAllowList - The specific headers to forward to your distribution's origin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headersAllowList

        HeaderObject.Builder headersAllowList​(Collection<HeaderEnum> headersAllowList)

        The specific headers to forward to your distribution's origin.

        Parameters:
        headersAllowList - The specific headers to forward to your distribution's origin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headersAllowList

        HeaderObject.Builder headersAllowList​(HeaderEnum... headersAllowList)

        The specific headers to forward to your distribution's origin.

        Parameters:
        headersAllowList - The specific headers to forward to your distribution's origin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.