Class Endpoint
- java.lang.Object
-
- com.amazonaws.services.redshift.model.Endpoint
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Endpoint extends Object implements Serializable, Cloneable
Describes a connection endpoint.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Endpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpointclone()booleanequals(Object obj)StringgetAddress()The DNS address of the Cluster.IntegergetPort()The port that the database engine is listening on.inthashCode()voidsetAddress(String address)The DNS address of the Cluster.voidsetPort(Integer port)The port that the database engine is listening on.StringtoString()Returns a string representation of this object; useful for testing and debugging.EndpointwithAddress(String address)The DNS address of the Cluster.EndpointwithPort(Integer port)The port that the database engine is listening on.
-
-
-
Method Detail
-
setAddress
public void setAddress(String address)
The DNS address of the Cluster.
- Parameters:
address- The DNS address of the Cluster.
-
getAddress
public String getAddress()
The DNS address of the Cluster.
- Returns:
- The DNS address of the Cluster.
-
withAddress
public Endpoint withAddress(String address)
The DNS address of the Cluster.
- Parameters:
address- The DNS address of the Cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPort
public void setPort(Integer port)
The port that the database engine is listening on.
- Parameters:
port- The port that the database engine is listening on.
-
getPort
public Integer getPort()
The port that the database engine is listening on.
- Returns:
- The port that the database engine is listening on.
-
withPort
public Endpoint withPort(Integer port)
The port that the database engine is listening on.
- Parameters:
port- The port that the database engine is listening on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-