}
LaunchSpecificationResponseType launchSpec = getLaunchSpec(result);
String type = result.isPersistent()? PERSISTENT : ONE_TIME;
SpotInstanceRequestSetItemType sirsi = new SpotInstanceRequestSetItemType();
sirsi.setLaunchSpecification(launchSpec);
sirsi.setType(type);
sirsi.setSpotPrice(result.getSpotPrice().toString());
sirsi.setSpotInstanceRequestId(result.getRequestID());
sirsi.setState(result.getState().getStateStr());
sirsi.setCreateTime(result.getCreationTime());
if(instID != null){
sirsi.setInstanceId(instID);
}
return sirsi;
}