Example usage for com.amazonaws.services.simpledb.model ListDomainsResult setNextToken

List of usage examples for com.amazonaws.services.simpledb.model ListDomainsResult setNextToken

Introduction

In this page you can find the example usage for com.amazonaws.services.simpledb.model ListDomainsResult setNextToken.

Prototype


public void setNextToken(String nextToken) 

Source Link

Document

An opaque token indicating that there are more domains than the specified MaxNumberOfDomains still available.

Usage

From source file:org.apache.camel.component.aws.sdb.AmazonSDBClientMock.java

License:Apache License

@Override
public ListDomainsResult listDomains(ListDomainsRequest listDomainsRequest)
        throws AmazonServiceException, AmazonClientException {
    this.listDomainsRequest = listDomainsRequest;

    ListDomainsResult result = new ListDomainsResult();
    result.getDomainNames().add("DOMAIN1");
    result.getDomainNames().add("DOMAIN2");
    result.setNextToken("TOKEN2");
    return result;
}