@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyStrictTransportSecurity extends Object implements Serializable, Cloneable
Determines whether CloudFront includes the Strict-Transport-Security
HTTP response header and the
header's value.
For more information about the Strict-Transport-Security
HTTP response header, see Strict-Transport-Security in the MDN Web Docs.
Constructor and Description |
---|
ResponseHeadersPolicyStrictTransportSecurity() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyStrictTransportSecurity |
clone() |
boolean |
equals(Object obj) |
Integer |
getAccessControlMaxAgeSec()
A number that CloudFront uses as the value for the
max-age directive in the
Strict-Transport-Security HTTP response header. |
Boolean |
getIncludeSubdomains()
A Boolean that determines whether CloudFront includes the
includeSubDomains directive in the
Strict-Transport-Security HTTP response header. |
Boolean |
getOverride()
A Boolean that determines whether CloudFront overrides the
Strict-Transport-Security HTTP response
header received from the origin with the one specified in this response headers policy. |
Boolean |
getPreload()
A Boolean that determines whether CloudFront includes the
preload directive in the
Strict-Transport-Security HTTP response header. |
int |
hashCode() |
Boolean |
isIncludeSubdomains()
A Boolean that determines whether CloudFront includes the
includeSubDomains directive in the
Strict-Transport-Security HTTP response header. |
Boolean |
isOverride()
A Boolean that determines whether CloudFront overrides the
Strict-Transport-Security HTTP response
header received from the origin with the one specified in this response headers policy. |
Boolean |
isPreload()
A Boolean that determines whether CloudFront includes the
preload directive in the
Strict-Transport-Security HTTP response header. |
void |
setAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the
max-age directive in the
Strict-Transport-Security HTTP response header. |
void |
setIncludeSubdomains(Boolean includeSubdomains)
A Boolean that determines whether CloudFront includes the
includeSubDomains directive in the
Strict-Transport-Security HTTP response header. |
void |
setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the
Strict-Transport-Security HTTP response
header received from the origin with the one specified in this response headers policy. |
void |
setPreload(Boolean preload)
A Boolean that determines whether CloudFront includes the
preload directive in the
Strict-Transport-Security HTTP response header. |
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyStrictTransportSecurity |
withAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the
max-age directive in the
Strict-Transport-Security HTTP response header. |
ResponseHeadersPolicyStrictTransportSecurity |
withIncludeSubdomains(Boolean includeSubdomains)
A Boolean that determines whether CloudFront includes the
includeSubDomains directive in the
Strict-Transport-Security HTTP response header. |
ResponseHeadersPolicyStrictTransportSecurity |
withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the
Strict-Transport-Security HTTP response
header received from the origin with the one specified in this response headers policy. |
ResponseHeadersPolicyStrictTransportSecurity |
withPreload(Boolean preload)
A Boolean that determines whether CloudFront includes the
preload directive in the
Strict-Transport-Security HTTP response header. |
public ResponseHeadersPolicyStrictTransportSecurity()
public void setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the Strict-Transport-Security
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 Strict-Transport-Security
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 Strict-Transport-Security
HTTP response
header received from the origin with the one specified in this response headers policy.
Strict-Transport-Security
HTTP
response header received from the origin with the one specified in this response headers policy.public ResponseHeadersPolicyStrictTransportSecurity withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides the Strict-Transport-Security
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 Strict-Transport-Security
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 Strict-Transport-Security
HTTP response
header received from the origin with the one specified in this response headers policy.
Strict-Transport-Security
HTTP
response header received from the origin with the one specified in this response headers policy.public void setIncludeSubdomains(Boolean includeSubdomains)
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.
includeSubdomains
- A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.public Boolean getIncludeSubdomains()
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.
includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.public ResponseHeadersPolicyStrictTransportSecurity withIncludeSubdomains(Boolean includeSubdomains)
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.
includeSubdomains
- A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.public Boolean isIncludeSubdomains()
A Boolean that determines whether CloudFront includes the includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.
includeSubDomains
directive in the
Strict-Transport-Security
HTTP response header.public void setPreload(Boolean preload)
A Boolean that determines whether CloudFront includes the preload
directive in the
Strict-Transport-Security
HTTP response header.
preload
- A Boolean that determines whether CloudFront includes the preload
directive in the
Strict-Transport-Security
HTTP response header.public Boolean getPreload()
A Boolean that determines whether CloudFront includes the preload
directive in the
Strict-Transport-Security
HTTP response header.
preload
directive in the
Strict-Transport-Security
HTTP response header.public ResponseHeadersPolicyStrictTransportSecurity withPreload(Boolean preload)
A Boolean that determines whether CloudFront includes the preload
directive in the
Strict-Transport-Security
HTTP response header.
preload
- A Boolean that determines whether CloudFront includes the preload
directive in the
Strict-Transport-Security
HTTP response header.public Boolean isPreload()
A Boolean that determines whether CloudFront includes the preload
directive in the
Strict-Transport-Security
HTTP response header.
preload
directive in the
Strict-Transport-Security
HTTP response header.public void setAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the max-age
directive in the
Strict-Transport-Security
HTTP response header.
accessControlMaxAgeSec
- A number that CloudFront uses as the value for the max-age
directive in the
Strict-Transport-Security
HTTP response header.public Integer getAccessControlMaxAgeSec()
A number that CloudFront uses as the value for the max-age
directive in the
Strict-Transport-Security
HTTP response header.
max-age
directive in the
Strict-Transport-Security
HTTP response header.public ResponseHeadersPolicyStrictTransportSecurity withAccessControlMaxAgeSec(Integer accessControlMaxAgeSec)
A number that CloudFront uses as the value for the max-age
directive in the
Strict-Transport-Security
HTTP response header.
accessControlMaxAgeSec
- A number that CloudFront uses as the value for the max-age
directive in the
Strict-Transport-Security
HTTP response header.public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyStrictTransportSecurity clone()