@Stability(value=Stable) public static final class ResponseHeadersXSSProtection.Builder extends Object implements software.amazon.jsii.Builder<ResponseHeadersXSSProtection>
ResponseHeadersXSSProtection| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ResponseHeadersXSSProtection |
build()
Builds the configured instance.
|
ResponseHeadersXSSProtection.Builder |
modeBlock(Boolean modeBlock)
Sets the value of
ResponseHeadersXSSProtection.getModeBlock() |
ResponseHeadersXSSProtection.Builder |
override(Boolean override)
Sets the value of
ResponseHeadersXSSProtection.getOverride() |
ResponseHeadersXSSProtection.Builder |
protection(Boolean protection)
Sets the value of
ResponseHeadersXSSProtection.getProtection() |
ResponseHeadersXSSProtection.Builder |
reportUri(String reportUri)
Sets the value of
ResponseHeadersXSSProtection.getReportUri() |
@Stability(value=Stable) public ResponseHeadersXSSProtection.Builder override(Boolean override)
ResponseHeadersXSSProtection.getOverride()override - A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. This parameter is required.this@Stability(value=Stable) public ResponseHeadersXSSProtection.Builder protection(Boolean protection)
ResponseHeadersXSSProtection.getProtection()protection - A Boolean that determines the value of the X-XSS-Protection HTTP response header. This parameter is required.
When this setting is true, the value of the X-XSS-Protection header is 1.
When this setting is false, the value of the X-XSS-Protection header is 0.this@Stability(value=Stable) public ResponseHeadersXSSProtection.Builder modeBlock(Boolean modeBlock)
ResponseHeadersXSSProtection.getModeBlock()modeBlock - A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.this@Stability(value=Stable) public ResponseHeadersXSSProtection.Builder reportUri(String reportUri)
ResponseHeadersXSSProtection.getReportUri()reportUri - A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.
You cannot specify a ReportUri when ModeBlock is true.this@Stability(value=Stable) public ResponseHeadersXSSProtection build()
build in interface software.amazon.jsii.Builder<ResponseHeadersXSSProtection>ResponseHeadersXSSProtectionNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.