@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyContentTypeOptions extends Object implements Serializable, Cloneable
Determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value
set to nosniff.
For more information about the X-Content-Type-Options HTTP response header, see X-Content-Type-Options in
the MDN Web Docs.
| Constructor and Description |
|---|
ResponseHeadersPolicyContentTypeOptions() |
| Modifier and Type | Method and Description |
|---|---|
ResponseHeadersPolicyContentTypeOptions |
clone() |
boolean |
equals(Object obj) |
Boolean |
getOverride()
A Boolean that determines whether CloudFront overrides the
X-Content-Type-Options HTTP response
header received from the origin with the one specified in this response headers policy. |
int |
hashCode() |
Boolean |
isOverride()
A Boolean that determines whether CloudFront overrides the
X-Content-Type-Options HTTP response
header received from the origin with the one specified in this response headers policy. |
void |
setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the
X-Content-Type-Options HTTP response
header received from the origin with the one specified in this response headers policy. |
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyContentTypeOptions |
withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the
X-Content-Type-Options HTTP response
header received from the origin with the one specified in this response headers policy. |
public ResponseHeadersPolicyContentTypeOptions()
public void setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the X-Content-Type-Options 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-Content-Type-Options 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-Content-Type-Options HTTP response
header received from the origin with the one specified in this response headers policy.
X-Content-Type-Options HTTP
response header received from the origin with the one specified in this response headers policy.public ResponseHeadersPolicyContentTypeOptions withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the X-Content-Type-Options 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-Content-Type-Options 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-Content-Type-Options HTTP response
header received from the origin with the one specified in this response headers policy.
X-Content-Type-Options HTTP
response header received from the origin with the one specified in this response headers policy.public String toString()
toString in class ObjectObject.toString()public ResponseHeadersPolicyContentTypeOptions clone()
Copyright © 2025. All rights reserved.