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

com.pulumi.consul.inputs.NodeState 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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NodeState Empty = new NodeState();

    /**
     * The address of the node being added to, or referenced in the catalog.
     * 
     */
    @Import(name="address")
    private @Nullable Output address;

    /**
     * @return The address of the node being added to, or referenced in the catalog.
     * 
     */
    public Optional> address() {
        return Optional.ofNullable(this.address);
    }

    /**
     * The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
     * 
     */
    @Import(name="datacenter")
    private @Nullable Output datacenter;

    /**
     * @return The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
     * 
     */
    public Optional> datacenter() {
        return Optional.ofNullable(this.datacenter);
    }

    /**
     * Key/value pairs that are associated with the node.
     * 
     */
    @Import(name="meta")
    private @Nullable Output> meta;

    /**
     * @return Key/value pairs that are associated with the node.
     * 
     */
    public Optional>> meta() {
        return Optional.ofNullable(this.meta);
    }

    /**
     * The name of the node being added to, or referenced in the catalog.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the node being added to, or referenced in the catalog.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The partition the node is associated with.
     * 
     */
    @Import(name="partition")
    private @Nullable Output partition;

    /**
     * @return The partition the node is associated with.
     * 
     */
    public Optional> partition() {
        return Optional.ofNullable(this.partition);
    }

    /**
     * @deprecated
     * The token argument has been deprecated and will be removed in a future release.
     * Please use the token argument in the provider configuration
     * 
     */
    @Deprecated /* The token argument has been deprecated and will be removed in a future release.
Please use the token argument in the provider configuration */
    @Import(name="token")
    private @Nullable Output token;

    /**
     * @deprecated
     * The token argument has been deprecated and will be removed in a future release.
     * Please use the token argument in the provider configuration
     * 
     */
    @Deprecated /* The token argument has been deprecated and will be removed in a future release.
Please use the token argument in the provider configuration */
    public Optional> token() {
        return Optional.ofNullable(this.token);
    }

    private NodeState() {}

    private NodeState(NodeState $) {
        this.address = $.address;
        this.datacenter = $.datacenter;
        this.meta = $.meta;
        this.name = $.name;
        this.partition = $.partition;
        this.token = $.token;
    }

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

    public static final class Builder {
        private NodeState $;

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

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

        /**
         * @param address The address of the node being added to, or referenced in the catalog.
         * 
         * @return builder
         * 
         */
        public Builder address(@Nullable Output address) {
            $.address = address;
            return this;
        }

        /**
         * @param address The address of the node being added to, or referenced in the catalog.
         * 
         * @return builder
         * 
         */
        public Builder address(String address) {
            return address(Output.of(address));
        }

        /**
         * @param datacenter The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
         * 
         * @return builder
         * 
         */
        public Builder datacenter(@Nullable Output datacenter) {
            $.datacenter = datacenter;
            return this;
        }

        /**
         * @param datacenter The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.
         * 
         * @return builder
         * 
         */
        public Builder datacenter(String datacenter) {
            return datacenter(Output.of(datacenter));
        }

        /**
         * @param meta Key/value pairs that are associated with the node.
         * 
         * @return builder
         * 
         */
        public Builder meta(@Nullable Output> meta) {
            $.meta = meta;
            return this;
        }

        /**
         * @param meta Key/value pairs that are associated with the node.
         * 
         * @return builder
         * 
         */
        public Builder meta(Map meta) {
            return meta(Output.of(meta));
        }

        /**
         * @param name The name of the node being added to, or referenced in the catalog.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the node being added to, or referenced in the catalog.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param partition The partition the node is associated with.
         * 
         * @return builder
         * 
         */
        public Builder partition(@Nullable Output partition) {
            $.partition = partition;
            return this;
        }

        /**
         * @param partition The partition the node is associated with.
         * 
         * @return builder
         * 
         */
        public Builder partition(String partition) {
            return partition(Output.of(partition));
        }

        /**
         * @return builder
         * 
         * @deprecated
         * The token argument has been deprecated and will be removed in a future release.
         * Please use the token argument in the provider configuration
         * 
         */
        @Deprecated /* The token argument has been deprecated and will be removed in a future release.
Please use the token argument in the provider configuration */
        public Builder token(@Nullable Output token) {
            $.token = token;
            return this;
        }

        /**
         * @return builder
         * 
         * @deprecated
         * The token argument has been deprecated and will be removed in a future release.
         * Please use the token argument in the provider configuration
         * 
         */
        @Deprecated /* The token argument has been deprecated and will be removed in a future release.
Please use the token argument in the provider configuration */
        public Builder token(String token) {
            return token(Output.of(token));
        }

        public NodeState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy