public static final class ResponseHeadersStrictTransportSecurity.Builder
extends java.lang.Object
ResponseHeadersStrictTransportSecurity
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersStrictTransportSecurity.Builder |
accessControlMaxAge(Duration accessControlMaxAge)
Sets the value of
ResponseHeadersStrictTransportSecurity.getAccessControlMaxAge() |
ResponseHeadersStrictTransportSecurity |
build()
Builds the configured instance.
|
ResponseHeadersStrictTransportSecurity.Builder |
includeSubdomains(java.lang.Boolean includeSubdomains)
Sets the value of
ResponseHeadersStrictTransportSecurity.getIncludeSubdomains() |
ResponseHeadersStrictTransportSecurity.Builder |
override(java.lang.Boolean override)
Sets the value of
ResponseHeadersStrictTransportSecurity.getOverride() |
ResponseHeadersStrictTransportSecurity.Builder |
preload(java.lang.Boolean preload)
Sets the value of
ResponseHeadersStrictTransportSecurity.getPreload() |
public ResponseHeadersStrictTransportSecurity.Builder accessControlMaxAge(Duration accessControlMaxAge)
ResponseHeadersStrictTransportSecurity.getAccessControlMaxAge()
accessControlMaxAge
- A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header. This parameter is required.this
public ResponseHeadersStrictTransportSecurity.Builder override(java.lang.Boolean override)
ResponseHeadersStrictTransportSecurity.getOverride()
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. This parameter is required.this
public ResponseHeadersStrictTransportSecurity.Builder includeSubdomains(java.lang.Boolean includeSubdomains)
ResponseHeadersStrictTransportSecurity.getIncludeSubdomains()
includeSubdomains
- A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.this
public ResponseHeadersStrictTransportSecurity.Builder preload(java.lang.Boolean preload)
ResponseHeadersStrictTransportSecurity.getPreload()
preload
- A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.this
public ResponseHeadersStrictTransportSecurity build()
ResponseHeadersStrictTransportSecurity
java.lang.NullPointerException
- if any required attribute was not provided