return toDisassociateAddressResponse( engine.disassociateAddress( request ) );
}
public DescribeSecurityGroupsResponse describeSecurityGroups(DescribeSecurityGroups describeSecurityGroups)
{
EC2DescribeSecurityGroups request = new EC2DescribeSecurityGroups();
DescribeSecurityGroupsType sgt = describeSecurityGroups.getDescribeSecurityGroups();
FilterSetType fst = sgt.getFilterSet();
// -> toEC2DescribeSecurityGroups
DescribeSecurityGroupsSetType sgst = sgt.getSecurityGroupSet();
DescribeSecurityGroupsSetItemType[] items = sgst.getItem();
if (null != items) { // -> can be empty
for (DescribeSecurityGroupsSetItemType item :items) request.addGroupName(item.getGroupName());
}
if (null != fst) {
request.setFilterSet( toGroupFilterSet( fst ));
}
return toDescribeSecurityGroupsResponse( engine.describeSecurityGroups( request ));
}