// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.cloudfront.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;


public final class ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs Empty = new ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs();

    /**
     * The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
     * 
     */
    @Import(name="contentSecurityPolicy", required=true)
    private Output<String> contentSecurityPolicy;

    /**
     * @return The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
     * 
     */
    public Output<String> contentSecurityPolicy() {
        return this.contentSecurityPolicy;
    }

    /**
     * Whether CloudFront overrides the `Content-Security-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
     * 
     */
    @Import(name="override", required=true)
    private Output<Boolean> override;

    /**
     * @return Whether CloudFront overrides the `Content-Security-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
     * 
     */
    public Output<Boolean> override() {
        return this.override;
    }

    private ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs() {}

    private ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs(ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs $) {
        this.contentSecurityPolicy = $.contentSecurityPolicy;
        this.override = $.override;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs $;

        public Builder() {
            $ = new ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs();
        }

        public Builder(ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs defaults) {
            $ = new ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param contentSecurityPolicy The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder contentSecurityPolicy(Output<String> contentSecurityPolicy) {
            $.contentSecurityPolicy = contentSecurityPolicy;
            return this;
        }

        /**
         * @param contentSecurityPolicy The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder contentSecurityPolicy(String contentSecurityPolicy) {
            return contentSecurityPolicy(Output.of(contentSecurityPolicy));
        }

        /**
         * @param override Whether CloudFront overrides the `Content-Security-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder override(Output<Boolean> override) {
            $.override = override;
            return this;
        }

        /**
         * @param override Whether CloudFront overrides the `Content-Security-Policy` HTTP response header received from the origin with the one specified in this response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder override(Boolean override) {
            return override(Output.of(override));
        }

        public ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicyArgs build() {
            $.contentSecurityPolicy = Objects.requireNonNull($.contentSecurityPolicy, "expected parameter 'contentSecurityPolicy' to be non-null");
            $.override = Objects.requireNonNull($.override, "expected parameter 'override' to be non-null");
            return $;
        }
    }

}
