Class CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty>
- Enclosing interface:
CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty>
A builder for
CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.frameOption(String frameOption) Sets the value ofCfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.getFrameOption()Sets the value ofCfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.getOverride()override(IResolvable override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.getOverride()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
frameOption
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.Builder frameOption(String frameOption) Sets the value ofCfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.getFrameOption()- Parameters:
frameOption- The value of theX-Frame-OptionsHTTP response header. Valid values areDENYandSAMEORIGIN. For more information about these values, see X-Frame-Options in the MDN Web Docs.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.Builder override(Boolean override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.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.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty.Builder override(IResolvable override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicyPropsMixin.FrameOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-