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

com.pulumi.consul.outputs.AclTokenNodeIdentity 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.Objects;

@CustomType
public final class AclTokenNodeIdentity {
    /**
     * @return The datacenter of the node.
     * 
     */
    private String datacenter;
    /**
     * @return The name of the node.
     * 
     */
    private String nodeName;

    private AclTokenNodeIdentity() {}
    /**
     * @return The datacenter of the node.
     * 
     */
    public String datacenter() {
        return this.datacenter;
    }
    /**
     * @return The name of the node.
     * 
     */
    public String nodeName() {
        return this.nodeName;
    }

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

    public static Builder builder(AclTokenNodeIdentity defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String datacenter;
        private String nodeName;
        public Builder() {}
        public Builder(AclTokenNodeIdentity defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.datacenter = defaults.datacenter;
    	      this.nodeName = defaults.nodeName;
        }

        @CustomType.Setter
        public Builder datacenter(String datacenter) {
            if (datacenter == null) {
              throw new MissingRequiredPropertyException("AclTokenNodeIdentity", "datacenter");
            }
            this.datacenter = datacenter;
            return this;
        }
        @CustomType.Setter
        public Builder nodeName(String nodeName) {
            if (nodeName == null) {
              throw new MissingRequiredPropertyException("AclTokenNodeIdentity", "nodeName");
            }
            this.nodeName = nodeName;
            return this;
        }
        public AclTokenNodeIdentity build() {
            final var _resultValue = new AclTokenNodeIdentity();
            _resultValue.datacenter = datacenter;
            _resultValue.nodeName = nodeName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy