public BatchWriteResponse Unmarshall(JsonUnmarshallerContext context) { BatchWriteResponse batchWriteResponse = new BatchWriteResponse(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("ConsumedCapacityUnits", targetDepth)) { batchWriteResponse.ConsumedCapacityUnits = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(batchWriteResponse); } } return(batchWriteResponse); }
public ConsumedCapacity Unmarshall(JsonUnmarshallerContext context) { ConsumedCapacity consumedCapacity = new ConsumedCapacity(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("TableName", targetDepth)) { consumedCapacity.TableName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CapacityUnits", targetDepth)) { consumedCapacity.CapacityUnits = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(consumedCapacity); } } return(consumedCapacity); }
public ItemCollectionMetrics Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } ItemCollectionMetrics itemCollectionMetrics = new ItemCollectionMetrics(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ItemCollectionKey", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <String, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>( StringUnmarshaller.GetInstance(), AttributeValueUnmarshaller.GetInstance()); itemCollectionMetrics.ItemCollectionKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SizeEstimateRangeGB", targetDepth)) { var unmarshaller = new ListUnmarshaller <Double, DoubleUnmarshaller>( DoubleUnmarshaller.GetInstance()); itemCollectionMetrics.SizeEstimateRangeGB = unmarshaller.Unmarshall(context); continue; } } return(itemCollectionMetrics); }
public TrustedAdvisorCostOptimizingSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } TrustedAdvisorCostOptimizingSummary trustedAdvisorCostOptimizingSummary = new TrustedAdvisorCostOptimizingSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("estimatedMonthlySavings", targetDepth)) { trustedAdvisorCostOptimizingSummary.EstimatedMonthlySavings = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("estimatedPercentMonthlySavings", targetDepth)) { trustedAdvisorCostOptimizingSummary.EstimatedPercentMonthlySavings = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(trustedAdvisorCostOptimizingSummary); }
public Capacity Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonToken.Null) { return(null); } Capacity capacity = new Capacity(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("CapacityUnits", targetDepth)) { context.Read(); capacity.CapacityUnits = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return(capacity); } } return(capacity); }
public AutoScalingThresholds Unmarshall(JsonUnmarshallerContext context) { AutoScalingThresholds autoScalingThresholds = new AutoScalingThresholds(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("InstanceCount", targetDepth)) { autoScalingThresholds.InstanceCount = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ThresholdsWaitTime", targetDepth)) { autoScalingThresholds.ThresholdsWaitTime = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("IgnoreMetricsTime", targetDepth)) { autoScalingThresholds.IgnoreMetricsTime = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CpuThreshold", targetDepth)) { autoScalingThresholds.CpuThreshold = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MemoryThreshold", targetDepth)) { autoScalingThresholds.MemoryThreshold = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LoadThreshold", targetDepth)) { autoScalingThresholds.LoadThreshold = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(autoScalingThresholds); } } return(autoScalingThresholds); }
public QueryResult Unmarshall(JsonUnmarshallerContext context) { QueryResult queryResult = new QueryResult(); queryResult.Items = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Items", targetDepth)) { queryResult.Items = new List <Dictionary <string, AttributeValue> >(); DictionaryUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller> unmarshaller = new DictionaryUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.GetInstance(), AttributeValueUnmarshaller.GetInstance()); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { queryResult.Items.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("Count", targetDepth)) { queryResult.Count = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LastEvaluatedKey", targetDepth)) { queryResult.LastEvaluatedKey = KeyUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ConsumedCapacityUnits", targetDepth)) { queryResult.ConsumedCapacityUnits = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(queryResult); } } return(queryResult); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeCacheResponse response = new DescribeCacheResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GatewayARN", targetDepth)) { response.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DiskIds", targetDepth)) { var unmarshaller = new ListUnmarshaller <String, StringUnmarshaller>( StringUnmarshaller.GetInstance()); response.DiskIds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CacheAllocatedInBytes", targetDepth)) { response.CacheAllocatedInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheUsedPercentage", targetDepth)) { response.CacheUsedPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheDirtyPercentage", targetDepth)) { response.CacheDirtyPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheHitPercentage", targetDepth)) { response.CacheHitPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheMissPercentage", targetDepth)) { response.CacheMissPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(response); }
public DoubleArrayOptions Unmarshall(XmlUnmarshallerContext context) { DoubleArrayOptions doubleArrayOptions = new DoubleArrayOptions(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DefaultValue", targetDepth)) { doubleArrayOptions.DefaultValue = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SourceFields", targetDepth)) { doubleArrayOptions.SourceFields = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("FacetEnabled", targetDepth)) { doubleArrayOptions.FacetEnabled = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SearchEnabled", targetDepth)) { doubleArrayOptions.SearchEnabled = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ReturnEnabled", targetDepth)) { doubleArrayOptions.ReturnEnabled = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(doubleArrayOptions); } } return(doubleArrayOptions); }
public AutoScalingThresholds Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } AutoScalingThresholds autoScalingThresholds = new AutoScalingThresholds(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("InstanceCount", targetDepth)) { autoScalingThresholds.InstanceCount = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ThresholdsWaitTime", targetDepth)) { autoScalingThresholds.ThresholdsWaitTime = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("IgnoreMetricsTime", targetDepth)) { autoScalingThresholds.IgnoreMetricsTime = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CpuThreshold", targetDepth)) { autoScalingThresholds.CpuThreshold = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MemoryThreshold", targetDepth)) { autoScalingThresholds.MemoryThreshold = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LoadThreshold", targetDepth)) { autoScalingThresholds.LoadThreshold = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(autoScalingThresholds); }
public Tape Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } Tape tape = new Tape(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("TapeARN", targetDepth)) { tape.TapeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TapeBarcode", targetDepth)) { tape.TapeBarcode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TapeSizeInBytes", targetDepth)) { tape.TapeSizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TapeStatus", targetDepth)) { tape.TapeStatus = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VTLDevice", targetDepth)) { tape.VTLDevice = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Progress", targetDepth)) { tape.Progress = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(tape); }
public ConsumedCapacity Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } ConsumedCapacity consumedCapacity = new ConsumedCapacity(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("TableName", targetDepth)) { consumedCapacity.TableName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CapacityUnits", targetDepth)) { consumedCapacity.CapacityUnits = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Table", targetDepth)) { consumedCapacity.Table = CapacityUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LocalSecondaryIndexes", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <String, Capacity, StringUnmarshaller, CapacityUnmarshaller>( StringUnmarshaller.GetInstance(), CapacityUnmarshaller.GetInstance()); consumedCapacity.LocalSecondaryIndexes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GlobalSecondaryIndexes", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <String, Capacity, StringUnmarshaller, CapacityUnmarshaller>( StringUnmarshaller.GetInstance(), CapacityUnmarshaller.GetInstance()); consumedCapacity.GlobalSecondaryIndexes = unmarshaller.Unmarshall(context); continue; } } return(consumedCapacity); }
public GetItemResult Unmarshall(JsonUnmarshallerContext context) { GetItemResult getItemResult = new GetItemResult(); getItemResult.Item = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Item", targetDepth)) { getItemResult.Item = new Dictionary <String, AttributeValue>(); KeyValueUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller> unmarshaller = new KeyValueUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.GetInstance(), AttributeValueUnmarshaller.GetInstance()); while (context.Read()) { if (((context.IsStartArray || context.IsStartElement || context.IsLeafValue) && (context.CurrentDepth == targetDepth)) || ((context.IsKey) && (context.CurrentDepth == targetDepth + 1))) { KeyValuePair <string, AttributeValue> kvp = unmarshaller.Unmarshall(context); getItemResult.Item.Add(kvp.Key, kvp.Value); } else if (context.IsEndElement) { break; } } continue; } if (context.TestExpression("ConsumedCapacityUnits", targetDepth)) { getItemResult.ConsumedCapacityUnits = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(getItemResult); } } return(getItemResult); }
public PriceSchedule Unmarshall(XmlUnmarshallerContext context) { PriceSchedule priceSchedule = new PriceSchedule(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("term", targetDepth)) { priceSchedule.Term = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("price", targetDepth)) { priceSchedule.Price = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("currencyCode", targetDepth)) { priceSchedule.CurrencyCode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("active", targetDepth)) { priceSchedule.Active = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(priceSchedule); } } return(priceSchedule); }
public BatchResponse Unmarshall(JsonUnmarshallerContext context) { BatchResponse batchResponse = new BatchResponse(); batchResponse.Items = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Items", targetDepth)) { batchResponse.Items = new List <Dictionary <string, AttributeValue> >(); DictionaryUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller> unmarshaller = new DictionaryUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.GetInstance(), AttributeValueUnmarshaller.GetInstance()); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { batchResponse.Items.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("ConsumedCapacityUnits", targetDepth)) { batchResponse.ConsumedCapacityUnits = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(batchResponse); } } return(batchResponse); }
public GetSendQuotaResult Unmarshall(XmlUnmarshallerContext context) { GetSendQuotaResult getSendQuotaResult = new GetSendQuotaResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Max24HourSend", targetDepth)) { getSendQuotaResult.Max24HourSend = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MaxSendRate", targetDepth)) { getSendQuotaResult.MaxSendRate = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SentLast24Hours", targetDepth)) { getSendQuotaResult.SentLast24Hours = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(getSendQuotaResult); } } return(getSendQuotaResult); }
public RecurringCharge Unmarshall(XmlUnmarshallerContext context) { RecurringCharge recurringCharge = new RecurringCharge(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } if (context.IsStartOfDocument) { targetDepth++; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("RecurringChargeAmount", targetDepth)) { recurringCharge.RecurringChargeAmount = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RecurringChargeFrequency", targetDepth)) { recurringCharge.RecurringChargeFrequency = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(recurringCharge); } } return(recurringCharge); }
public PricingDetail Unmarshall(XmlUnmarshallerContext context) { PricingDetail pricingDetail = new PricingDetail(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 1; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("price", targetDepth)) { pricingDetail.Price = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("count", targetDepth)) { pricingDetail.Count = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(pricingDetail); } } return(pricingDetail); }
public StorediSCSIVolume Unmarshall(JsonUnmarshallerContext context) { StorediSCSIVolume storediSCSIVolume = new StorediSCSIVolume(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("VolumeARN", targetDepth)) { storediSCSIVolume.VolumeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeId", targetDepth)) { storediSCSIVolume.VolumeId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeType", targetDepth)) { storediSCSIVolume.VolumeType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeStatus", targetDepth)) { storediSCSIVolume.VolumeStatus = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeSizeInBytes", targetDepth)) { storediSCSIVolume.VolumeSizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeProgress", targetDepth)) { storediSCSIVolume.VolumeProgress = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeDiskId", targetDepth)) { storediSCSIVolume.VolumeDiskId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SourceSnapshotId", targetDepth)) { storediSCSIVolume.SourceSnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("PreservedExistingData", targetDepth)) { storediSCSIVolume.PreservedExistingData = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeiSCSIAttributes", targetDepth)) { storediSCSIVolume.VolumeiSCSIAttributes = VolumeiSCSIAttributesUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(storediSCSIVolume); } } return(storediSCSIVolume); }
public MetricAlarm Unmarshall(XmlUnmarshallerContext context) { MetricAlarm metricAlarm = new MetricAlarm(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("AlarmName", targetDepth)) { metricAlarm.AlarmName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("AlarmArn", targetDepth)) { metricAlarm.AlarmArn = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("AlarmDescription", targetDepth)) { metricAlarm.AlarmDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("AlarmConfigurationUpdatedTimestamp", targetDepth)) { metricAlarm.AlarmConfigurationUpdatedTimestamp = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ActionsEnabled", targetDepth)) { metricAlarm.ActionsEnabled = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("OKActions/member", targetDepth)) { metricAlarm.OKActions.Add(StringUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("AlarmActions/member", targetDepth)) { metricAlarm.AlarmActions.Add(StringUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("InsufficientDataActions/member", targetDepth)) { metricAlarm.InsufficientDataActions.Add(StringUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("StateValue", targetDepth)) { metricAlarm.StateValue = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StateReason", targetDepth)) { metricAlarm.StateReason = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StateReasonData", targetDepth)) { metricAlarm.StateReasonData = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StateUpdatedTimestamp", targetDepth)) { metricAlarm.StateUpdatedTimestamp = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MetricName", targetDepth)) { metricAlarm.MetricName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Namespace", targetDepth)) { metricAlarm.Namespace = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Statistic", targetDepth)) { metricAlarm.Statistic = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Dimensions/member", targetDepth)) { metricAlarm.Dimensions.Add(DimensionUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("Period", targetDepth)) { metricAlarm.Period = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Unit", targetDepth)) { metricAlarm.Unit = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("EvaluationPeriods", targetDepth)) { metricAlarm.EvaluationPeriods = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Threshold", targetDepth)) { metricAlarm.Threshold = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ComparisonOperator", targetDepth)) { metricAlarm.ComparisonOperator = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(metricAlarm); } } return(metricAlarm); }
public ReservedDBInstancesOffering Unmarshall(UnmarshallerContext context) { ReservedDBInstancesOffering reservedDBInstancesOffering = new ReservedDBInstancesOffering(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } if (context.IsStartOfDocument) { targetDepth++; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ReservedDBInstancesOfferingId", targetDepth)) { reservedDBInstancesOffering.ReservedDBInstancesOfferingId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DBInstanceClass", targetDepth)) { reservedDBInstancesOffering.DBInstanceClass = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Duration", targetDepth)) { reservedDBInstancesOffering.Duration = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("FixedPrice", targetDepth)) { reservedDBInstancesOffering.FixedPrice = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("UsagePrice", targetDepth)) { reservedDBInstancesOffering.UsagePrice = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CurrencyCode", targetDepth)) { reservedDBInstancesOffering.CurrencyCode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ProductDescription", targetDepth)) { reservedDBInstancesOffering.ProductDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MultiAZ", targetDepth)) { reservedDBInstancesOffering.MultiAZ = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(reservedDBInstancesOffering); } } return(reservedDBInstancesOffering); }
public DescribeCacheResult Unmarshall(JsonUnmarshallerContext context) { DescribeCacheResult describeCacheResult = new DescribeCacheResult(); describeCacheResult.DiskIds = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("GatewayARN", targetDepth)) { describeCacheResult.GatewayARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DiskIds", targetDepth)) { describeCacheResult.DiskIds = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { describeCacheResult.DiskIds.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("CacheAllocatedInBytes", targetDepth)) { describeCacheResult.CacheAllocatedInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheUsedPercentage", targetDepth)) { describeCacheResult.CacheUsedPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheDirtyPercentage", targetDepth)) { describeCacheResult.CacheDirtyPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheHitPercentage", targetDepth)) { describeCacheResult.CacheHitPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheMissPercentage", targetDepth)) { describeCacheResult.CacheMissPercentage = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(describeCacheResult); } } return(describeCacheResult); }
public RestoreStatus Unmarshall(XmlUnmarshallerContext context) { RestoreStatus restoreStatus = new RestoreStatus(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Status", targetDepth)) { restoreStatus.Status = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CurrentRestoreRateInMegaBytesPerSecond", targetDepth)) { restoreStatus.CurrentRestoreRateInMegaBytesPerSecond = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SnapshotSizeInMegaBytes", targetDepth)) { restoreStatus.SnapshotSizeInMegaBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ProgressInMegaBytes", targetDepth)) { restoreStatus.ProgressInMegaBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ElapsedTimeInSeconds", targetDepth)) { restoreStatus.ElapsedTimeInSeconds = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("EstimatedTimeToCompletionInSeconds", targetDepth)) { restoreStatus.EstimatedTimeToCompletionInSeconds = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(restoreStatus); } } return(restoreStatus); }
public ReservedCacheNodesOffering Unmarshall(XmlUnmarshallerContext context) { ReservedCacheNodesOffering reservedCacheNodesOffering = new ReservedCacheNodesOffering(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } if (context.IsStartOfDocument) { targetDepth++; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ReservedCacheNodesOfferingId", targetDepth)) { reservedCacheNodesOffering.ReservedCacheNodesOfferingId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CacheNodeType", targetDepth)) { reservedCacheNodesOffering.CacheNodeType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Duration", targetDepth)) { reservedCacheNodesOffering.Duration = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("FixedPrice", targetDepth)) { reservedCacheNodesOffering.FixedPrice = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("UsagePrice", targetDepth)) { reservedCacheNodesOffering.UsagePrice = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ProductDescription", targetDepth)) { reservedCacheNodesOffering.ProductDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("OfferingType", targetDepth)) { reservedCacheNodesOffering.OfferingType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RecurringCharges/RecurringCharge", targetDepth)) { reservedCacheNodesOffering.RecurringCharges.Add(RecurringChargeUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(reservedCacheNodesOffering); } } return(reservedCacheNodesOffering); }
public Snapshot Unmarshall(XmlUnmarshallerContext context) { Snapshot snapshot = new Snapshot(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } if (context.IsStartOfDocument) { targetDepth++; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("SnapshotIdentifier", targetDepth)) { snapshot.SnapshotIdentifier = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ClusterIdentifier", targetDepth)) { snapshot.ClusterIdentifier = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SnapshotCreateTime", targetDepth)) { snapshot.SnapshotCreateTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { snapshot.Status = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Port", targetDepth)) { snapshot.Port = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("AvailabilityZone", targetDepth)) { snapshot.AvailabilityZone = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ClusterCreateTime", targetDepth)) { snapshot.ClusterCreateTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MasterUsername", targetDepth)) { snapshot.MasterUsername = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ClusterVersion", targetDepth)) { snapshot.ClusterVersion = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SnapshotType", targetDepth)) { snapshot.SnapshotType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("NodeType", targetDepth)) { snapshot.NodeType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("NumberOfNodes", targetDepth)) { snapshot.NumberOfNodes = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DBName", targetDepth)) { snapshot.DBName = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VpcId", targetDepth)) { snapshot.VpcId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Encrypted", targetDepth)) { snapshot.Encrypted = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("EncryptedWithHSM", targetDepth)) { snapshot.EncryptedWithHSM = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("AccountsWithRestoreAccess/AccountWithRestoreAccess", targetDepth)) { snapshot.AccountsWithRestoreAccess.Add(AccountWithRestoreAccessUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("OwnerAccount", targetDepth)) { snapshot.OwnerAccount = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TotalBackupSizeInMegaBytes", targetDepth)) { snapshot.TotalBackupSizeInMegaBytes = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ActualIncrementalBackupSizeInMegaBytes", targetDepth)) { snapshot.ActualIncrementalBackupSizeInMegaBytes = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("BackupProgressInMegaBytes", targetDepth)) { snapshot.BackupProgressInMegaBytes = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CurrentBackupRateInMegaBytesPerSecond", targetDepth)) { snapshot.CurrentBackupRateInMegaBytesPerSecond = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("EstimatedSecondsToCompletion", targetDepth)) { snapshot.EstimatedSecondsToCompletion = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ElapsedTimeInSeconds", targetDepth)) { snapshot.ElapsedTimeInSeconds = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SourceRegion", targetDepth)) { snapshot.SourceRegion = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(snapshot); } } return(snapshot); }
public ReservedDBInstance Unmarshall(XmlUnmarshallerContext context) { ReservedDBInstance reservedDBInstance = new ReservedDBInstance(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } if (context.IsStartOfDocument) { targetDepth++; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("ReservedDBInstanceId", targetDepth)) { reservedDBInstance.ReservedDBInstanceId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ReservedDBInstancesOfferingId", targetDepth)) { reservedDBInstance.ReservedDBInstancesOfferingId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DBInstanceClass", targetDepth)) { reservedDBInstance.DBInstanceClass = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StartTime", targetDepth)) { reservedDBInstance.StartTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Duration", targetDepth)) { reservedDBInstance.Duration = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("FixedPrice", targetDepth)) { reservedDBInstance.FixedPrice = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("UsagePrice", targetDepth)) { reservedDBInstance.UsagePrice = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CurrencyCode", targetDepth)) { reservedDBInstance.CurrencyCode = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DBInstanceCount", targetDepth)) { reservedDBInstance.DBInstanceCount = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ProductDescription", targetDepth)) { reservedDBInstance.ProductDescription = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("OfferingType", targetDepth)) { reservedDBInstance.OfferingType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MultiAZ", targetDepth)) { reservedDBInstance.MultiAZ = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { reservedDBInstance.State = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("RecurringCharges/RecurringCharge", targetDepth)) { reservedDBInstance.RecurringCharges.Add(RecurringChargeUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(reservedDBInstance); } } return(reservedDBInstance); }
public Datapoint Unmarshall(XmlUnmarshallerContext context) { Datapoint datapoint = new Datapoint(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Timestamp", targetDepth)) { datapoint.Timestamp = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SampleCount", targetDepth)) { datapoint.SampleCount = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Average", targetDepth)) { datapoint.Average = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Sum", targetDepth)) { datapoint.Sum = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Minimum", targetDepth)) { datapoint.Minimum = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Maximum", targetDepth)) { datapoint.Maximum = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Unit", targetDepth)) { datapoint.Unit = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(datapoint); } } return(datapoint); }
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeResizeResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("TargetNodeType", targetDepth)) { response.TargetNodeType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TargetNumberOfNodes", targetDepth)) { response.TargetNumberOfNodes = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TargetClusterType", targetDepth)) { response.TargetClusterType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { response.Status = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ImportTablesCompleted/member", targetDepth)) { response.ImportTablesCompleted.Add(StringUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("ImportTablesInProgress/member", targetDepth)) { response.ImportTablesInProgress.Add(StringUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("ImportTablesNotStarted/member", targetDepth)) { response.ImportTablesNotStarted.Add(StringUnmarshaller.GetInstance().Unmarshall(context)); continue; } if (context.TestExpression("AvgResizeRateInMegaBytesPerSecond", targetDepth)) { response.AvgResizeRateInMegaBytesPerSecond = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TotalResizeDataInMegaBytes", targetDepth)) { response.TotalResizeDataInMegaBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ProgressInMegaBytes", targetDepth)) { response.ProgressInMegaBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ElapsedTimeInSeconds", targetDepth)) { response.ElapsedTimeInSeconds = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("EstimatedTimeToCompletionInSeconds", targetDepth)) { response.EstimatedTimeToCompletionInSeconds = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } return; }
public CachediSCSIVolume Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } CachediSCSIVolume cachediSCSIVolume = new CachediSCSIVolume(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VolumeARN", targetDepth)) { cachediSCSIVolume.VolumeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeId", targetDepth)) { cachediSCSIVolume.VolumeId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeType", targetDepth)) { cachediSCSIVolume.VolumeType = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeStatus", targetDepth)) { cachediSCSIVolume.VolumeStatus = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeSizeInBytes", targetDepth)) { cachediSCSIVolume.VolumeSizeInBytes = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeProgress", targetDepth)) { cachediSCSIVolume.VolumeProgress = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SourceSnapshotId", targetDepth)) { cachediSCSIVolume.SourceSnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeiSCSIAttributes", targetDepth)) { cachediSCSIVolume.VolumeiSCSIAttributes = VolumeiSCSIAttributesUnmarshaller.GetInstance().Unmarshall(context); continue; } } return(cachediSCSIVolume); }
public TrustedAdvisorCostOptimizingSummary Unmarshall(JsonUnmarshallerContext context) { TrustedAdvisorCostOptimizingSummary trustedAdvisorCostOptimizingSummary = new TrustedAdvisorCostOptimizingSummary(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("EstimatedMonthlySavings", targetDepth)) { trustedAdvisorCostOptimizingSummary.EstimatedMonthlySavings = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("EstimatedPercentMonthlySavings", targetDepth)) { trustedAdvisorCostOptimizingSummary.EstimatedPercentMonthlySavings = DoubleUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(trustedAdvisorCostOptimizingSummary); } } return(trustedAdvisorCostOptimizingSummary); }