public static CreateInstanceProfileResultUnmarshaller GetInstance() { if (instance == null) { instance = new CreateInstanceProfileResultUnmarshaller(); } return(instance); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateInstanceProfileResponse response = new CreateInstanceProfileResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("CreateInstanceProfileResult", 2)) { response.CreateInstanceProfileResult = CreateInstanceProfileResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }