Interface ResponseHeadersPolicyStrictTransportSecurity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseHeadersPolicyStrictTransportSecurity.Builder,
,ResponseHeadersPolicyStrictTransportSecurity> SdkBuilder<ResponseHeadersPolicyStrictTransportSecurity.Builder,
,ResponseHeadersPolicyStrictTransportSecurity> SdkPojo
- Enclosing class:
ResponseHeadersPolicyStrictTransportSecurity
public static interface ResponseHeadersPolicyStrictTransportSecurity.Builder
extends SdkPojo, CopyableBuilder<ResponseHeadersPolicyStrictTransportSecurity.Builder,ResponseHeadersPolicyStrictTransportSecurity>
-
Method Summary
Modifier and TypeMethodDescriptionaccessControlMaxAgeSec
(Integer accessControlMaxAgeSec) A number that CloudFront uses as the value for themax-age
directive in theStrict-Transport-Security
HTTP response header.includeSubdomains
(Boolean includeSubdomains) A Boolean that determines whether CloudFront includes theincludeSubDomains
directive in theStrict-Transport-Security
HTTP response header.A Boolean that determines whether CloudFront overrides theStrict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy.A Boolean that determines whether CloudFront includes thepreload
directive in theStrict-Transport-Security
HTTP response header.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.- Parameters:
override
- A Boolean that determines whether CloudFront overrides theStrict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeSubdomains
A Boolean that determines whether CloudFront includes the
includeSubDomains
directive in theStrict-Transport-Security
HTTP response header.- Parameters:
includeSubdomains
- A Boolean that determines whether CloudFront includes theincludeSubDomains
directive in theStrict-Transport-Security
HTTP response header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preload
A Boolean that determines whether CloudFront includes the
preload
directive in theStrict-Transport-Security
HTTP response header.- Parameters:
preload
- A Boolean that determines whether CloudFront includes thepreload
directive in theStrict-Transport-Security
HTTP response header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlMaxAgeSec
ResponseHeadersPolicyStrictTransportSecurity.Builder accessControlMaxAgeSec(Integer accessControlMaxAgeSec) A number that CloudFront uses as the value for the
max-age
directive in theStrict-Transport-Security
HTTP response header.- Parameters:
accessControlMaxAgeSec
- A number that CloudFront uses as the value for themax-age
directive in theStrict-Transport-Security
HTTP response header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-