@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyContentSecurityPolicy extends Object implements Serializable, Cloneable
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header.
For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy
in the MDN Web Docs.
| Constructor and Description |
|---|
ResponseHeadersPolicyContentSecurityPolicy() |
| Modifier and Type | Method and Description |
|---|---|
ResponseHeadersPolicyContentSecurityPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getContentSecurityPolicy()
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header. |
Boolean |
getOverride()
A Boolean that determines whether CloudFront overrides the
Content-Security-Policy 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
Content-Security-Policy HTTP response
header received from the origin with the one specified in this response headers policy. |
void |
setContentSecurityPolicy(String contentSecurityPolicy)
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header. |
void |
setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the
Content-Security-Policy 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.
|
ResponseHeadersPolicyContentSecurityPolicy |
withContentSecurityPolicy(String contentSecurityPolicy)
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header. |
ResponseHeadersPolicyContentSecurityPolicy |
withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the
Content-Security-Policy HTTP response
header received from the origin with the one specified in this response headers policy. |
public ResponseHeadersPolicyContentSecurityPolicy()
public void setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the Content-Security-Policy 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 Content-Security-Policy 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 Content-Security-Policy HTTP response
header received from the origin with the one specified in this response headers policy.
Content-Security-Policy HTTP
response header received from the origin with the one specified in this response headers policy.public ResponseHeadersPolicyContentSecurityPolicy withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the Content-Security-Policy 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 Content-Security-Policy 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 Content-Security-Policy HTTP response
header received from the origin with the one specified in this response headers policy.
Content-Security-Policy HTTP
response header received from the origin with the one specified in this response headers policy.public void setContentSecurityPolicy(String contentSecurityPolicy)
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header.
contentSecurityPolicy - The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header.public String getContentSecurityPolicy()
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header.
Content-Security-Policy HTTP response header.public ResponseHeadersPolicyContentSecurityPolicy withContentSecurityPolicy(String contentSecurityPolicy)
The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header.
contentSecurityPolicy - The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy HTTP response header.public String toString()
toString in class ObjectObject.toString()public ResponseHeadersPolicyContentSecurityPolicy clone()