public class Endpoint
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a connection endpoint.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
address
The DNS address of the Cluster.
|
private java.lang.Integer |
port
The port that the database engine is listening on.
|
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
Endpoint |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
The DNS address of the Cluster.
|
java.lang.Integer |
getPort()
The port that the database engine is listening on.
|
int |
hashCode() |
void |
setAddress(java.lang.String address)
The DNS address of the Cluster.
|
void |
setPort(java.lang.Integer port)
The port that the database engine is listening on.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Endpoint |
withAddress(java.lang.String address)
The DNS address of the Cluster.
|
Endpoint |
withPort(java.lang.Integer port)
The port that the database engine is listening on.
|
private java.lang.String address
The DNS address of the Cluster.
private java.lang.Integer port
The port that the database engine is listening on.
public void setAddress(java.lang.String address)
The DNS address of the Cluster.
address
- The DNS address of the Cluster.public java.lang.String getAddress()
The DNS address of the Cluster.
public Endpoint withAddress(java.lang.String address)
The DNS address of the Cluster.
address
- The DNS address of the Cluster.public void setPort(java.lang.Integer port)
The port that the database engine is listening on.
port
- The port that the database engine is listening on.public java.lang.Integer getPort()
The port that the database engine is listening on.
public Endpoint withPort(java.lang.Integer port)
The port that the database engine is listening on.
port
- The port that the database engine is listening on.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Endpoint clone()
clone
in class java.lang.Object