@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyXSSProtection extends Object implements Serializable, Cloneable
Determines whether CloudFront includes the X-XSS-Protection
HTTP response header and the header’s value.
For more information about the X-XSS-Protection
HTTP response header, see X-XSS-Protection in the MDN Web
Docs.
Constructor and Description |
---|
ResponseHeadersPolicyXSSProtection() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyXSSProtection |
clone() |
boolean |
equals(Object obj) |
Boolean |
getModeBlock()
A Boolean that determines whether CloudFront includes the
mode=block directive in the
X-XSS-Protection header. |
Boolean |
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. |
Boolean |
getProtection()
A Boolean that determines the value of the
X-XSS-Protection HTTP response header. |
String |
getReportUri()
A reporting URI, which CloudFront uses as the value of the
report directive in the
X-XSS-Protection header. |
int |
hashCode() |
Boolean |
isModeBlock()
A Boolean that determines whether CloudFront includes the
mode=block directive in the
X-XSS-Protection header. |
Boolean |
isOverride()
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. |
Boolean |
isProtection()
A Boolean that determines the value of the
X-XSS-Protection HTTP response header. |
void |
setModeBlock(Boolean modeBlock)
A Boolean that determines whether CloudFront includes the
mode=block directive in the
X-XSS-Protection header. |
void |
setOverride(Boolean 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. |
void |
setProtection(Boolean protection)
A Boolean that determines the value of the
X-XSS-Protection HTTP response header. |
void |
setReportUri(String reportUri)
A reporting URI, which CloudFront uses as the value of the
report directive in the
X-XSS-Protection header. |
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyXSSProtection |
withModeBlock(Boolean modeBlock)
A Boolean that determines whether CloudFront includes the
mode=block directive in the
X-XSS-Protection header. |
ResponseHeadersPolicyXSSProtection |
withOverride(Boolean 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. |
ResponseHeadersPolicyXSSProtection |
withProtection(Boolean protection)
A Boolean that determines the value of the
X-XSS-Protection HTTP response header. |
ResponseHeadersPolicyXSSProtection |
withReportUri(String reportUri)
A reporting URI, which CloudFront uses as the value of the
report directive in the
X-XSS-Protection header. |
public void setOverride(Boolean 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.
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.public Boolean 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.
X-XSS-Protection
HTTP response
header received from the origin with the one specified in this response headers policy.public ResponseHeadersPolicyXSSProtection withOverride(Boolean 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.
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.public Boolean isOverride()
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.
X-XSS-Protection
HTTP response
header received from the origin with the one specified in this response headers policy.public void setProtection(Boolean protection)
A Boolean that determines the value of the X-XSS-Protection
HTTP response header. 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.
protection
- A Boolean that determines the value of the X-XSS-Protection
HTTP response header. 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.
public Boolean getProtection()
A Boolean that determines the value of the X-XSS-Protection
HTTP response header. 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.
X-XSS-Protection
HTTP response header. 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.
public ResponseHeadersPolicyXSSProtection withProtection(Boolean protection)
A Boolean that determines the value of the X-XSS-Protection
HTTP response header. 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.
protection
- A Boolean that determines the value of the X-XSS-Protection
HTTP response header. 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.
public Boolean isProtection()
A Boolean that determines the value of the X-XSS-Protection
HTTP response header. 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.
X-XSS-Protection
HTTP response header. 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.
public void setModeBlock(Boolean modeBlock)
A Boolean that determines whether CloudFront includes the mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
modeBlock
- A Boolean that determines whether CloudFront includes the mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
public Boolean getModeBlock()
A Boolean that determines whether CloudFront includes the mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
public ResponseHeadersPolicyXSSProtection withModeBlock(Boolean modeBlock)
A Boolean that determines whether CloudFront includes the mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
modeBlock
- A Boolean that determines whether CloudFront includes the mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
public Boolean isModeBlock()
A Boolean that determines whether CloudFront includes the mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
mode=block
directive in the
X-XSS-Protection
header.
For more information about this directive, see X-XSS-Protection in the MDN Web Docs.
public void setReportUri(String 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
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
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
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
public String getReportUri()
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
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
report
directive in the
X-XSS-Protection
header.
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.
public ResponseHeadersPolicyXSSProtection withReportUri(String 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
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
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
.
For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.
public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyXSSProtection clone()