Class ResponseHeadersReferrerPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.ResponseHeadersReferrerPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResponseHeadersReferrerPolicy>
- Enclosing interface:
ResponseHeadersReferrerPolicy
@Stability(Stable)
public static final class ResponseHeadersReferrerPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<ResponseHeadersReferrerPolicy>
A builder for
ResponseHeadersReferrerPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofResponseHeadersReferrerPolicy.getOverride()
referrerPolicy
(HeadersReferrerPolicy referrerPolicy) Sets the value ofResponseHeadersReferrerPolicy.getReferrerPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
override
Sets the value ofResponseHeadersReferrerPolicy.getOverride()
- Parameters:
override
- A Boolean that determines whether CloudFront overrides the Referrer-Policy HTTP 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 ResponseHeadersReferrerPolicy.Builder referrerPolicy(HeadersReferrerPolicy referrerPolicy) Sets the value ofResponseHeadersReferrerPolicy.getReferrerPolicy()
- Parameters:
referrerPolicy
- The value of the Referrer-Policy HTTP response header. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ResponseHeadersReferrerPolicy>
- Returns:
- a new instance of
ResponseHeadersReferrerPolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-