Package com.amazonaws.services.sns.model
Class ListTopicsResult
- java.lang.Object
-
- com.amazonaws.services.sns.model.ListTopicsResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ListTopicsResult extends Object implements Serializable, Cloneable
Response for ListTopics action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListTopicsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListTopicsResultclone()booleanequals(Object obj)StringgetNextToken()Token to pass along to the nextListTopicsrequest.List<Topic>getTopics()A list of topic ARNs.inthashCode()voidsetNextToken(String nextToken)Token to pass along to the nextListTopicsrequest.voidsetTopics(Collection<Topic> topics)A list of topic ARNs.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListTopicsResultwithNextToken(String nextToken)Token to pass along to the nextListTopicsrequest.ListTopicsResultwithTopics(Topic... topics)A list of topic ARNs.ListTopicsResultwithTopics(Collection<Topic> topics)A list of topic ARNs.
-
-
-
Method Detail
-
setTopics
public void setTopics(Collection<Topic> topics)
A list of topic ARNs.
- Parameters:
topics- A list of topic ARNs.
-
withTopics
public ListTopicsResult withTopics(Topic... topics)
A list of topic ARNs.
NOTE: This method appends the values to the existing list (if any). Use
setTopics(java.util.Collection)orwithTopics(java.util.Collection)if you want to override the existing values.- Parameters:
topics- A list of topic ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTopics
public ListTopicsResult withTopics(Collection<Topic> topics)
A list of topic ARNs.
- Parameters:
topics- A list of topic ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
Token to pass along to the next
ListTopicsrequest. This element is returned if there are additional topics to retrieve.- Parameters:
nextToken- Token to pass along to the nextListTopicsrequest. This element is returned if there are additional topics to retrieve.
-
getNextToken
public String getNextToken()
Token to pass along to the next
ListTopicsrequest. This element is returned if there are additional topics to retrieve.- Returns:
- Token to pass along to the next
ListTopicsrequest. This element is returned if there are additional topics to retrieve.
-
withNextToken
public ListTopicsResult withNextToken(String nextToken)
Token to pass along to the next
ListTopicsrequest. This element is returned if there are additional topics to retrieve.- Parameters:
nextToken- Token to pass along to the nextListTopicsrequest. This element is returned if there are additional topics to retrieve.- 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()
-
clone
public ListTopicsResult clone()
-
-