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