public static final class ResponseHeadersFrameOptions.Builder
extends java.lang.Object
ResponseHeadersFrameOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersFrameOptions |
build()
Builds the configured instance.
|
ResponseHeadersFrameOptions.Builder |
frameOption(HeadersFrameOption frameOption)
Sets the value of
ResponseHeadersFrameOptions.getFrameOption() |
ResponseHeadersFrameOptions.Builder |
override(java.lang.Boolean override)
Sets the value of
ResponseHeadersFrameOptions.getOverride() |
public ResponseHeadersFrameOptions.Builder frameOption(HeadersFrameOption frameOption)
ResponseHeadersFrameOptions.getFrameOption()
frameOption
- The value of the X-Frame-Options HTTP response header. This parameter is required.this
public ResponseHeadersFrameOptions.Builder override(java.lang.Boolean override)
ResponseHeadersFrameOptions.getOverride()
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.this
public ResponseHeadersFrameOptions build()
ResponseHeadersFrameOptions
java.lang.NullPointerException
- if any required attribute was not provided