public static final class CfnResponseHeadersPolicy.XSSProtectionProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnResponseHeadersPolicy.XSSProtectionProperty
CfnResponseHeadersPolicy.XSSProtectionProperty
CfnResponseHeadersPolicy.XSSProtectionProperty.Builder, CfnResponseHeadersPolicy.XSSProtectionProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getModeBlock()
A Boolean that determines whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header.
|
java.lang.Object |
getOverride()
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.
|
java.lang.Object |
getProtection()
A Boolean that determines the value of the `X-XSS-Protection` HTTP response header.
|
java.lang.String |
getReportUri()
A reporting URI, which CloudFront uses as the value of the `report` directive in the `X-XSS-Protection` header.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Object getOverride()
CfnResponseHeadersPolicy.XSSProtectionProperty
getOverride
in interface CfnResponseHeadersPolicy.XSSProtectionProperty
public final java.lang.Object getProtection()
CfnResponseHeadersPolicy.XSSProtectionProperty
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
.
For more information about these settings, see X-XSS-Protection in the MDN Web Docs.
getProtection
in interface CfnResponseHeadersPolicy.XSSProtectionProperty
public final java.lang.Object getModeBlock()
CfnResponseHeadersPolicy.XSSProtectionProperty
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
getModeBlock
in interface CfnResponseHeadersPolicy.XSSProtectionProperty
public final java.lang.String getReportUri()
CfnResponseHeadersPolicy.XSSProtectionProperty
You cannot specify a ReportUri
when ModeBlock
is true
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
getReportUri
in interface CfnResponseHeadersPolicy.XSSProtectionProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()