public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
CreateEgressOnlyInternetGatewayResponse response = new CreateEgressOnlyInternetGatewayResponse();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth = 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("clientToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ClientToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("egressOnlyInternetGateway", targetDepth))
{
var unmarshaller = EgressOnlyInternetGatewayUnmarshaller.Instance;
response.EgressOnlyInternetGateway = unmarshaller.Unmarshall(context);
continue;
}
}
}
return response;
}