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

com.pulumi.consul.inputs.ConfigEntryServiceSplitterSplitResponseHeadersArgs Maven / Gradle / Ivy

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConfigEntryServiceSplitterSplitResponseHeadersArgs Empty = new ConfigEntryServiceSplitterSplitResponseHeadersArgs();

    /**
     * Map of one or more key-value pairs. Defines a set of key-value pairs to add to the header. Use header names as the keys. Header names are not case-sensitive. If header values with the same name already exist, the value is appended and Consul applies both headers.
     * 
     */
    @Import(name="add")
    private @Nullable Output> add;

    /**
     * @return Map of one or more key-value pairs. Defines a set of key-value pairs to add to the header. Use header names as the keys. Header names are not case-sensitive. If header values with the same name already exist, the value is appended and Consul applies both headers.
     * 
     */
    public Optional>> add() {
        return Optional.ofNullable(this.add);
    }

    /**
     * Defines an list of headers to remove. Consul removes only headers containing exact matches. Header names are not case-sensitive.
     * 
     */
    @Import(name="removes")
    private @Nullable Output> removes;

    /**
     * @return Defines an list of headers to remove. Consul removes only headers containing exact matches. Header names are not case-sensitive.
     * 
     */
    public Optional>> removes() {
        return Optional.ofNullable(this.removes);
    }

    /**
     * Map of one or more key-value pairs. Defines a set of key-value pairs to add to the request header or to replace existing header values with. Use header names as the keys. Header names are not case-sensitive. If header values with the same names already exist, Consul replaces the header values.
     * 
     */
    @Import(name="set")
    private @Nullable Output> set;

    /**
     * @return Map of one or more key-value pairs. Defines a set of key-value pairs to add to the request header or to replace existing header values with. Use header names as the keys. Header names are not case-sensitive. If header values with the same names already exist, Consul replaces the header values.
     * 
     */
    public Optional>> set() {
        return Optional.ofNullable(this.set);
    }

    private ConfigEntryServiceSplitterSplitResponseHeadersArgs() {}

    private ConfigEntryServiceSplitterSplitResponseHeadersArgs(ConfigEntryServiceSplitterSplitResponseHeadersArgs $) {
        this.add = $.add;
        this.removes = $.removes;
        this.set = $.set;
    }

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

    public static final class Builder {
        private ConfigEntryServiceSplitterSplitResponseHeadersArgs $;

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

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

        /**
         * @param add Map of one or more key-value pairs. Defines a set of key-value pairs to add to the header. Use header names as the keys. Header names are not case-sensitive. If header values with the same name already exist, the value is appended and Consul applies both headers.
         * 
         * @return builder
         * 
         */
        public Builder add(@Nullable Output> add) {
            $.add = add;
            return this;
        }

        /**
         * @param add Map of one or more key-value pairs. Defines a set of key-value pairs to add to the header. Use header names as the keys. Header names are not case-sensitive. If header values with the same name already exist, the value is appended and Consul applies both headers.
         * 
         * @return builder
         * 
         */
        public Builder add(Map add) {
            return add(Output.of(add));
        }

        /**
         * @param removes Defines an list of headers to remove. Consul removes only headers containing exact matches. Header names are not case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder removes(@Nullable Output> removes) {
            $.removes = removes;
            return this;
        }

        /**
         * @param removes Defines an list of headers to remove. Consul removes only headers containing exact matches. Header names are not case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder removes(List removes) {
            return removes(Output.of(removes));
        }

        /**
         * @param removes Defines an list of headers to remove. Consul removes only headers containing exact matches. Header names are not case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder removes(String... removes) {
            return removes(List.of(removes));
        }

        /**
         * @param set Map of one or more key-value pairs. Defines a set of key-value pairs to add to the request header or to replace existing header values with. Use header names as the keys. Header names are not case-sensitive. If header values with the same names already exist, Consul replaces the header values.
         * 
         * @return builder
         * 
         */
        public Builder set(@Nullable Output> set) {
            $.set = set;
            return this;
        }

        /**
         * @param set Map of one or more key-value pairs. Defines a set of key-value pairs to add to the request header or to replace existing header values with. Use header names as the keys. Header names are not case-sensitive. If header values with the same names already exist, Consul replaces the header values.
         * 
         * @return builder
         * 
         */
        public Builder set(Map set) {
            return set(Output.of(set));
        }

        public ConfigEntryServiceSplitterSplitResponseHeadersArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy