Class CfnResponseHeadersPolicy.FrameOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.FrameOptionsProperty>
- Enclosing interface:
- CfnResponseHeadersPolicy.FrameOptionsProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.FrameOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.FrameOptionsProperty>
A builder for
CfnResponseHeadersPolicy.FrameOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.frameOption(String frameOption) Sets the value ofCfnResponseHeadersPolicy.FrameOptionsProperty.getFrameOption()Sets the value ofCfnResponseHeadersPolicy.FrameOptionsProperty.getOverride()override(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.FrameOptionsProperty.getOverride()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
frameOption
@Stability(Stable) public CfnResponseHeadersPolicy.FrameOptionsProperty.Builder frameOption(String frameOption) Sets the value ofCfnResponseHeadersPolicy.FrameOptionsProperty.getFrameOption()- Parameters:
frameOption- The value of theX-Frame-OptionsHTTP response header. Valid values areDENYandSAMEORIGIN. This parameter is required. For more information about these values, see X-Frame-Options in the MDN Web Docs.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicy.FrameOptionsProperty.Builder override(Boolean override) Sets the value ofCfnResponseHeadersPolicy.FrameOptionsProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides theX-Frame-OptionsHTTP response header received from the origin with the one specified in this response headers policy. This parameter is required.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicy.FrameOptionsProperty.Builder override(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.FrameOptionsProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides theX-Frame-OptionsHTTP response header received from the origin with the one specified in this response headers policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.FrameOptionsProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicy.FrameOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-