Class ListSubscriptionsResult
- All Implemented Interfaces:
Serializable
,Cloneable
Response for ListSubscriptions action
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Token to pass along to the nextListSubscriptions
request.A list of subscriptions.int
hashCode()
void
setNextToken
(String nextToken) Token to pass along to the nextListSubscriptions
request.void
setSubscriptions
(Collection<Subscription> subscriptions) A list of subscriptions.toString()
Returns a string representation of this object; useful for testing and debugging.withNextToken
(String nextToken) Token to pass along to the nextListSubscriptions
request.withSubscriptions
(Subscription... subscriptions) A list of subscriptions.withSubscriptions
(Collection<Subscription> subscriptions) A list of subscriptions.
-
Constructor Details
-
ListSubscriptionsResult
public ListSubscriptionsResult()
-
-
Method Details
-
getSubscriptions
A list of subscriptions.
- Returns:
- A list of subscriptions.
-
setSubscriptions
A list of subscriptions.
- Parameters:
subscriptions
- A list of subscriptions.
-
withSubscriptions
A list of subscriptions.
NOTE: This method appends the values to the existing list (if any). Use
setSubscriptions(java.util.Collection)
orwithSubscriptions(java.util.Collection)
if you want to override the existing values.- Parameters:
subscriptions
- A list of subscriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubscriptions
A list of subscriptions.
- Parameters:
subscriptions
- A list of subscriptions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
Token to pass along to the next
ListSubscriptions
request. This element is returned if there are more subscriptions to retrieve.- Parameters:
nextToken
- Token to pass along to the nextListSubscriptions
request. This element is returned if there are more subscriptions to retrieve.
-
getNextToken
Token to pass along to the next
ListSubscriptions
request. This element is returned if there are more subscriptions to retrieve.- Returns:
- Token to pass along to the next
ListSubscriptions
request. This element is returned if there are more subscriptions to retrieve.
-
withNextToken
Token to pass along to the next
ListSubscriptions
request. This element is returned if there are more subscriptions to retrieve.- Parameters:
nextToken
- Token to pass along to the nextListSubscriptions
request. This element is returned if there are more subscriptions to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-