@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSubscriptionsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Response for ListSubscriptions action
Constructor and Description |
---|
ListSubscriptionsResult() |
Modifier and Type | Method and Description |
---|---|
ListSubscriptionsResult |
clone() |
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.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Subscription> getSubscriptions()
A list of subscriptions.
public void setSubscriptions(Collection<Subscription> subscriptions)
A list of subscriptions.
subscriptions
- A list of subscriptions.public ListSubscriptionsResult withSubscriptions(Subscription... subscriptions)
A list of subscriptions.
NOTE: This method appends the values to the existing list (if any). Use
setSubscriptions(java.util.Collection)
or withSubscriptions(java.util.Collection)
if you want
to override the existing values.
subscriptions
- A list of subscriptions.public ListSubscriptionsResult withSubscriptions(Collection<Subscription> subscriptions)
A list of subscriptions.
subscriptions
- A list of subscriptions.public void setNextToken(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 String getNextToken()
Token to pass along to the next 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 ListSubscriptionsResult withNextToken(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 String toString()
toString
in class Object
Object.toString()
public ListSubscriptionsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.