RequestSpotInstancesOptions extends BaseEC2RequestOptions { public RequestSpotInstancesOptions availabilityZoneGroup(String availabilityZoneGroup) { formParameters.put("AvailabilityZoneGroup", checkNotNull(availabilityZoneGroup, "availabilityZoneGroup")); return this; }  RequestSpotInstancesOptions validFrom(Date start); RequestSpotInstancesOptions validUntil(Date end); RequestSpotInstancesOptions type(SpotInstanceRequest.Type type); RequestSpotInstancesOptions launchGroup(String launchGroup); RequestSpotInstancesOptions availabilityZoneGroup(String availabilityZoneGroup); static final RequestSpotInstancesOptions NONE; }
@Test public void testAvailabilityZoneGroup() { RequestSpotInstancesOptions options = new RequestSpotInstancesOptions(); options.availabilityZoneGroup("test"); assertEquals(options.buildFormParameters().get("AvailabilityZoneGroup"), ImmutableList.of("test")); }
@Test public void testAvailabilityZoneGroupStatic() { RequestSpotInstancesOptions options = availabilityZoneGroup("test"); assertEquals(options.buildFormParameters().get("AvailabilityZoneGroup"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testAvailabilityZoneGroupNPE() { availabilityZoneGroup(null); }