Class CfnResponseHeadersPolicy.CustomHeaderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.CustomHeaderProperty>
- Enclosing interface:
- CfnResponseHeadersPolicy.CustomHeaderProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.CustomHeaderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.CustomHeaderProperty>
A builder for
CfnResponseHeadersPolicy.CustomHeaderProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getHeader()Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getOverride()override(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getOverride()Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
header
@Stability(Stable) public CfnResponseHeadersPolicy.CustomHeaderProperty.Builder header(String header) Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getHeader()- Parameters:
header- The HTTP response header name. This parameter is required.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicy.CustomHeaderProperty.Builder override(Boolean override) Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here. This parameter is required.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicy.CustomHeaderProperty.Builder override(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnResponseHeadersPolicy.CustomHeaderProperty.getValue()- Parameters:
value- The value for the HTTP response header. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.CustomHeaderProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicy.CustomHeaderProperty - Throws:
NullPointerException- if any required attribute was not provided
-