public static InstanceStateChangeUnmarshaller GetInstance() { if (instance == null) { instance = new InstanceStateChangeUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { StopInstancesResponse response = new StopInstancesResponse(); int targetDepth = 2; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("instancesSet/item", targetDepth)) { response.StoppingInstances.Add(InstanceStateChangeUnmarshaller.GetInstance().Unmarshall(context)); continue; } } } return(response); }