Class ResponseHeadersFrameOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.ResponseHeadersFrameOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResponseHeadersFrameOptions>
- Enclosing interface:
- ResponseHeadersFrameOptions
@Stability(Stable)
public static final class ResponseHeadersFrameOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ResponseHeadersFrameOptions>
A builder for
ResponseHeadersFrameOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.frameOption(HeadersFrameOption frameOption) Sets the value ofResponseHeadersFrameOptions.getFrameOption()Sets the value ofResponseHeadersFrameOptions.getOverride()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
frameOption
@Stability(Stable) public ResponseHeadersFrameOptions.Builder frameOption(HeadersFrameOption frameOption) Sets the value ofResponseHeadersFrameOptions.getFrameOption()- Parameters:
frameOption- The value of the X-Frame-Options HTTP response header. This parameter is required.- Returns:
this
-
override
Sets the value ofResponseHeadersFrameOptions.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides the X-Frame-Options HTTP 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<ResponseHeadersFrameOptions>- Returns:
- a new instance of
ResponseHeadersFrameOptions - Throws:
NullPointerException- if any required attribute was not provided
-