/** * <p> * NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional records * that are available after the first page results. * </p> * * @param nextToken * NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional * records that are available after the first page results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListEndpointsByPlatformApplicationRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; }
String token = tokenFromPreviousRequest(); ListEndpointsByPlatformApplicationRequest request = new ListEndpointsByPlatformApplicationRequest(); request.setPlatformApplicationArn(applicationArn); request.setNextToken(token); ListEndpointsByPlatformApplicationResult result = sns.listEndpointsByPlatformApplication(request);