public class ListSubscriptionsByTopicRequest extends AmazonWebServiceRequest implements java.io.Serializable
ListSubscriptionsByTopic operation.
Returns a list of the subscriptions to a specific topic. Each call
returns a limited list of subscriptions, up to 100. If there are more
subscriptions, a NextToken is also returned. Use the
NextToken parameter in a new
ListSubscriptionsByTopic call to get further results.
| Constructor and Description |
|---|
ListSubscriptionsByTopicRequest()
Default constructor for a new ListSubscriptionsByTopicRequest object.
|
ListSubscriptionsByTopicRequest(java.lang.String topicArn)
Constructs a new ListSubscriptionsByTopicRequest object.
|
ListSubscriptionsByTopicRequest(java.lang.String topicArn,
java.lang.String nextToken)
Constructs a new ListSubscriptionsByTopicRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
Token returned by the previous
ListSubscriptionsByTopic
request. |
java.lang.String |
getTopicArn()
The ARN of the topic for which you wish to find subscriptions.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
Token returned by the previous
ListSubscriptionsByTopic
request. |
void |
setTopicArn(java.lang.String topicArn)
The ARN of the topic for which you wish to find subscriptions.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListSubscriptionsByTopicRequest |
withNextToken(java.lang.String nextToken)
Token returned by the previous
ListSubscriptionsByTopic
request. |
ListSubscriptionsByTopicRequest |
withTopicArn(java.lang.String topicArn)
The ARN of the topic for which you wish to find subscriptions.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic ListSubscriptionsByTopicRequest()
public ListSubscriptionsByTopicRequest(java.lang.String topicArn)
topicArn - The ARN of the topic for which you wish to find
subscriptions.public ListSubscriptionsByTopicRequest(java.lang.String topicArn,
java.lang.String nextToken)
topicArn - The ARN of the topic for which you wish to find
subscriptions.nextToken - Token returned by the previous
ListSubscriptionsByTopic request.public java.lang.String getTopicArn()
public void setTopicArn(java.lang.String topicArn)
topicArn - The ARN of the topic for which you wish to find subscriptions.public ListSubscriptionsByTopicRequest withTopicArn(java.lang.String topicArn)
Returns a reference to this object so that method calls can be chained together.
topicArn - The ARN of the topic for which you wish to find subscriptions.public java.lang.String getNextToken()
ListSubscriptionsByTopic
request.ListSubscriptionsByTopic
request.public void setNextToken(java.lang.String nextToken)
ListSubscriptionsByTopic
request.nextToken - Token returned by the previous ListSubscriptionsByTopic
request.public ListSubscriptionsByTopicRequest withNextToken(java.lang.String nextToken)
ListSubscriptionsByTopic
request.
Returns a reference to this object so that method calls can be chained together.
nextToken - Token returned by the previous ListSubscriptionsByTopic
request.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object