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

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

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
Show 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.String;
import java.util.Objects;


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

    public static final ContinuousDeploymentPolicyTrafficConfigSingleHeaderConfigArgs Empty = new ContinuousDeploymentPolicyTrafficConfigSingleHeaderConfigArgs();

    /**
     * Request header name to send to the staging distribution. The header must contain the prefix `aws-cf-cd-`.
     * 
     */
    @Import(name="header", required=true)
    private Output header;

    /**
     * @return Request header name to send to the staging distribution. The header must contain the prefix `aws-cf-cd-`.
     * 
     */
    public Output header() {
        return this.header;
    }

    /**
     * Request header value.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return Request header value.
     * 
     */
    public Output value() {
        return this.value;
    }

    private ContinuousDeploymentPolicyTrafficConfigSingleHeaderConfigArgs() {}

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

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

    public static final class Builder {
        private ContinuousDeploymentPolicyTrafficConfigSingleHeaderConfigArgs $;

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

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

        /**
         * @param header Request header name to send to the staging distribution. The header must contain the prefix `aws-cf-cd-`.
         * 
         * @return builder
         * 
         */
        public Builder header(Output header) {
            $.header = header;
            return this;
        }

        /**
         * @param header Request header name to send to the staging distribution. The header must contain the prefix `aws-cf-cd-`.
         * 
         * @return builder
         * 
         */
        public Builder header(String header) {
            return header(Output.of(header));
        }

        /**
         * @param value Request header value.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Request header value.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy