CreateImageOptions extends BaseEC2RequestOptions { public CreateImageOptions noReboot() { formParameters.put("NoReboot", "true"); return this; }  CreateImageOptions withDescription(String description); String getDescription(); CreateImageOptions noReboot(); boolean getNoReboot(); static final CreateImageOptions NONE; }
@Test public void testNoReboot() { CreateImageOptions options = new CreateImageOptions(); options.noReboot(); assertEquals(options.buildFormParameters().get("NoReboot"), ImmutableList.of("true")); }
@Test public void testNoRebootStatic() { CreateImageOptions options = noReboot(); assertEquals(options.buildFormParameters().get("NoReboot"), ImmutableList.of("true")); }