public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
DescribeVpcAttributeResponse response = new DescribeVpcAttributeResponse();
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("enableDnsHostnames/value", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.EnableDnsHostnames = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("enableDnsSupport/value", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.EnableDnsSupport = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("vpcId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.VpcId = unmarshaller.Unmarshall(context);
continue;
}
}
}
return response;
}