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 Endpointclone()booleanequals(Object obj)StringgetAddress()The DNS hostname of the cache node.IntegergetPort()The port number that the cache engine is listening on.inthashCode()voidsetAddress(String address)The DNS hostname of the cache node.voidsetPort(Integer port)The port number that the cache engine is listening on.StringtoString()Returns a string representation of this object; useful for testing and debugging.EndpointwithAddress(String address)The DNS hostname of the cache node.EndpointwithPort(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-