Class CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.ContentTypeOptionsProperty>
- Enclosing interface:
CfnResponseHeadersPolicy.ContentTypeOptionsProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.ContentTypeOptionsProperty>
A builder for
CfnResponseHeadersPolicy.ContentTypeOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResponseHeadersPolicy.ContentTypeOptionsProperty.getOverride()
override
(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.ContentTypeOptionsProperty.getOverride()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
override
@Stability(Stable) public CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder override(Boolean override) Sets the value ofCfnResponseHeadersPolicy.ContentTypeOptionsProperty.getOverride()
- Parameters:
override
- A Boolean that determines whether CloudFront overrides theX-Content-Type-Options
HTTP response header received from the origin with the one specified in this response headers policy. This parameter is required.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicy.ContentTypeOptionsProperty.Builder override(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.ContentTypeOptionsProperty.getOverride()
- Parameters:
override
- A Boolean that determines whether CloudFront overrides theX-Content-Type-Options
HTTP response header received from the origin with the one specified in this response headers policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.ContentTypeOptionsProperty>
- Returns:
- a new instance of
CfnResponseHeadersPolicy.ContentTypeOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-