Class Endpoint
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.Endpoint
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Endpoint extends Object implements Serializable, Cloneable
Represents the information required for client programs to connect to a cache node.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Endpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint
clone()
boolean
equals(Object obj)
String
getAddress()
The DNS hostname of the cache node.Integer
getPort()
The port number that the cache engine is listening on.int
hashCode()
void
setAddress(String address)
The DNS hostname of the cache node.void
setPort(Integer port)
The port number that the cache engine is listening on.String
toString()
Returns a string representation of this object; useful for testing and debugging.Endpoint
withAddress(String address)
The DNS hostname of the cache node.Endpoint
withPort(Integer port)
The port number that the cache engine is listening on.
-
-
-
Method Detail
-
setAddress
public void setAddress(String address)
The DNS hostname of the cache node.
- Parameters:
address
- The DNS hostname of the cache node.
-
getAddress
public String getAddress()
The DNS hostname of the cache node.
- Returns:
- The DNS hostname of the cache node.
-
withAddress
public Endpoint withAddress(String address)
The DNS hostname of the cache node.
- Parameters:
address
- The DNS hostname of the cache node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPort
public void setPort(Integer port)
The port number that the cache engine is listening on.
- Parameters:
port
- The port number that the cache engine is listening on.
-
getPort
public Integer getPort()
The port number that the cache engine is listening on.
- Returns:
- The port number that the cache engine is listening on.
-
withPort
public Endpoint withPort(Integer port)
The port number that the cache engine is listening on.
- Parameters:
port
- The port number that the cache 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-