DescribeInstanceAttributeResponse response = new DescribeInstanceAttributeResponse();
DescribeInstanceAttributeResponseType param1 = new DescribeInstanceAttributeResponseType();
EC2Instance[] instanceSet = engineResponse.getInstanceSet();
if (0 < instanceSet.length) {
DescribeInstanceAttributeResponseTypeChoice_type0 param2 = new DescribeInstanceAttributeResponseTypeChoice_type0();
NullableAttributeValueType param3 = new NullableAttributeValueType();
param3.setValue(instanceSet[0].getServiceOffering());
param2.setInstanceType(param3);
param1.setDescribeInstanceAttributeResponseTypeChoice_type0(param2);
param1.setInstanceId(instanceSet[0].getId());
}
param1.setRequestId(UUID.randomUUID().toString());
response.setDescribeInstanceAttributeResponse(param1);