public static CloudFrontOriginAccessIdentitySummaryUnmarshaller GetInstance() { if (instance == null) { instance = new CloudFrontOriginAccessIdentitySummaryUnmarshaller(); } return(instance); }
public CloudFrontOriginAccessIdentityList Unmarshall(XmlUnmarshallerContext context) { CloudFrontOriginAccessIdentityList cloudFrontOriginAccessIdentityList = new CloudFrontOriginAccessIdentityList(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Marker", targetDepth)) { cloudFrontOriginAccessIdentityList.Marker = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("NextMarker", targetDepth)) { cloudFrontOriginAccessIdentityList.NextMarker = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MaxItems", targetDepth)) { cloudFrontOriginAccessIdentityList.MaxItems = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("IsTruncated", targetDepth)) { cloudFrontOriginAccessIdentityList.IsTruncated = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Quantity", targetDepth)) { cloudFrontOriginAccessIdentityList.Quantity = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Items/CloudFrontOriginAccessIdentitySummary", targetDepth)) { cloudFrontOriginAccessIdentityList.Items.Add(CloudFrontOriginAccessIdentitySummaryUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(cloudFrontOriginAccessIdentityList); } } return(cloudFrontOriginAccessIdentityList); }