Class CfnDistribution.HeaderObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDistribution.HeaderObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.HeaderObjectProperty>
- Enclosing interface:
CfnDistribution.HeaderObjectProperty
@Stability(Stable)
public static final class CfnDistribution.HeaderObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.HeaderObjectProperty>
A builder for
CfnDistribution.HeaderObjectProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.headersAllowList
(List<String> headersAllowList) Sets the value ofCfnDistribution.HeaderObjectProperty.getHeadersAllowList()
Sets the value ofCfnDistribution.HeaderObjectProperty.getOption()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headersAllowList
@Stability(Stable) public CfnDistribution.HeaderObjectProperty.Builder headersAllowList(List<String> headersAllowList) Sets the value ofCfnDistribution.HeaderObjectProperty.getHeadersAllowList()
- Parameters:
headersAllowList
- The specific headers to forward to your distribution's origin.- Returns:
this
-
option
Sets the value ofCfnDistribution.HeaderObjectProperty.getOption()
- Parameters:
option
- The headers that you want your distribution to forward to your origin. Your distribution caches your content based on these headers.Use one of the following configurations for your distribution:
all
- Forwards all headers to your origin..none
- Forwards only the default headers.allow-list
- Forwards only the headers that you specify using theHeadersAllowList
parameter.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.HeaderObjectProperty>
- Returns:
- a new instance of
CfnDistribution.HeaderObjectProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-