All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.cloudfront.inputs.ResponseHeadersPolicyCustomHeadersConfigItemArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;


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

    public static final ResponseHeadersPolicyCustomHeadersConfigItemArgs Empty = new ResponseHeadersPolicyCustomHeadersConfigItemArgs();

    @Import(name="header", required=true)
    private Output header;

    public Output header() {
        return this.header;
    }

    @Import(name="override", required=true)
    private Output override;

    public Output override() {
        return this.override;
    }

    /**
     * The value for the HTTP response header.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return The value for the HTTP response header.
     * 
     */
    public Output value() {
        return this.value;
    }

    private ResponseHeadersPolicyCustomHeadersConfigItemArgs() {}

    private ResponseHeadersPolicyCustomHeadersConfigItemArgs(ResponseHeadersPolicyCustomHeadersConfigItemArgs $) {
        this.header = $.header;
        this.override = $.override;
        this.value = $.value;
    }

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

    public static final class Builder {
        private ResponseHeadersPolicyCustomHeadersConfigItemArgs $;

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

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

        public Builder header(Output header) {
            $.header = header;
            return this;
        }

        public Builder header(String header) {
            return header(Output.of(header));
        }

        public Builder override(Output override) {
            $.override = override;
            return this;
        }

        public Builder override(Boolean override) {
            return override(Output.of(override));
        }

        /**
         * @param value The value for the HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value for the HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public ResponseHeadersPolicyCustomHeadersConfigItemArgs build() {
            if ($.header == null) {
                throw new MissingRequiredPropertyException("ResponseHeadersPolicyCustomHeadersConfigItemArgs", "header");
            }
            if ($.override == null) {
                throw new MissingRequiredPropertyException("ResponseHeadersPolicyCustomHeadersConfigItemArgs", "override");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("ResponseHeadersPolicyCustomHeadersConfigItemArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy