AWSDescribeImagesOptions extends DescribeImagesOptions { public AWSDescribeImagesOptions filters(Multimap<String, String> filters) { int i = 0; for (Entry<String, Collection<String>> filter : checkNotNull(filters, "filters").asMap().entrySet()) { String filterPrefix = String.format("Filter.%s.", ++i); formParameters.put(filterPrefix + "Name", filter.getKey()); indexFormValuesWithPrefix(filterPrefix + "Value", filter.getValue()); } return this; }  @Override AWSDescribeImagesOptions executableBy(String identityId); @Override AWSDescribeImagesOptions imageIds(String... imageIds); @Override AWSDescribeImagesOptions imageIds(Iterable<String> imageIds); @Override AWSDescribeImagesOptions ownedBy(String... owners); AWSDescribeImagesOptions filters(Multimap<String, String> filters); AWSDescribeImagesOptions filters(Map<String, String> filters); static final AWSDescribeImagesOptions NONE; }
@Test public void testMapFilters() { AWSDescribeImagesOptions options = new AWSDescribeImagesOptions(); options.filters(ImmutableMap.of("is-public", "true", "architecture", "x86_64", "platform", "windows")); testMapFilters(options); }
@Test public void testMapFiltersStatic() { AWSDescribeImagesOptions options = filters(ImmutableMap.of("is-public", "true", "architecture", "x86_64", "platform", "windows")); testMapFilters(options); }
@Test public void testMultimapFilters() { AWSDescribeImagesOptions options = new AWSDescribeImagesOptions(); options.filters(ImmutableMultimap.of("is-public", "true", "architecture", "x86_64", "platform", "windows")); testMultimapFilters(options); }
@Test public void testMultimapFiltersStatic() { AWSDescribeImagesOptions options = filters(ImmutableMultimap.of("is-public", "true", "architecture", "x86_64", "platform", "windows")); testMultimapFilters(options); }