public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
DescribeNetworkInterfaceAttributeResponse response = new DescribeNetworkInterfaceAttributeResponse();
int targetDepth = 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("networkInterfaceId", targetDepth))
{
response.NetworkInterfaceId = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("description/value", targetDepth))
{
response.Description = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("sourceDestCheck/value", targetDepth))
{
response.SourceDestCheck = BoolUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("groupSet/item", targetDepth))
{
response.Groups.Add(GroupIdentifierUnmarshaller.GetInstance().Unmarshall(context));
continue;
}
if (context.TestExpression("attachment", targetDepth))
{
response.Attachment = NetworkInterfaceAttachmentUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
}
return response;
}