Class CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty>
- Enclosing interface:
CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty
@Stability(Stable)
public static final class CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.getOverride()override(IResolvable override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.getOverride()referrerPolicy(String referrerPolicy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.Builder override(Boolean override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.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.- Returns:
this
-
override
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.Builder override(IResolvable override) Sets the value ofCfnResponseHeadersPolicyPropsMixin.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.- Returns:
this
-
referrerPolicy
@Stability(Stable) public CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty.Builder referrerPolicy(String referrerPolicy) - Parameters:
referrerPolicy- The value of theReferrer-PolicyHTTP response header. Valid values are:.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<CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty>- Returns:
- a new instance of
CfnResponseHeadersPolicyPropsMixin.ReferrerPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-