Class CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy.ReferrerPolicyProperty>
- Enclosing interface:
CfnResponseHeadersPolicy.ReferrerPolicyProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.ReferrerPolicyProperty>
A builder for
CfnResponseHeadersPolicy.ReferrerPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResponseHeadersPolicy.ReferrerPolicyProperty.getOverride()override(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.ReferrerPolicyProperty.getOverride()referrerPolicy(String referrerPolicy) Sets the value ofCfnResponseHeadersPolicy.ReferrerPolicyProperty.getReferrerPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
override
@Stability(Stable) public CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder override(Boolean override) Sets the value ofCfnResponseHeadersPolicy.ReferrerPolicyProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides theReferrer-PolicyHTTP 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.ReferrerPolicyProperty.Builder override(IResolvable override) Sets the value ofCfnResponseHeadersPolicy.ReferrerPolicyProperty.getOverride()- Parameters:
override- A Boolean that determines whether CloudFront overrides theReferrer-PolicyHTTP response header received from the origin with the one specified in this response headers policy. This parameter is required.- Returns:
this
-
referrerPolicy
@Stability(Stable) public CfnResponseHeadersPolicy.ReferrerPolicyProperty.Builder referrerPolicy(String referrerPolicy) Sets the value ofCfnResponseHeadersPolicy.ReferrerPolicyProperty.getReferrerPolicy()- Parameters:
referrerPolicy- The value of theReferrer-PolicyHTTP response header. Valid values are:. This parameter is required.no-referrerno-referrer-when-downgradeoriginorigin-when-cross-originsame-originstrict-originstrict-origin-when-cross-originunsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy.ReferrerPolicyProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicy.ReferrerPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-