public IterableWithMarker<SecurityGroup> expected() { return IterableWithMarkers.from( ImmutableSet.<SecurityGroup>builder() .add( SecurityGroup.builder() .ec2SecurityGroup( EC2SecurityGroup.builder() .status("authorized") .name("myec2securitygroup") .ownerId("054794666394") .build()) .description("default") .ipRange(IPRange.builder().cidrIp("127.0.0.1/30").status("authorized").build()) .ownerId("621567473609") .name("default") .vpcId("vpc-1ab2c3d4") .build()) .add( SecurityGroup.builder() .description("My new DBSecurityGroup") .ipRange( IPRange.builder().cidrIp("192.168.1.1/24").status("authorized").build()) .ownerId("621567473609") .name("mydbsecuritygroup") .vpcId("vpc-1ab2c3d5") .build()) .add( SecurityGroup.builder() .description("My new DBSecurityGroup") .ownerId("621567473609") .name("mydbsecuritygroup4") .vpcId("vpc-1ab2c3d6") .build()) .build()); }
/** {@inheritDoc} */ @Override public IterableWithMarker<Instance> getResult() { return IterableWithMarkers.from(instances, marker); }