DescribeImagesOptions extends BaseEC2RequestOptions { public DescribeImagesOptions imageIds(String... imageIds) { indexFormValuesWithPrefix("ImageId", imageIds); return this; }  DescribeImagesOptions executableBy(String identityId); String getExecutableBy(); DescribeImagesOptions imageIds(String... imageIds); DescribeImagesOptions imageIds(Iterable<String> imageIds); Set<String> getImageIds(); DescribeImagesOptions ownedBy(String... owners); Set<String> getOwners(); static final DescribeImagesOptions NONE; }
@Test public void testImageIds() { DescribeImagesOptions options = new DescribeImagesOptions(); options.imageIds("test"); assertEquals(options.buildFormParameters().get("ImageId.1"), ImmutableList.of("test")); }
@Test public void testMultipleImageIds() { DescribeImagesOptions options = new DescribeImagesOptions(); options.imageIds("test", "trouble"); assertEquals(options.buildFormParameters().get("ImageId.1"), ImmutableList.of("test")); assertEquals(options.buildFormParameters().get("ImageId.2"), ImmutableList.of("trouble")); }
@Test public void testImageIdsStatic() { DescribeImagesOptions options = imageIds("test"); assertEquals(options.buildFormParameters().get("ImageId.1"), ImmutableList.of("test")); }