com.amazonaws.services.sns.model
Class ListTopicsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sns.model.ListTopicsRequest

public class ListTopicsRequest
extends AmazonWebServiceRequest

Container for the parameters to the ListTopics operation.

The ListTopics action returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a NextToken is also returned. Use the NextToken parameter in a new ListTopics call to get further results.

See Also:
AmazonSNS.listTopics(ListTopicsRequest)

Constructor Summary
ListTopicsRequest()
          Default constructor for a new ListTopicsRequest object.
ListTopicsRequest(String nextToken)
          Constructs a new ListTopicsRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getNextToken()
          Token returned by the previous ListTopics request.
 int hashCode()
           
 void setNextToken(String nextToken)
          Token returned by the previous ListTopics request.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ListTopicsRequest withNextToken(String nextToken)
          Token returned by the previous ListTopics request.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListTopicsRequest

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


ListTopicsRequest

public ListTopicsRequest(String nextToken)
Constructs a new ListTopicsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
nextToken - Token returned by the previous ListTopics request.
Method Detail

getNextToken

public String getNextToken()
Token returned by the previous ListTopics request.

Returns:
Token returned by the previous ListTopics request.

setNextToken

public void setNextToken(String nextToken)
Token returned by the previous ListTopics request.

Parameters:
nextToken - Token returned by the previous ListTopics request.

withNextToken

public ListTopicsRequest withNextToken(String nextToken)
Token returned by the previous ListTopics request.

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

Parameters:
nextToken - Token returned by the previous ListTopics request.
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.