/** * Simplified method form for invoking the ConfirmSubscription operation. * * @see #confirmSubscriptionAsync(ConfirmSubscriptionRequest) */ @Override public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token, String authenticateOnUnsubscribe) { return confirmSubscriptionAsync(new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token) .withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe)); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getToken() == null) ? 0 : getToken().hashCode()); hashCode = prime * hashCode + ((getAuthenticateOnUnsubscribe() == null) ? 0 : getAuthenticateOnUnsubscribe().hashCode()); return hashCode; }
/** * Constructs a new ConfirmSubscriptionRequest 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 confirm a subscription. * @param token * Short-lived token sent to an endpoint during the <code>Subscribe</code> action. * @param authenticateOnUnsubscribe * Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is * <code>true</code> and the request has an AWS signature, then only the topic owner and the subscription * owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication. */ public ConfirmSubscriptionRequest(String topicArn, String token, String authenticateOnUnsubscribe) { setTopicArn(topicArn); setToken(token); setAuthenticateOnUnsubscribe(authenticateOnUnsubscribe); }
/** * Constructs a new ConfirmSubscriptionRequest 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 confirm a subscription. * @param token * Short-lived token sent to an endpoint during the <code>Subscribe</code> action. */ public ConfirmSubscriptionRequest(String topicArn, String token) { setTopicArn(topicArn); setToken(token); }
String authenticateOnUnsubscribe) throws AmazonServiceException, AmazonClientException { ConfirmSubscriptionRequest confirmSubscriptionRequest = new ConfirmSubscriptionRequest(); confirmSubscriptionRequest.setTopicArn(topicArn); confirmSubscriptionRequest.setToken(token); confirmSubscriptionRequest.setAuthenticateOnUnsubscribe(authenticateOnUnsubscribe); return confirmSubscription(confirmSubscriptionRequest);
/** * Simplified method form for invoking the ConfirmSubscription operation. * * @see #confirmSubscriptionAsync(ConfirmSubscriptionRequest) */ @Override public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token) { return confirmSubscriptionAsync(new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token)); }
ConfirmSubscriptionRequest confirmSubscriptionRequest = new ConfirmSubscriptionRequest(); confirmSubscriptionRequest.setTopicArn(topicArn); confirmSubscriptionRequest.setToken(token); return confirmSubscription(confirmSubscriptionRequest);
@Override public Subscription confirmSubscription(String authenticateOnUnsubscribe, String token, ResultCapture<ConfirmSubscriptionResult> extractor) { ConfirmSubscriptionRequest request = new ConfirmSubscriptionRequest() .withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe) .withToken(token); return confirmSubscription(request, extractor); }
@Override public Subscription confirmSubscription(String token, ResultCapture<ConfirmSubscriptionResult> extractor) { ConfirmSubscriptionRequest request = new ConfirmSubscriptionRequest() .withToken(token); return confirmSubscription(request, extractor); }
/** * <p> * The ARN of the topic for which you wish to confirm a subscription. * </p> * * @param topicArn * The ARN of the topic for which you wish to confirm a subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfirmSubscriptionRequest withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
/** * <p> * Short-lived token sent to an endpoint during the <code>Subscribe</code> action. * </p> * * @param token * Short-lived token sent to an endpoint during the <code>Subscribe</code> action. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfirmSubscriptionRequest withToken(String token) { setToken(token); return this; }
/** * <p> * Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is <code>true</code> * and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the * endpoint. The unsubscribe action requires AWS authentication. * </p> * * @param authenticateOnUnsubscribe * Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is * <code>true</code> and the request has an AWS signature, then only the topic owner and the subscription * owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfirmSubscriptionRequest withAuthenticateOnUnsubscribe(String authenticateOnUnsubscribe) { setAuthenticateOnUnsubscribe(authenticateOnUnsubscribe); return this; }
String authenticateOnUnsubscribe) throws AmazonServiceException, AmazonClientException { ConfirmSubscriptionRequest confirmSubscriptionRequest = new ConfirmSubscriptionRequest(); confirmSubscriptionRequest.setTopicArn(topicArn); confirmSubscriptionRequest.setToken(token); confirmSubscriptionRequest.setAuthenticateOnUnsubscribe(authenticateOnUnsubscribe); return confirmSubscription(confirmSubscriptionRequest);
/** * Simplified method form for invoking the ConfirmSubscription operation. * * @see #confirmSubscriptionAsync(ConfirmSubscriptionRequest) */ @Override public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token) { return confirmSubscriptionAsync(new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token)); }
ConfirmSubscriptionRequest confirmSubscriptionRequest = new ConfirmSubscriptionRequest(); confirmSubscriptionRequest.setTopicArn(topicArn); confirmSubscriptionRequest.setToken(token); return confirmSubscription(confirmSubscriptionRequest);
@Override public Subscription confirmSubscription(String authenticateOnUnsubscribe, String token, ResultCapture<ConfirmSubscriptionResult> extractor) { ConfirmSubscriptionRequest request = new ConfirmSubscriptionRequest() .withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe) .withToken(token); return confirmSubscription(request, extractor); }
/** * Constructs a new ConfirmSubscriptionRequest 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 confirm a * subscription. * </p> * @param token <p> * Short-lived token sent to an endpoint during the * <code>Subscribe</code> action. * </p> */ public ConfirmSubscriptionRequest(String topicArn, String token) { setTopicArn(topicArn); setToken(token); }
@Override public Subscription confirmSubscription(String token, ResultCapture<ConfirmSubscriptionResult> extractor) { ConfirmSubscriptionRequest request = new ConfirmSubscriptionRequest() .withToken(token); return confirmSubscription(request, extractor); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConfirmSubscriptionRequest == false) return false; ConfirmSubscriptionRequest other = (ConfirmSubscriptionRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getToken() == null ^ this.getToken() == null) return false; if (other.getToken() != null && other.getToken().equals(this.getToken()) == false) return false; if (other.getAuthenticateOnUnsubscribe() == null ^ this.getAuthenticateOnUnsubscribe() == null) return false; if (other.getAuthenticateOnUnsubscribe() != null && other.getAuthenticateOnUnsubscribe().equals(this.getAuthenticateOnUnsubscribe()) == false) return false; return true; }
/** * Simplified method form for invoking the ConfirmSubscription operation. * * @see #confirmSubscriptionAsync(ConfirmSubscriptionRequest) */ @Override public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token, String authenticateOnUnsubscribe) { return confirmSubscriptionAsync(new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token) .withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe)); }