com.amazonaws.services.elasticache.model
Class Endpoint

java.lang.Object
  extended by com.amazonaws.services.elasticache.model.Endpoint
All Implemented Interfaces:
Serializable

public class Endpoint
extends Object
implements Serializable

Represents the information required for client programs to connect to a cache node.

See Also:
Serialized Form

Constructor Summary
Endpoint()
          Default constructor for a new Endpoint object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Endpoint

public Endpoint()
Default constructor for a new Endpoint object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getAddress

public String getAddress()
The DNS hostname of the cache node.

Returns:
The DNS hostname of the cache node.

setAddress

public void setAddress(String address)
The DNS hostname of the cache node.

Parameters:
address - The DNS hostname of the cache node.

withAddress

public Endpoint withAddress(String address)
The DNS hostname of the cache node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
address - The DNS hostname of the cache node.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withPort

public Endpoint withPort(Integer port)
The port number that the cache engine is listening on.

Returns a reference to this object so that method calls can be chained together.

Parameters:
port - The port number that the cache engine is listening on.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.