com.pulumi.aws.memorydb.outputs.ClusterShardNodeEndpoint 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.memorydb.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 ClusterShardNodeEndpoint {
/**
* @return DNS hostname of the node.
*
*/
private @Nullable String address;
/**
* @return The port number on which each of the nodes accepts connections. Defaults to `6379`.
*
*/
private @Nullable Integer port;
private ClusterShardNodeEndpoint() {}
/**
* @return DNS hostname of the node.
*
*/
public Optional address() {
return Optional.ofNullable(this.address);
}
/**
* @return The port number on which each of the nodes accepts connections. Defaults to `6379`.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ClusterShardNodeEndpoint defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String address;
private @Nullable Integer port;
public Builder() {}
public Builder(ClusterShardNodeEndpoint defaults) {
Objects.requireNonNull(defaults);
this.address = defaults.address;
this.port = defaults.port;
}
@CustomType.Setter
public Builder address(@Nullable String address) {
this.address = address;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
public ClusterShardNodeEndpoint build() {
final var _resultValue = new ClusterShardNodeEndpoint();
_resultValue.address = address;
_resultValue.port = port;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy