List of usage examples for com.amazonaws.services.sns.model ConfirmSubscriptionRequest ConfirmSubscriptionRequest
public ConfirmSubscriptionRequest()
From source file:com.zotoh.cloudapi.aws.SNS.java
License:Open Source License
@Override public String confirmSubscription(String topic, String token, boolean authUnsubscribe) throws CloudException, InternalException { ConfirmSubscriptionResult res = _svc.getCloud().getSNS() .confirmSubscription(new ConfirmSubscriptionRequest() .withAuthenticateOnUnsubscribe(authUnsubscribe ? "true" : "false").withTopicArn(topic) .withToken(token));//from w ww . java 2 s. c om return res == null ? null : res.getSubscriptionArn(); }