
com.pulumi.aws.dax.outputs.ClusterNode 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.aws.dax.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ClusterNode {
private @Nullable String address;
private @Nullable String availabilityZone;
private @Nullable String id;
/**
* @return The port used by the configuration endpoint
*
*/
private @Nullable Integer port;
private ClusterNode() {}
public Optional address() {
return Optional.ofNullable(this.address);
}
public Optional availabilityZone() {
return Optional.ofNullable(this.availabilityZone);
}
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The port used by the configuration endpoint
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterNode defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String address;
private @Nullable String availabilityZone;
private @Nullable String id;
private @Nullable Integer port;
public Builder() {}
public Builder(ClusterNode defaults) {
Objects.requireNonNull(defaults);
this.address = defaults.address;
this.availabilityZone = defaults.availabilityZone;
this.id = defaults.id;
this.port = defaults.port;
}
@CustomType.Setter
public Builder address(@Nullable String address) {
this.address = address;
return this;
}
@CustomType.Setter
public Builder availabilityZone(@Nullable String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
public ClusterNode build() {
final var _resultValue = new ClusterNode();
_resultValue.address = address;
_resultValue.availabilityZone = availabilityZone;
_resultValue.id = id;
_resultValue.port = port;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy