我正在尝试从AWS Elastic Transcoder获取所有预设,但以下代码仅返回62个中的50个
List<Preset> presets = amazonElasticTranscoder.listPresets().getPresets();
答案 0 :(得分:1)
The responses from AWS come in pages of 50. To get the next page, take the nextPageToken
from the ListPresetsResult
you got, and use it in another call:
ListPresetsRequest request = new ListPresetsRequest();
request.setPageToken(result.getNextPageToken());
amazonElasticTranscoder.listPresets(request);
There doesn't seem to be a way to find a preset by name in the Java API.