com.pulumi.consul.outputs.AclTokenNodeIdentity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul Show documentation
Show all versions of consul Show documentation
A Pulumi package for creating and managing consul resources.
// *** 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;
}
}
}