public class ListSubscriptionsResult extends Object implements Serializable
Response for ListSubscriptions action
Constructor and Description |
---|
ListSubscriptionsResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getNextToken()
Token to pass along to the next
ListSubscriptions
request. |
List<Subscription> |
getSubscriptions()
A list of subscriptions.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
Token to pass along to the next
ListSubscriptions
request. |
void |
setSubscriptions(Collection<Subscription> subscriptions)
A list of subscriptions.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListSubscriptionsResult |
withNextToken(String nextToken)
Token to pass along to the next
ListSubscriptions
request. |
ListSubscriptionsResult |
withSubscriptions(Collection<Subscription> subscriptions)
A list of subscriptions.
|
ListSubscriptionsResult |
withSubscriptions(Subscription... subscriptions)
A list of subscriptions.
|
public List<Subscription> getSubscriptions()
public void setSubscriptions(Collection<Subscription> subscriptions)
subscriptions
- A list of subscriptions.public ListSubscriptionsResult withSubscriptions(Subscription... subscriptions)
Returns a reference to this object so that method calls can be chained together.
subscriptions
- A list of subscriptions.public ListSubscriptionsResult withSubscriptions(Collection<Subscription> subscriptions)
Returns a reference to this object so that method calls can be chained together.
subscriptions
- A list of subscriptions.public String getNextToken()
ListSubscriptions
request. This element is returned if there are more subscriptions to
retrieve.ListSubscriptions
request. This element is returned if there are more subscriptions to
retrieve.public void setNextToken(String nextToken)
ListSubscriptions
request. This element is returned if there are more subscriptions to
retrieve.nextToken
- Token to pass along to the next ListSubscriptions
request. This element is returned if there are more subscriptions to
retrieve.public ListSubscriptionsResult withNextToken(String nextToken)
ListSubscriptions
request. This element is returned if there are more subscriptions to
retrieve.
Returns a reference to this object so that method calls can be chained together.
nextToken
- Token to pass along to the next ListSubscriptions
request. This element is returned if there are more subscriptions to
retrieve.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.