public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeCommunicationsResponse response = new DescribeCommunicationsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("communications", targetDepth)) { var unmarshaller = new ListUnmarshaller<Communication,CommunicationUnmarshaller>( CommunicationUnmarshaller.GetInstance()); response.Communications = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { response.NextToken = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListInstancesResponse response = new ListInstancesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Instances", targetDepth)) { var unmarshaller = new ListUnmarshaller<Instance, InstanceUnmarshaller>(InstanceUnmarshaller.Instance); response.Instances = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Marker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Marker = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GenerateDataKeyResponse response = new GenerateDataKeyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CiphertextBlob", targetDepth)) { var unmarshaller = MemoryStreamUnmarshaller.Instance; response.CiphertextBlob = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KeyId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.KeyId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Plaintext", targetDepth)) { var unmarshaller = MemoryStreamUnmarshaller.Instance; response.Plaintext = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { TestRoleResponse response = new TestRoleResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Success", targetDepth)) { response.Success = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Messages", targetDepth)) { var unmarshaller = new ListUnmarshaller<String,StringUnmarshaller>( StringUnmarshaller.GetInstance()); response.Messages = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateMethodResponseResponse response = new UpdateMethodResponseResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("responseModels", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.ResponseModels = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("responseParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, bool, StringUnmarshaller, BoolUnmarshaller>(StringUnmarshaller.Instance, BoolUnmarshaller.Instance); response.ResponseParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StatusCode = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateItemResponse response = new UpdateItemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Attributes", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.Instance, AttributeValueUnmarshaller.Instance); response.Attributes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConsumedCapacity", targetDepth)) { var unmarshaller = ConsumedCapacityUnmarshaller.Instance; response.ConsumedCapacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ItemCollectionMetrics", targetDepth)) { var unmarshaller = ItemCollectionMetricsUnmarshaller.Instance; response.ItemCollectionMetrics = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { BatchWriteItemResponse response = new BatchWriteItemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ConsumedCapacity", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConsumedCapacity, ConsumedCapacityUnmarshaller>(ConsumedCapacityUnmarshaller.Instance); response.ConsumedCapacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ItemCollectionMetrics", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<ItemCollectionMetrics>, StringUnmarshaller, ListUnmarshaller<ItemCollectionMetrics, ItemCollectionMetricsUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<ItemCollectionMetrics, ItemCollectionMetricsUnmarshaller>(ItemCollectionMetricsUnmarshaller.Instance)); response.ItemCollectionMetrics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UnprocessedItems", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<WriteRequest>, StringUnmarshaller, ListUnmarshaller<WriteRequest, WriteRequestUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<WriteRequest, WriteRequestUnmarshaller>(WriteRequestUnmarshaller.Instance)); response.UnprocessedItems = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateBasePathMappingResponse response = new UpdateBasePathMappingResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("basePath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BasePath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("restApiId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RestApiId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Stage = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DiscoverInputSchemaResponse response = new DiscoverInputSchemaResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("InputSchema", targetDepth)) { var unmarshaller = SourceSchemaUnmarshaller.Instance; response.InputSchema = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ParsedInputRecords", targetDepth)) { var unmarshaller = new ListUnmarshaller<List<string>, ListUnmarshaller<string, StringUnmarshaller>>(new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance)); response.ParsedInputRecords = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RawInputRecords", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.RawInputRecords = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { BatchGetItemResponse response = new BatchGetItemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ConsumedCapacity", targetDepth)) { var unmarshaller = new ListUnmarshaller<ConsumedCapacity, ConsumedCapacityUnmarshaller>(ConsumedCapacityUnmarshaller.Instance); response.ConsumedCapacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Responses", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<Dictionary<string, AttributeValue>>, StringUnmarshaller, ListUnmarshaller<Dictionary<string, AttributeValue>, DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>>>(StringUnmarshaller.Instance, new ListUnmarshaller<Dictionary<string, AttributeValue>, DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>>(new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.Instance, AttributeValueUnmarshaller.Instance))); response.Responses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UnprocessedKeys", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, KeysAndAttributes, StringUnmarshaller, KeysAndAttributesUnmarshaller>(StringUnmarshaller.Instance, KeysAndAttributesUnmarshaller.Instance); response.UnprocessedKeys = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { SearchFacesByImageResponse response = new SearchFacesByImageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("FaceMatches", targetDepth)) { var unmarshaller = new ListUnmarshaller<FaceMatch, FaceMatchUnmarshaller>(FaceMatchUnmarshaller.Instance); response.FaceMatches = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SearchedFaceBoundingBox", targetDepth)) { var unmarshaller = BoundingBoxUnmarshaller.Instance; response.SearchedFaceBoundingBox = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SearchedFaceConfidence", targetDepth)) { var unmarshaller = FloatUnmarshaller.Instance; response.SearchedFaceConfidence = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVolumesResponse response = new ListVolumesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GatewayARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.GatewayARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Marker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Marker = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VolumeInfos", targetDepth)) { var unmarshaller = new ListUnmarshaller<VolumeInfo, VolumeInfoUnmarshaller>(VolumeInfoUnmarshaller.Instance); response.VolumeInfos = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetSampledRequestsResponse response = new GetSampledRequestsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PopulationSize", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.PopulationSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SampledRequests", targetDepth)) { var unmarshaller = new ListUnmarshaller<SampledHTTPRequest, SampledHTTPRequestUnmarshaller>(SampledHTTPRequestUnmarshaller.Instance); response.SampledRequests = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TimeWindow", targetDepth)) { var unmarshaller = TimeWindowUnmarshaller.Instance; response.TimeWindow = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { PutAutoScalingPolicyResponse response = new PutAutoScalingPolicyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AutoScalingPolicy", targetDepth)) { var unmarshaller = AutoScalingPolicyDescriptionUnmarshaller.Instance; response.AutoScalingPolicy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ClusterId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClusterId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InstanceGroupId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.InstanceGroupId = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListGrantsResponse response = new ListGrantsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Grants", targetDepth)) { var unmarshaller = new ListUnmarshaller<GrantListEntry, GrantListEntryUnmarshaller>(GrantListEntryUnmarshaller.Instance); response.Grants = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextMarker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextMarker = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Truncated", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.Truncated = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { AddInstanceGroupsResponse response = new AddInstanceGroupsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("JobFlowId", targetDepth)) { response.JobFlowId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("InstanceGroupIds", targetDepth)) { var unmarshaller = new ListUnmarshaller<String,StringUnmarshaller>( StringUnmarshaller.GetInstance()); response.InstanceGroupIds = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { QueryObjectsResponse response = new QueryObjectsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("hasMoreResults", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.HasMoreResults = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ids", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.Ids = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("marker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Marker = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateProvisioningArtifactResponse response = new CreateProvisioningArtifactResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Info", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Info = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProvisioningArtifactDetail", targetDepth)) { var unmarshaller = ProvisioningArtifactDetailUnmarshaller.Instance; response.ProvisioningArtifactDetail = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { SearchProductsResponse response = new SearchProductsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("NextPageToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextPageToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProductViewAggregations", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<ProductViewAggregationValue>, StringUnmarshaller, ListUnmarshaller<ProductViewAggregationValue, ProductViewAggregationValueUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<ProductViewAggregationValue, ProductViewAggregationValueUnmarshaller>(ProductViewAggregationValueUnmarshaller.Instance)); response.ProductViewAggregations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProductViewSummaries", targetDepth)) { var unmarshaller = new ListUnmarshaller<ProductViewSummary, ProductViewSummaryUnmarshaller>(ProductViewSummaryUnmarshaller.Instance); response.ProductViewSummaries = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetDocumentationVersionResponse response = new GetDocumentationVersionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("createdDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Version = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeRecordResponse response = new DescribeRecordResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("NextPageToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextPageToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RecordDetail", targetDepth)) { var unmarshaller = RecordDetailUnmarshaller.Instance; response.RecordDetail = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RecordOutputs", targetDepth)) { var unmarshaller = new ListUnmarshaller<RecordOutput, RecordOutputUnmarshaller>(RecordOutputUnmarshaller.Instance); response.RecordOutputs = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateConstraintResponse response = new UpdateConstraintResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ConstraintDetail", targetDepth)) { var unmarshaller = ConstraintDetailUnmarshaller.Instance; response.ConstraintDetail = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConstraintParameters", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConstraintParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetLogEventsResponse response = new GetLogEventsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("events", targetDepth)) { var unmarshaller = new ListUnmarshaller<OutputLogEvent, OutputLogEventUnmarshaller>(OutputLogEventUnmarshaller.Instance); response.Events = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextBackwardToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextBackwardToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextForwardToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextForwardToken = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListJobsByStatusResponse response = new ListJobsByStatusResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Jobs", targetDepth)) { var unmarshaller = new ListUnmarshaller<Job, JobUnmarshaller>(JobUnmarshaller.Instance); response.Jobs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextPageToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextPageToken = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetRecordsResponse response = new GetRecordsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("MillisBehindLatest", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.MillisBehindLatest = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextShardIterator", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextShardIterator = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Records", targetDepth)) { var unmarshaller = new ListUnmarshaller<Record, RecordUnmarshaller>(RecordUnmarshaller.Instance); response.Records = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateSnapshotFromVolumeRecoveryPointResponse response = new CreateSnapshotFromVolumeRecoveryPointResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("SnapshotId", targetDepth)) { response.SnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeARN", targetDepth)) { response.VolumeARN = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("VolumeRecoveryPointTime", targetDepth)) { response.VolumeRecoveryPointTime = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeMountTargetsResponse response = new DescribeMountTargetsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Marker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Marker = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MountTargets", targetDepth)) { var unmarshaller = new ListUnmarshaller<MountTargetDescription, MountTargetDescriptionUnmarshaller>(MountTargetDescriptionUnmarshaller.Instance); response.MountTargets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextMarker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextMarker = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateStorediSCSIVolumeResponse response = new CreateStorediSCSIVolumeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("TargetARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TargetARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VolumeARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.VolumeARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VolumeSizeInBytes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.VolumeSizeInBytes = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListIdentitiesResponse response = new ListIdentitiesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Identities", targetDepth)) { var unmarshaller = new ListUnmarshaller<IdentityDescription, IdentityDescriptionUnmarshaller>(IdentityDescriptionUnmarshaller.Instance); response.Identities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IdentityPoolId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityPoolId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListDatasetsResponse response = new ListDatasetsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Count", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.Count = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Datasets", targetDepth)) { var unmarshaller = new ListUnmarshaller<Dataset, DatasetUnmarshaller>(DatasetUnmarshaller.Instance); response.Datasets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; }