Interface HeaderObject.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<HeaderObject.Builder,HeaderObject>,SdkBuilder<HeaderObject.Builder,HeaderObject>,SdkPojo
- Enclosing class:
- HeaderObject
public static interface HeaderObject.Builder extends SdkPojo, CopyableBuilder<HeaderObject.Builder,HeaderObject>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HeaderObject.BuilderheadersAllowList(Collection<HeaderEnum> headersAllowList)The specific headers to forward to your distribution's origin.HeaderObject.BuilderheadersAllowList(HeaderEnum... headersAllowList)The specific headers to forward to your distribution's origin.HeaderObject.BuilderheadersAllowListWithStrings(String... headersAllowList)The specific headers to forward to your distribution's origin.HeaderObject.BuilderheadersAllowListWithStrings(Collection<String> headersAllowList)The specific headers to forward to your distribution's origin.HeaderObject.Builderoption(String option)The headers that you want your distribution to forward to your origin and base caching on.HeaderObject.Builderoption(ForwardValues option)The headers that you want your distribution to forward to your origin and base caching on.-
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, sdkFields
-
-
-
-
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 theheadersAllowListparameter.
- 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 theheadersAllowListparameter.
-
- 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 theheadersAllowListparameter.
- 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 theheadersAllowListparameter.
-
- 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.
-
-