public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
AssociateVpcCidrBlockResponse response = new AssociateVpcCidrBlockResponse();
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("ipv6CidrBlockAssociation", targetDepth))
{
var unmarshaller = VpcIpv6CidrBlockAssociationUnmarshaller.Instance;
response.Ipv6CidrBlockAssociation = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("vpcId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.VpcId = unmarshaller.Unmarshall(context);
continue;
}
}
}
return response;
}