Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticache.model
Class Endpoint

java.lang.Object
  extended by com.amazonaws.services.elasticache.model.Endpoint

public class Endpoint
extends Object

An endpoint completely specifies enough information to connect to a Cache Node.


Constructor Summary
Endpoint()
          Default constructor for a new Endpoint object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAddress()
          Specifies the DNS address of the Cache Node.
 Integer getPort()
          Specifies the port that the cache engine is listening on.
 int hashCode()
           
 void setAddress(String address)
          Specifies the DNS address of the Cache Node.
 void setPort(Integer port)
          Specifies the port 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)
          Specifies the DNS address of the Cache Node.
 Endpoint withPort(Integer port)
          Specifies the port that the cache engine is listening on.
 
Methods inherited from class java.lang.Object
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()
Specifies the DNS address of the Cache Node.

Returns:
Specifies the DNS address of the Cache Node.

setAddress

public void setAddress(String address)
Specifies the DNS address of the Cache Node.

Parameters:
address - Specifies the DNS address of the Cache Node.

withAddress

public Endpoint withAddress(String address)
Specifies the DNS address of the Cache Node.

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

Parameters:
address - Specifies the DNS address of the Cache Node.
Returns:
A reference to this updated object so that method calls can be chained together.

getPort

public Integer getPort()
Specifies the port that the cache engine is listening on.

Returns:
Specifies the port that the cache engine is listening on.

setPort

public void setPort(Integer port)
Specifies the port that the cache engine is listening on.

Parameters:
port - Specifies the port that the cache engine is listening on.

withPort

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

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

Parameters:
port - Specifies the port 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 © 2010 Amazon Web Services, Inc. All Rights Reserved.