Class CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.CustomHeadersConfigProperty>
- Enclosing interface:
CfnResponseHeadersPolicy.CustomHeadersConfigProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.CustomHeadersConfigProperty>
A builder for
CfnResponseHeadersPolicy.CustomHeadersConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResponseHeadersPolicy.CustomHeadersConfigProperty.getItems()
items
(IResolvable items) Sets the value ofCfnResponseHeadersPolicy.CustomHeadersConfigProperty.getItems()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
items
@Stability(Stable) public CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder items(IResolvable items) Sets the value ofCfnResponseHeadersPolicy.CustomHeadersConfigProperty.getItems()
- Parameters:
items
- The list of HTTP response headers and their values. This parameter is required.- Returns:
this
-
items
@Stability(Stable) public CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder items(List<? extends Object> items) Sets the value ofCfnResponseHeadersPolicy.CustomHeadersConfigProperty.getItems()
- Parameters:
items
- The list of HTTP response headers and their values. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.CustomHeadersConfigProperty>
- Returns:
- a new instance of
CfnResponseHeadersPolicy.CustomHeadersConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-