Class CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty>
- Enclosing interface:
CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessControlMaxAgeSec(Number accessControlMaxAgeSec) build()Builds the configured instance.includeSubdomains(Boolean includeSubdomains) includeSubdomains(IResolvable includeSubdomains) override(IResolvable override) preload(IResolvable preload)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessControlMaxAgeSec
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder accessControlMaxAgeSec(Number accessControlMaxAgeSec) Sets the value ofCfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.getAccessControlMaxAgeSec()- Parameters:
accessControlMaxAgeSec- A number that CloudFront uses as the value for themax-agedirective in theStrict-Transport-SecurityHTTP response header.- Returns:
this
-
includeSubdomains
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder includeSubdomains(Boolean includeSubdomains) Sets the value ofCfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.getIncludeSubdomains()- Parameters:
includeSubdomains- A Boolean that determines whether CloudFront includes theincludeSubDomainsdirective in theStrict-Transport-SecurityHTTP response header.- Returns:
this
-
includeSubdomains
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder includeSubdomains(IResolvable includeSubdomains) Sets the value ofCfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.getIncludeSubdomains()- Parameters:
includeSubdomains- A Boolean that determines whether CloudFront includes theincludeSubDomainsdirective in theStrict-Transport-SecurityHTTP response header.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder override(Boolean override) - Parameters:
override- A Boolean that determines whether CloudFront overrides theStrict-Transport-SecurityHTTP response header received from the origin with the one specified in this response headers policy.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder override(IResolvable override) - Parameters:
override- A Boolean that determines whether CloudFront overrides theStrict-Transport-SecurityHTTP response header received from the origin with the one specified in this response headers policy.- Returns:
this
-
preload
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder preload(Boolean preload) - Parameters:
preload- A Boolean that determines whether CloudFront includes thepreloaddirective in theStrict-Transport-SecurityHTTP response header.- Returns:
this
-
preload
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty.Builder preload(IResolvable preload) - Parameters:
preload- A Boolean that determines whether CloudFront includes thepreloaddirective in theStrict-Transport-SecurityHTTP response header.- Returns:
this
-
build
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicyPropsMixin.StrictTransportSecurityProperty - Throws:
NullPointerException- if any required attribute was not provided
-