// *** 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.gcp.networkservices.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.networkservices.inputs.EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EdgeCacheOriginOriginOverrideActionHeaderActionArgs Empty = new EdgeCacheOriginOriginOverrideActionHeaderActionArgs();

    /**
     * Describes a header to add.
     * You may add a maximum of 25 request headers.
     * Structure is documented below.
     * 
     */
    @Import(name="requestHeadersToAdds")
    private @Nullable Output<List<EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs>> requestHeadersToAdds;

    /**
     * @return Describes a header to add.
     * You may add a maximum of 25 request headers.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs>>> requestHeadersToAdds() {
        return Optional.ofNullable(this.requestHeadersToAdds);
    }

    private EdgeCacheOriginOriginOverrideActionHeaderActionArgs() {}

    private EdgeCacheOriginOriginOverrideActionHeaderActionArgs(EdgeCacheOriginOriginOverrideActionHeaderActionArgs $) {
        this.requestHeadersToAdds = $.requestHeadersToAdds;
    }

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

    public static final class Builder {
        private EdgeCacheOriginOriginOverrideActionHeaderActionArgs $;

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

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

        /**
         * @param requestHeadersToAdds Describes a header to add.
         * You may add a maximum of 25 request headers.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder requestHeadersToAdds(@Nullable Output<List<EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs>> requestHeadersToAdds) {
            $.requestHeadersToAdds = requestHeadersToAdds;
            return this;
        }

        /**
         * @param requestHeadersToAdds Describes a header to add.
         * You may add a maximum of 25 request headers.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder requestHeadersToAdds(List<EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs> requestHeadersToAdds) {
            return requestHeadersToAdds(Output.of(requestHeadersToAdds));
        }

        /**
         * @param requestHeadersToAdds Describes a header to add.
         * You may add a maximum of 25 request headers.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder requestHeadersToAdds(EdgeCacheOriginOriginOverrideActionHeaderActionRequestHeadersToAddArgs... requestHeadersToAdds) {
            return requestHeadersToAdds(List.of(requestHeadersToAdds));
        }

        public EdgeCacheOriginOriginOverrideActionHeaderActionArgs build() {
            return $;
        }
    }

}
