@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSubscriptionsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSubscriptionsResult() |
Modifier and Type | Method and Description |
---|---|
ListSubscriptionsResult |
clone() |
boolean |
equals(Object obj) |
List<SubscriptionSummary> |
getItems()
The results of the
ListSubscriptions action. |
String |
getNextToken()
When the number of subscriptions is greater than the default value for the
MaxResults parameter, or
if you explicitly specify a value for MaxResults that is less than the number of subscriptions, the
response includes a pagination token named NextToken . |
int |
hashCode() |
void |
setItems(Collection<SubscriptionSummary> items)
The results of the
ListSubscriptions action. |
void |
setNextToken(String nextToken)
When the number of subscriptions is greater than the default value for the
MaxResults parameter, or
if you explicitly specify a value for MaxResults that is less than the number of subscriptions, the
response includes a pagination token named NextToken . |
String |
toString()
Returns a string representation of this object.
|
ListSubscriptionsResult |
withItems(Collection<SubscriptionSummary> items)
The results of the
ListSubscriptions action. |
ListSubscriptionsResult |
withItems(SubscriptionSummary... items)
The results of the
ListSubscriptions action. |
ListSubscriptionsResult |
withNextToken(String nextToken)
When the number of subscriptions is greater than the default value for the
MaxResults parameter, or
if you explicitly specify a value for MaxResults that is less than the number of subscriptions, the
response includes a pagination token named NextToken . |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<SubscriptionSummary> getItems()
The results of the ListSubscriptions
action.
ListSubscriptions
action.public void setItems(Collection<SubscriptionSummary> items)
The results of the ListSubscriptions
action.
items
- The results of the ListSubscriptions
action.public ListSubscriptionsResult withItems(SubscriptionSummary... items)
The results of the ListSubscriptions
action.
NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)
or withItems(java.util.Collection)
if you want to override the
existing values.
items
- The results of the ListSubscriptions
action.public ListSubscriptionsResult withItems(Collection<SubscriptionSummary> items)
The results of the ListSubscriptions
action.
items
- The results of the ListSubscriptions
action.public void setNextToken(String nextToken)
When the number of subscriptions is greater than the default value for the MaxResults
parameter, or
if you explicitly specify a value for MaxResults
that is less than the number of subscriptions, the
response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListSubscriptions
to list the next set of subscriptions.
nextToken
- When the number of subscriptions is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number
of subscriptions, the response includes a pagination token named NextToken
. You can specify
this NextToken
value in a subsequent call to ListSubscriptions
to list the next
set of subscriptions.public String getNextToken()
When the number of subscriptions is greater than the default value for the MaxResults
parameter, or
if you explicitly specify a value for MaxResults
that is less than the number of subscriptions, the
response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListSubscriptions
to list the next set of subscriptions.
MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number
of subscriptions, the response includes a pagination token named NextToken
. You can specify
this NextToken
value in a subsequent call to ListSubscriptions
to list the next
set of subscriptions.public ListSubscriptionsResult withNextToken(String nextToken)
When the number of subscriptions is greater than the default value for the MaxResults
parameter, or
if you explicitly specify a value for MaxResults
that is less than the number of subscriptions, the
response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListSubscriptions
to list the next set of subscriptions.
nextToken
- When the number of subscriptions is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number
of subscriptions, the response includes a pagination token named NextToken
. You can specify
this NextToken
value in a subsequent call to ListSubscriptions
to list the next
set of subscriptions.public String toString()
toString
in class Object
Object.toString()
public ListSubscriptionsResult clone()