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

com.pulumi.consul.outputs.GetNodesNode Maven / Gradle / Ivy

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetNodesNode {
    private String address;
    /**
     * @return The Node ID of the Consul agent.
     * * [`meta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Node meta
     *   data tag information, if any.
     * * [`name`](https://www.consul.io/docs/agent/http/catalog.html#Node) - The name
     *   of the Consul node.
     * * [`address`](https://www.consul.io/docs/agent/http/catalog.html#Address) - The
     *   IP address the node is advertising to the Consul cluster.
     * * [`tagged_addresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
     *   List of explicit LAN and WAN IP addresses for the agent.
     * 
     */
    private String id;
    private Map meta;
    private String name;
    private Map taggedAddresses;

    private GetNodesNode() {}
    public String address() {
        return this.address;
    }
    /**
     * @return The Node ID of the Consul agent.
     * * [`meta`](https://www.consul.io/docs/agent/http/catalog.html#Meta) - Node meta
     *   data tag information, if any.
     * * [`name`](https://www.consul.io/docs/agent/http/catalog.html#Node) - The name
     *   of the Consul node.
     * * [`address`](https://www.consul.io/docs/agent/http/catalog.html#Address) - The
     *   IP address the node is advertising to the Consul cluster.
     * * [`tagged_addresses`](https://www.consul.io/docs/agent/http/catalog.html#TaggedAddresses) -
     *   List of explicit LAN and WAN IP addresses for the agent.
     * 
     */
    public String id() {
        return this.id;
    }
    public Map meta() {
        return this.meta;
    }
    public String name() {
        return this.name;
    }
    public Map taggedAddresses() {
        return this.taggedAddresses;
    }

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

    public static Builder builder(GetNodesNode defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String address;
        private String id;
        private Map meta;
        private String name;
        private Map taggedAddresses;
        public Builder() {}
        public Builder(GetNodesNode defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.address = defaults.address;
    	      this.id = defaults.id;
    	      this.meta = defaults.meta;
    	      this.name = defaults.name;
    	      this.taggedAddresses = defaults.taggedAddresses;
        }

        @CustomType.Setter
        public Builder address(String address) {
            if (address == null) {
              throw new MissingRequiredPropertyException("GetNodesNode", "address");
            }
            this.address = address;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetNodesNode", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder meta(Map meta) {
            if (meta == null) {
              throw new MissingRequiredPropertyException("GetNodesNode", "meta");
            }
            this.meta = meta;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetNodesNode", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder taggedAddresses(Map taggedAddresses) {
            if (taggedAddresses == null) {
              throw new MissingRequiredPropertyException("GetNodesNode", "taggedAddresses");
            }
            this.taggedAddresses = taggedAddresses;
            return this;
        }
        public GetNodesNode build() {
            final var _resultValue = new GetNodesNode();
            _resultValue.address = address;
            _resultValue.id = id;
            _resultValue.meta = meta;
            _resultValue.name = name;
            _resultValue.taggedAddresses = taggedAddresses;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy