Example usage for com.amazonaws.services.sns.model ListSubscriptionsResult getNextToken

List of usage examples for com.amazonaws.services.sns.model ListSubscriptionsResult getNextToken

Introduction

In this page you can find the example usage for com.amazonaws.services.sns.model ListSubscriptionsResult getNextToken.

Prototype


public String getNextToken() 

Source Link

Document

Token to pass along to the next ListSubscriptions request.

Usage

From source file:com.zotoh.cloudapi.aws.SNS.java

License:Open Source License

private Tuple listSubs(String nextToken) {
    ListSubscriptionsRequest req = new ListSubscriptionsRequest();
    if (!isEmpty(nextToken)) {
        req.withNextToken(nextToken);/*  www.  j a  va2s.c  o  m*/
    }
    ListSubscriptionsResult res = _svc.getCloud().getSNS().listSubscriptions(req);
    List<com.amazonaws.services.sns.model.Subscription> lst = null;
    String tkn = null;
    if (res != null) {
        lst = res.getSubscriptions();
        tkn = res.getNextToken();
    }
    return new Tuple(lst, tkn);
}