/** * Simplified method form for invoking the ListSubscriptionsByTopic operation. * * @see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest) */ @Override public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn, String nextToken) { return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn).withNextToken(nextToken)); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
/** * Constructs a new ListSubscriptionsByTopicRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param topicArn * The ARN of the topic for which you wish to find subscriptions. * @param nextToken * Token returned by the previous <code>ListSubscriptionsByTopic</code> request. */ public ListSubscriptionsByTopicRequest(String topicArn, String nextToken) { setTopicArn(topicArn); setNextToken(nextToken); }
ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest = new ListSubscriptionsByTopicRequest(); listSubscriptionsByTopicRequest.setTopicArn(topicArn); listSubscriptionsByTopicRequest.setNextToken(nextToken); return listSubscriptionsByTopic(listSubscriptionsByTopicRequest);
/** * Simplified method form for invoking the ListSubscriptionsByTopic operation with an AsyncHandler. * * @see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn, com.amazonaws.handlers.AsyncHandler<ListSubscriptionsByTopicRequest, ListSubscriptionsByTopicResult> asyncHandler) { return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn), asyncHandler); }
ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest = new ListSubscriptionsByTopicRequest(); listSubscriptionsByTopicRequest.setTopicArn(topicArn); return listSubscriptionsByTopic(listSubscriptionsByTopicRequest);
/** * Constructs a new ListSubscriptionsByTopicRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param topicArn * The ARN of the topic for which you wish to find subscriptions. */ public ListSubscriptionsByTopicRequest(String topicArn) { setTopicArn(topicArn); }
/** * <p> * Token returned by the previous <code>ListSubscriptionsByTopic</code> request. * </p> * * @param nextToken * Token returned by the previous <code>ListSubscriptionsByTopic</code> request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSubscriptionsByTopicRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; }
listSubscriptionsByTopicResult = sns.listSubscriptionsByTopic(new ListSubscriptionsByTopicRequest(topicArn, nextToken)); subscriptions = listSubscriptionsByTopicResult.getSubscriptions();
ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest = new ListSubscriptionsByTopicRequest(); listSubscriptionsByTopicRequest.setTopicArn(topicArn); listSubscriptionsByTopicRequest.setNextToken(nextToken); return listSubscriptionsByTopic(listSubscriptionsByTopicRequest);
/** * Simplified method form for invoking the ListSubscriptionsByTopic operation with an AsyncHandler. * * @see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn, com.amazonaws.handlers.AsyncHandler<ListSubscriptionsByTopicRequest, ListSubscriptionsByTopicResult> asyncHandler) { return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn), asyncHandler); }
ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest = new ListSubscriptionsByTopicRequest(); listSubscriptionsByTopicRequest.setTopicArn(topicArn); return listSubscriptionsByTopic(listSubscriptionsByTopicRequest);
/** * <p> * The ARN of the topic for which you wish to find subscriptions. * </p> * * @param topicArn * The ARN of the topic for which you wish to find subscriptions. * @return Returns a reference to this object so that method calls can be chained together. */ public ListSubscriptionsByTopicRequest withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListSubscriptionsByTopicRequest == false) return false; ListSubscriptionsByTopicRequest other = (ListSubscriptionsByTopicRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; }
/** * Simplified method form for invoking the ListSubscriptionsByTopic operation with an AsyncHandler. * * @see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn, String nextToken, com.amazonaws.handlers.AsyncHandler<ListSubscriptionsByTopicRequest, ListSubscriptionsByTopicResult> asyncHandler) { return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn).withNextToken(nextToken), asyncHandler); }
/** * Simplified method form for invoking the ListSubscriptionsByTopic operation. * * @see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest) */ @Override public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn) { return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn)); }
/** * Constructs a new ListSubscriptionsByTopicRequest object. Callers should * use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param topicArn <p> * The ARN of the topic for which you wish to find subscriptions. * </p> * @param nextToken <p> * Token returned by the previous * <code>ListSubscriptionsByTopic</code> request. * </p> */ public ListSubscriptionsByTopicRequest(String topicArn, String nextToken) { setTopicArn(topicArn); setNextToken(nextToken); }
/** * Constructs a new ListSubscriptionsByTopicRequest object. Callers should * use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param topicArn <p> * The ARN of the topic for which you wish to find subscriptions. * </p> */ public ListSubscriptionsByTopicRequest(String topicArn) { setTopicArn(topicArn); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the ListSubscriptionsByTopic operation with an AsyncHandler. * * @see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn, String nextToken, com.amazonaws.handlers.AsyncHandler<ListSubscriptionsByTopicRequest, ListSubscriptionsByTopicResult> asyncHandler) { return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn).withNextToken(nextToken), asyncHandler); }