Class ResponseHeadersContentTypeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.ResponseHeadersContentTypeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResponseHeadersContentTypeOptions>
- Enclosing interface:
ResponseHeadersContentTypeOptions
@Stability(Stable)
public static final class ResponseHeadersContentTypeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ResponseHeadersContentTypeOptions>
A builder for
ResponseHeadersContentTypeOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofResponseHeadersContentTypeOptions.getOverride()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
override
Sets the value ofResponseHeadersContentTypeOptions.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides the X-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:
buildin interfacesoftware.amazon.jsii.Builder<ResponseHeadersContentTypeOptions>- Returns:
- a new instance of
ResponseHeadersContentTypeOptions - Throws:
NullPointerException- if any required attribute was not provided
-