DescribeSnapshotsOptions extends BaseEC2RequestOptions { public DescribeSnapshotsOptions snapshotIds(String... snapshotIds) { indexFormValuesWithPrefix("SnapshotId", snapshotIds); return this; }  DescribeSnapshotsOptions restorableBy(String... accountIds); String getRestorableBy(); DescribeSnapshotsOptions snapshotIds(String... snapshotIds); Set<String> getSnapshotIds(); DescribeSnapshotsOptions ownedBy(String... owners); Set<String> getOwners();  }
@Test public void testSnapshotIds() { DescribeSnapshotsOptions options = new DescribeSnapshotsOptions(); options.snapshotIds("test"); assertEquals(options.buildFormParameters().get("SnapshotId.1"), ImmutableList.of("test")); }
@Test public void testMultipleSnapshotIds() { DescribeSnapshotsOptions options = new DescribeSnapshotsOptions(); options.snapshotIds("test", "trouble"); assertEquals(options.buildFormParameters().get("SnapshotId.1"), ImmutableList.of("test")); assertEquals(options.buildFormParameters().get("SnapshotId.2"), ImmutableList.of("trouble")); }
@Test public void testSnapshotIdsStatic() { DescribeSnapshotsOptions options = snapshotIds("test"); assertEquals(options.buildFormParameters().get("SnapshotId.1"), ImmutableList.of("test")); }