public MetricsConfiguration Unmarshall(XmlUnmarshallerContext context) { MetricsConfiguration metricsConfiguration = new MetricsConfiguration(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Filter", num)) { metricsConfiguration.MetricsFilter = new MetricsFilter { MetricsFilterPredicate = MetricsPredicateListFilterUnmarshaller.Instance.Unmarshall(context)[0] }; } else if (context.TestExpression("Id", num)) { metricsConfiguration.MetricsId = StringUnmarshaller.get_Instance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(metricsConfiguration); } } return(metricsConfiguration); }
public List <AnalyticsFilterPredicate> Unmarshall(XmlUnmarshallerContext context) { List <AnalyticsFilterPredicate> list = new List <AnalyticsFilterPredicate>(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Prefix", num)) { list.Add(new AnalyticsPrefixPredicate(StringUnmarshaller.get_Instance().Unmarshall(context))); } else if (context.TestExpression("Tag", num)) { list.Add(new AnalyticsTagPredicate(TagUnmarshaller.Instance.Unmarshall(context))); } else if (context.TestExpression("And", num)) { list.Add(new AnalyticsAndOperator(Unmarshall(context))); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(list); } } return(list); }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetCallerIdentityResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Account", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); response.Account = instance.Unmarshall(context); } else if (context.TestExpression("Arn", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); response.Arn = instance2.Unmarshall(context); } else if (context.TestExpression("UserId", num)) { StringUnmarshaller instance3 = StringUnmarshaller.get_Instance(); response.UserId = instance3.Unmarshall(context); } } } }
public AssumedRoleUser Unmarshall(XmlUnmarshallerContext context) { AssumedRoleUser assumedRoleUser = new AssumedRoleUser(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Arn", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); assumedRoleUser.Arn = instance.Unmarshall(context); } else if (context.TestExpression("AssumedRoleId", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); assumedRoleUser.AssumedRoleId = instance2.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(assumedRoleUser); } } return(assumedRoleUser); }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketMetricsConfigurationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } response.MetricsConfiguration = new MetricsConfiguration(); while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Filter", num)) { response.MetricsConfiguration.MetricsFilter = new MetricsFilter { MetricsFilterPredicate = MetricsPredicateListFilterUnmarshaller.Instance.Unmarshall(context)[0] }; } else if (context.TestExpression("Id", num)) { response.MetricsConfiguration.MetricsId = StringUnmarshaller.get_Instance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
private static void UnmarshallResult(XmlUnmarshallerContext context, AssumeRoleWithSAMLResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("AssumedRoleUser", num)) { AssumedRoleUserUnmarshaller instance = AssumedRoleUserUnmarshaller.Instance; response.AssumedRoleUser = instance.Unmarshall(context); } else if (context.TestExpression("Audience", num)) { StringUnmarshaller instance2 = StringUnmarshaller.get_Instance(); response.Audience = instance2.Unmarshall(context); } else if (context.TestExpression("Credentials", num)) { CredentialsUnmarshaller instance3 = CredentialsUnmarshaller.Instance; response.Credentials = instance3.Unmarshall(context); } else if (context.TestExpression("Issuer", num)) { StringUnmarshaller instance4 = StringUnmarshaller.get_Instance(); response.Issuer = instance4.Unmarshall(context); } else if (context.TestExpression("NameQualifier", num)) { StringUnmarshaller instance5 = StringUnmarshaller.get_Instance(); response.NameQualifier = instance5.Unmarshall(context); } else if (context.TestExpression("PackedPolicySize", num)) { IntUnmarshaller instance6 = IntUnmarshaller.get_Instance(); response.PackedPolicySize = instance6.Unmarshall(context); } else if (context.TestExpression("Subject", num)) { StringUnmarshaller instance7 = StringUnmarshaller.get_Instance(); response.Subject = instance7.Unmarshall(context); } else if (context.TestExpression("SubjectType", num)) { StringUnmarshaller instance8 = StringUnmarshaller.get_Instance(); response.SubjectType = instance8.Unmarshall(context); } } } }
public InventoryConfiguration Unmarshall(XmlUnmarshallerContext context) { InventoryConfiguration inventoryConfiguration = new InventoryConfiguration(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Destination", num)) { inventoryConfiguration.Destination = InventoryDestinationUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("IsEnabled", num)) { inventoryConfiguration.IsEnabled = BoolUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Filter", num)) { inventoryConfiguration.InventoryFilter = InventoryFilterUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("Id", num)) { inventoryConfiguration.InventoryId = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("IncludedObjectVersions", num)) { inventoryConfiguration.IncludedObjectVersions = InventoryIncludedObjectVersions.FindValue(StringUnmarshaller.get_Instance().Unmarshall(context)); } else if (context.TestExpression("Field", num + 1)) { inventoryConfiguration.InventoryOptionalFields.Add(InventoryOptionalField.FindValue(StringUnmarshaller.get_Instance().Unmarshall(context))); } else if (context.TestExpression("Schedule", num)) { inventoryConfiguration.Schedule = InventoryScheduleUnmarshaller.Instance.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(inventoryConfiguration); } } return(inventoryConfiguration); }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketInventoryConfigurationResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } response.InventoryConfiguration = new InventoryConfiguration(); while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Destination", num)) { response.InventoryConfiguration.Destination = InventoryDestinationUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("IsEnabled", num)) { response.InventoryConfiguration.IsEnabled = BoolUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Filter", num)) { response.InventoryConfiguration.InventoryFilter = InventoryFilterUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("Id", num)) { response.InventoryConfiguration.InventoryId = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("IncludedObjectVersions", num)) { response.InventoryConfiguration.IncludedObjectVersions = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Field", num + 1)) { response.InventoryConfiguration.InventoryOptionalFields.Add(StringUnmarshaller.get_Instance().Unmarshall(context)); } else if (context.TestExpression("Schedule", num)) { response.InventoryConfiguration.Schedule = InventoryScheduleUnmarshaller.Instance.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
public List <LifecycleFilterPredicate> Unmarshall(XmlUnmarshallerContext context) { List <LifecycleFilterPredicate> list = new List <LifecycleFilterPredicate>(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Prefix", num)) { string prefix = StringUnmarshaller.get_Instance().Unmarshall(context); list.Add(new LifecyclePrefixPredicate { Prefix = prefix }); } if (context.TestExpression("Tag", num)) { Tag tag = TagUnmarshaller.Instance.Unmarshall(context); list.Add(new LifecycleTagPredicate { Tag = tag }); } if (context.TestExpression("And", num)) { list.Add(new LifecycleAndOperator { Operands = Unmarshall(context) }); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(list); } } return(list); }
private static void UnmarshallResult(XmlUnmarshallerContext context, DecodeAuthorizationMessageResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if ((context.get_IsStartElement() || context.get_IsAttribute()) && context.TestExpression("DecodedMessage", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); response.DecodedMessage = instance.Unmarshall(context); } } }
public Credentials Unmarshall(XmlUnmarshallerContext context) { Credentials credentials = new Credentials(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.ReadAtDepth(currentDepth)) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("AccessKeyId", num)) { StringUnmarshaller instance = StringUnmarshaller.get_Instance(); credentials.AccessKeyId = instance.Unmarshall(context); } else if (context.TestExpression("Expiration", num)) { DateTimeUnmarshaller instance2 = DateTimeUnmarshaller.get_Instance(); credentials.Expiration = instance2.Unmarshall(context); } else if (context.TestExpression("SecretAccessKey", num)) { StringUnmarshaller instance3 = StringUnmarshaller.get_Instance(); credentials.SecretAccessKey = instance3.Unmarshall(context); } else if (context.TestExpression("SessionToken", num)) { StringUnmarshaller instance4 = StringUnmarshaller.get_Instance(); credentials.SessionToken = instance4.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(credentials); } } return(credentials); }
public AnalyticsS3BucketDestination Unmarshall(XmlUnmarshallerContext context) { AnalyticsS3BucketDestination analyticsS3BucketDestination = new AnalyticsS3BucketDestination(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Format", num)) { analyticsS3BucketDestination.Format = ConstantClass.op_Implicit(AnalyticsS3ExportFileFormat.FindValue(StringUnmarshaller.get_Instance().Unmarshall(context))); } else if (context.TestExpression("BucketAccountId", num)) { analyticsS3BucketDestination.BucketAccountId = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Bucket", num)) { analyticsS3BucketDestination.BucketName = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Prefix", num)) { analyticsS3BucketDestination.Prefix = StringUnmarshaller.get_Instance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(analyticsS3BucketDestination); } } return(analyticsS3BucketDestination); }
private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketWebsiteResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } response.WebsiteConfiguration = new WebsiteConfiguration(); while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("RedirectAllRequestsTo", num)) { response.WebsiteConfiguration.RedirectAllRequestsTo = RoutingRuleRedirectUnmarshaller.Instance.Unmarshall(context); } else if (context.TestExpression("IndexDocument/Suffix", num)) { response.WebsiteConfiguration.IndexDocumentSuffix = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("ErrorDocument/Key", num)) { response.WebsiteConfiguration.ErrorDocument = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("RoutingRule", num + 1)) { response.WebsiteConfiguration.RoutingRules.Add(RoutingRuleUnmarshaller.Instance.Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
public AnalyticsConfiguration Unmarshall(XmlUnmarshallerContext context) { AnalyticsConfiguration analyticsConfiguration = new AnalyticsConfiguration(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Id", num)) { analyticsConfiguration.AnalyticsId = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("Filter", num)) { analyticsConfiguration.AnalyticsFilter = new AnalyticsFilter { AnalyticsFilterPredicate = AnalyticsPredicateListUnmarshaller.Instance.Unmarshall(context)[0] }; } else if (context.TestExpression("StorageClassAnalysis", num)) { analyticsConfiguration.StorageClassAnalysis = StorageClassAnalysisUnmarshaller.Instance.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(analyticsConfiguration); } } return(analyticsConfiguration); }
private static void UnmarshallResult(XmlUnmarshallerContext context, ListBucketInventoryConfigurationsResponse response) { int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("ContinuationToken", num)) { response.Token = StringUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("InventoryConfiguration", num)) { response.InventoryConfigurationList.Add(InventoryConfigurationUnmarshaller.Instance.Unmarshall(context)); } else if (context.TestExpression("IsTruncated", num)) { response.IsTruncated = BoolUnmarshaller.get_Instance().Unmarshall(context); } else if (context.TestExpression("NextContinuationToken", num)) { response.NextToken = StringUnmarshaller.get_Instance().Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { break; } } }
public StorageClassAnalysisDataExport Unmarshall(XmlUnmarshallerContext context) { StorageClassAnalysisDataExport storageClassAnalysisDataExport = new StorageClassAnalysisDataExport(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("OutputSchemaVersion", num)) { storageClassAnalysisDataExport.OutputSchemaVersion = StorageClassAnalysisSchemaVersion.FindValue(StringUnmarshaller.get_Instance().Unmarshall(context)); } else if (context.TestExpression("Destination", num)) { storageClassAnalysisDataExport.Destination = AnalyticsExportDestinationUnmarshaller.Instance.Unmarshall(context); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(storageClassAnalysisDataExport); } } return(storageClassAnalysisDataExport); }
public InventoryFilter Unmarshall(XmlUnmarshallerContext context) { InventoryFilter inventoryFilter = new InventoryFilter(); int currentDepth = context.get_CurrentDepth(); int num = currentDepth + 1; if (context.get_IsStartOfDocument()) { num += 2; } while (context.Read()) { if (context.get_IsStartElement() || context.get_IsAttribute()) { if (context.TestExpression("Prefix", num)) { inventoryFilter.InventoryFilterPredicate = new InventoryPrefixPredicate(StringUnmarshaller.get_Instance().Unmarshall(context)); } } else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth) { return(inventoryFilter); } } return(inventoryFilter); }