If you have xml (for example, directly using the AWS rest API), you can use classes com.amazonaws.services.ec2.model.transform.*to convert xml to java objects. Unfortunately, it provides only the classes necessary for the SDK itself. Thus, for example, you can convert raw XML to an instance using InstanceStaxUnmarshaller, but you cannot convert an instance to XML if you do not write such a converter.
Here is an example of how to parse an XML instance:
XMLEventReader eventReader = XMLInputFactory.newInstance().createXMLEventReader(new StringReader(instanceXml));
StaxUnmarshallerContext suc = new StaxUnmarshallerContext(eventReader, new TreeMap<>());
InstanceStaxUnmarshaller isu = new InstanceStaxUnmarshaller();
Instance i = isu.unmarshall(suc);
System.out.println(i.toString());
, AWS-, XML, SDK . , .