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

com.pulumi.consul.ConfigEntryServiceSplitterArgs Maven / Gradle / Ivy

There is a newer version: 3.13.0-alpha.1732771629
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.consul;

import com.pulumi.consul.inputs.ConfigEntryServiceSplitterSplitArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 ConfigEntryServiceSplitterArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigEntryServiceSplitterArgs Empty = new ConfigEntryServiceSplitterArgs();

    /**
     * Specifies key-value pairs to add to the KV store.
     * 
     */
    @Import(name="meta")
    private @Nullable Output> meta;

    /**
     * @return Specifies key-value pairs to add to the KV store.
     * 
     */
    public Optional>> meta() {
        return Optional.ofNullable(this.meta);
    }

    /**
     * Specifies a name for the configuration entry.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies a name for the configuration entry.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies the namespace to apply the configuration entry.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return Specifies the namespace to apply the configuration entry.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    /**
     * Specifies the admin partition to apply the configuration entry.
     * 
     */
    @Import(name="partition")
    private @Nullable Output partition;

    /**
     * @return Specifies the admin partition to apply the configuration entry.
     * 
     */
    public Optional> partition() {
        return Optional.ofNullable(this.partition);
    }

    /**
     * Defines how much traffic to send to sets of service instances during a traffic split.
     * 
     */
    @Import(name="splits", required=true)
    private Output> splits;

    /**
     * @return Defines how much traffic to send to sets of service instances during a traffic split.
     * 
     */
    public Output> splits() {
        return this.splits;
    }

    private ConfigEntryServiceSplitterArgs() {}

    private ConfigEntryServiceSplitterArgs(ConfigEntryServiceSplitterArgs $) {
        this.meta = $.meta;
        this.name = $.name;
        this.namespace = $.namespace;
        this.partition = $.partition;
        this.splits = $.splits;
    }

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

    public static final class Builder {
        private ConfigEntryServiceSplitterArgs $;

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

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

        /**
         * @param meta Specifies key-value pairs to add to the KV store.
         * 
         * @return builder
         * 
         */
        public Builder meta(@Nullable Output> meta) {
            $.meta = meta;
            return this;
        }

        /**
         * @param meta Specifies key-value pairs to add to the KV store.
         * 
         * @return builder
         * 
         */
        public Builder meta(Map meta) {
            return meta(Output.of(meta));
        }

        /**
         * @param name Specifies a name for the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies a name for the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespace Specifies the namespace to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace Specifies the namespace to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param partition Specifies the admin partition to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder partition(@Nullable Output partition) {
            $.partition = partition;
            return this;
        }

        /**
         * @param partition Specifies the admin partition to apply the configuration entry.
         * 
         * @return builder
         * 
         */
        public Builder partition(String partition) {
            return partition(Output.of(partition));
        }

        /**
         * @param splits Defines how much traffic to send to sets of service instances during a traffic split.
         * 
         * @return builder
         * 
         */
        public Builder splits(Output> splits) {
            $.splits = splits;
            return this;
        }

        /**
         * @param splits Defines how much traffic to send to sets of service instances during a traffic split.
         * 
         * @return builder
         * 
         */
        public Builder splits(List splits) {
            return splits(Output.of(splits));
        }

        /**
         * @param splits Defines how much traffic to send to sets of service instances during a traffic split.
         * 
         * @return builder
         * 
         */
        public Builder splits(ConfigEntryServiceSplitterSplitArgs... splits) {
            return splits(List.of(splits));
        }

        public ConfigEntryServiceSplitterArgs build() {
            if ($.splits == null) {
                throw new MissingRequiredPropertyException("ConfigEntryServiceSplitterArgs", "splits");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy