@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Endpoint extends Object implements Serializable, Cloneable
Describes a connection endpoint.
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
Endpoint |
clone() |
boolean |
equals(Object obj) |
String |
getAddress()
The DNS address of the Cluster.
|
Integer |
getPort()
The port that the database engine is listening on.
|
List<VpcEndpoint> |
getVpcEndpoints()
Describes a connection endpoint.
|
int |
hashCode() |
void |
setAddress(String address)
The DNS address of the Cluster.
|
void |
setPort(Integer port)
The port that the database engine is listening on.
|
void |
setVpcEndpoints(Collection<VpcEndpoint> vpcEndpoints)
Describes a connection endpoint.
|
String |
toString()
Returns a string representation of this object.
|
Endpoint |
withAddress(String address)
The DNS address of the Cluster.
|
Endpoint |
withPort(Integer port)
The port that the database engine is listening on.
|
Endpoint |
withVpcEndpoints(Collection<VpcEndpoint> vpcEndpoints)
Describes a connection endpoint.
|
Endpoint |
withVpcEndpoints(VpcEndpoint... vpcEndpoints)
Describes a connection endpoint.
|
public void setAddress(String address)
The DNS address of the Cluster.
address
- The DNS address of the Cluster.public String getAddress()
The DNS address of the Cluster.
public Endpoint withAddress(String address)
The DNS address of the Cluster.
address
- The DNS address of the Cluster.public void setPort(Integer port)
The port that the database engine is listening on.
port
- The port that the database engine is listening on.public Integer getPort()
The port that the database engine is listening on.
public Endpoint withPort(Integer port)
The port that the database engine is listening on.
port
- The port that the database engine is listening on.public List<VpcEndpoint> getVpcEndpoints()
Describes a connection endpoint.
public void setVpcEndpoints(Collection<VpcEndpoint> vpcEndpoints)
Describes a connection endpoint.
vpcEndpoints
- Describes a connection endpoint.public Endpoint withVpcEndpoints(VpcEndpoint... vpcEndpoints)
Describes a connection endpoint.
NOTE: This method appends the values to the existing list (if any). Use
setVpcEndpoints(java.util.Collection)
or withVpcEndpoints(java.util.Collection)
if you want to
override the existing values.
vpcEndpoints
- Describes a connection endpoint.public Endpoint withVpcEndpoints(Collection<VpcEndpoint> vpcEndpoints)
Describes a connection endpoint.
vpcEndpoints
- Describes a connection endpoint.public String toString()
toString
in class Object
Object.toString()