public static DescribeImageSupportInstanceTypesResponse Unmarshall(UnmarshallerContext context) { DescribeImageSupportInstanceTypesResponse describeImageSupportInstanceTypesResponse = new DescribeImageSupportInstanceTypesResponse(); describeImageSupportInstanceTypesResponse.HttpResponse = context.HttpResponse; describeImageSupportInstanceTypesResponse.RequestId = context.StringValue("DescribeImageSupportInstanceTypes.RequestId"); describeImageSupportInstanceTypesResponse.RegionId = context.StringValue("DescribeImageSupportInstanceTypes.RegionId"); describeImageSupportInstanceTypesResponse.ImageId = context.StringValue("DescribeImageSupportInstanceTypes.ImageId"); List<DescribeImageSupportInstanceTypesResponse.InstanceType> instanceTypes = new List<DescribeImageSupportInstanceTypesResponse.InstanceType>(); for (int i = 0; i < context.Length("DescribeImageSupportInstanceTypes.InstanceTypes.Length"); i++) { DescribeImageSupportInstanceTypesResponse.InstanceType instanceType = new DescribeImageSupportInstanceTypesResponse.InstanceType(); instanceType.InstanceTypeId = context.StringValue("DescribeImageSupportInstanceTypes.InstanceTypes["+ i +"].InstanceTypeId"); instanceType.CpuCoreCount = context.IntegerValue("DescribeImageSupportInstanceTypes.InstanceTypes["+ i +"].CpuCoreCount"); instanceType.MemorySize = context.FloatValue("DescribeImageSupportInstanceTypes.InstanceTypes["+ i +"].MemorySize"); instanceType.InstanceTypeFamily = context.StringValue("DescribeImageSupportInstanceTypes.InstanceTypes["+ i +"].InstanceTypeFamily"); instanceTypes.Add(instanceType); } describeImageSupportInstanceTypesResponse.InstanceTypes = instanceTypes; return describeImageSupportInstanceTypesResponse; }