@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSubscriptionsByTopicResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Response for ListSubscriptionsByTopic action.
Constructor and Description |
---|
ListSubscriptionsByTopicResult() |
Modifier and Type | Method and Description |
---|---|
ListSubscriptionsByTopicResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
Token to pass along to the next
ListSubscriptionsByTopic request. |
List<Subscription> |
getSubscriptions()
A list of subscriptions.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
Token to pass along to the next
ListSubscriptionsByTopic request. |
void |
setSubscriptions(Collection<Subscription> subscriptions)
A list of subscriptions.
|
String |
toString()
Returns a string representation of this object.
|
ListSubscriptionsByTopicResult |
withNextToken(String nextToken)
Token to pass along to the next
ListSubscriptionsByTopic request. |
ListSubscriptionsByTopicResult |
withSubscriptions(Collection<Subscription> subscriptions)
A list of subscriptions.
|
ListSubscriptionsByTopicResult |
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 ListSubscriptionsByTopicResult 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 ListSubscriptionsByTopicResult 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 ListSubscriptionsByTopic
request. This element is returned if there
are more subscriptions to retrieve.
nextToken
- Token to pass along to the next ListSubscriptionsByTopic
request. This element is returned if
there are more subscriptions to retrieve.public String getNextToken()
Token to pass along to the next ListSubscriptionsByTopic
request. This element is returned if there
are more subscriptions to retrieve.
ListSubscriptionsByTopic
request. This element is returned
if there are more subscriptions to retrieve.public ListSubscriptionsByTopicResult withNextToken(String nextToken)
Token to pass along to the next ListSubscriptionsByTopic
request. This element is returned if there
are more subscriptions to retrieve.
nextToken
- Token to pass along to the next ListSubscriptionsByTopic
request. This element is returned if
there are more subscriptions to retrieve.public String toString()
toString
in class Object
Object.toString()
public ListSubscriptionsByTopicResult clone()
Copyright © 2024. All rights reserved.