public static final class ResponseHeadersContentSecurityPolicy.Builder
extends java.lang.Object
ResponseHeadersContentSecurityPolicy
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersContentSecurityPolicy |
build()
Builds the configured instance.
|
ResponseHeadersContentSecurityPolicy.Builder |
contentSecurityPolicy(java.lang.String contentSecurityPolicy)
Sets the value of
ResponseHeadersContentSecurityPolicy.getContentSecurityPolicy() |
ResponseHeadersContentSecurityPolicy.Builder |
override(java.lang.Boolean override)
Sets the value of
ResponseHeadersContentSecurityPolicy.getOverride() |
public ResponseHeadersContentSecurityPolicy.Builder contentSecurityPolicy(java.lang.String contentSecurityPolicy)
ResponseHeadersContentSecurityPolicy.getContentSecurityPolicy()
contentSecurityPolicy
- The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. This parameter is required.this
public ResponseHeadersContentSecurityPolicy.Builder override(java.lang.Boolean override)
ResponseHeadersContentSecurityPolicy.getOverride()
override
- A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy. This parameter is required.this
public ResponseHeadersContentSecurityPolicy build()
ResponseHeadersContentSecurityPolicy
java.lang.NullPointerException
- if any required attribute was not provided