/// <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; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetItemResponse response = new GetItemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Item", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<String,AttributeValue,StringUnmarshaller,AttributeValueUnmarshaller>( StringUnmarshaller.GetInstance(),AttributeValueUnmarshaller.GetInstance()); response.Item = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConsumedCapacity", targetDepth)) { response.ConsumedCapacity = ConsumedCapacityUnmarshaller.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) { 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) { GetOfferingStatusResponse response = new GetOfferingStatusResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("current", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, OfferingStatus, StringUnmarshaller, OfferingStatusUnmarshaller>(StringUnmarshaller.Instance, OfferingStatusUnmarshaller.Instance); response.Current = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextPeriod", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, OfferingStatus, StringUnmarshaller, OfferingStatusUnmarshaller>(StringUnmarshaller.Instance, OfferingStatusUnmarshaller.Instance); response.NextPeriod = 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) { SearchResponse response = new SearchResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("facets", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, BucketInfo, StringUnmarshaller, BucketInfoUnmarshaller>(StringUnmarshaller.Instance, BucketInfoUnmarshaller.Instance); response.Facets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hits", targetDepth)) { var unmarshaller = HitsUnmarshaller.Instance; response.Hits = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = SearchStatusUnmarshaller.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) { GetIdentityPoolRolesResponse response = new GetIdentityPoolRolesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("IdentityPoolId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityPoolId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleMappings", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, RoleMapping, StringUnmarshaller, RoleMappingUnmarshaller>(StringUnmarshaller.Instance, RoleMappingUnmarshaller.Instance); response.RoleMappings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Roles", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Roles = 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) { DescribeThingResponse response = new DescribeThingResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("attributes", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Attributes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("defaultClientId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DefaultClientId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("thingName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ThingName = 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) { 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) { 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) { TestInvokeAuthorizerResponse response = new TestInvokeAuthorizerResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("authorization", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<string>, StringUnmarshaller, ListUnmarshaller<string, StringUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance)); response.Authorization = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("claims", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Claims = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clientStatus", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.ClientStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("latency", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.Latency = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("log", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Log = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("policy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Policy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("principalId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PrincipalId = 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) { PutMethodResponse response = new PutMethodResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiKeyRequired", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.ApiKeyRequired = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("authorizationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AuthorizationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("httpMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HttpMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("methodIntegration", targetDepth)) { var unmarshaller = IntegrationUnmarshaller.Instance; response.MethodIntegration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("methodResponses", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, MethodResponse, StringUnmarshaller, MethodResponseUnmarshaller>(StringUnmarshaller.Instance, MethodResponseUnmarshaller.Instance); response.MethodResponses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestModels", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.RequestModels = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, bool, StringUnmarshaller, BoolUnmarshaller>(StringUnmarshaller.Instance, BoolUnmarshaller.Instance); response.RequestParameters = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { QueryResponse response = new QueryResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Items", targetDepth)) { var unmarshaller = new ListUnmarshaller<Dictionary<string,AttributeValue>,DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>>( new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.GetInstance(),AttributeValueUnmarshaller.GetInstance())); response.Items = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Count", targetDepth)) { response.Count = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ScannedCount", targetDepth)) { response.ScannedCount = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LastEvaluatedKey", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<String,AttributeValue,StringUnmarshaller,AttributeValueUnmarshaller>( StringUnmarshaller.GetInstance(),AttributeValueUnmarshaller.GetInstance()); response.LastEvaluatedKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ConsumedCapacity", targetDepth)) { response.ConsumedCapacity = ConsumedCapacityUnmarshaller.GetInstance().Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateIdentityPoolResponse response = new CreateIdentityPoolResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AllowUnauthenticatedIdentities", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.AllowUnauthenticatedIdentities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeveloperProviderName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeveloperProviderName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IdentityPoolId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityPoolId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IdentityPoolName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IdentityPoolName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OpenIdConnectProviderARNs", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.OpenIdConnectProviderARNs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SupportedLoginProviders", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.SupportedLoginProviders = 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) { GetCognitoEventsResponse response = new GetCognitoEventsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Events", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Events = 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) { RemoveAttributesFromFindingsResponse response = new RemoveAttributesFromFindingsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("failedItems", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, FailedItemDetails, StringUnmarshaller, FailedItemDetailsUnmarshaller>(StringUnmarshaller.Instance, FailedItemDetailsUnmarshaller.Instance); response.FailedItems = 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) { GetResourceResponse response = new GetResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("parentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ParentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("pathPart", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PathPart = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceMethods", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, Method, StringUnmarshaller, MethodUnmarshaller>(StringUnmarshaller.Instance, MethodUnmarshaller.Instance); response.ResourceMethods = 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) { TestInvokeMethodResponse response = new TestInvokeMethodResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("body", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Body = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("headers", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Headers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("latency", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.Latency = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("log", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Log = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = IntUnmarshaller.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) { UpdateUsageResponse response = new UpdateUsageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("endDate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EndDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("values", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<List<long>>, StringUnmarshaller, ListUnmarshaller<List<long>, ListUnmarshaller<long, LongUnmarshaller>>>(StringUnmarshaller.Instance, new ListUnmarshaller<List<long>, ListUnmarshaller<long, LongUnmarshaller>>(new ListUnmarshaller<long, LongUnmarshaller>(LongUnmarshaller.Instance))); response.Items = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("position", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Position = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startDate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StartDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("usagePlanId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.UsagePlanId = 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) { GetIntegrationResponseResponse response = new GetIntegrationResponseResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("contentHandling", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ContentHandling = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("responseParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.ResponseParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("responseTemplates", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.ResponseTemplates = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("selectionPattern", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SelectionPattern = 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) { ListUniqueProblemsResponse response = new ListUniqueProblemsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("uniqueProblems", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, List<UniqueProblem>, StringUnmarshaller, ListUnmarshaller<UniqueProblem, UniqueProblemUnmarshaller>>(StringUnmarshaller.Instance, new ListUnmarshaller<UniqueProblem, UniqueProblemUnmarshaller>(UniqueProblemUnmarshaller.Instance)); response.UniqueProblems = 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) { AdminRespondToAuthChallengeResponse response = new AdminRespondToAuthChallengeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AuthenticationResult", targetDepth)) { var unmarshaller = AuthenticationResultTypeUnmarshaller.Instance; response.AuthenticationResult = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ChallengeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ChallengeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ChallengeParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.ChallengeParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Session", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Session = 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) { DescribeAssessmentRunsResponse response = new DescribeAssessmentRunsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assessmentRuns", targetDepth)) { var unmarshaller = new ListUnmarshaller<AssessmentRun, AssessmentRunUnmarshaller>(AssessmentRunUnmarshaller.Instance); response.AssessmentRuns = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failedItems", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, FailedItemDetails, StringUnmarshaller, FailedItemDetailsUnmarshaller>(StringUnmarshaller.Instance, FailedItemDetailsUnmarshaller.Instance); response.FailedItems = unmarshaller.Unmarshall(context); continue; } } return response; }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeStackProvisioningParametersResponse response = new DescribeStackProvisioningParametersResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AgentInstallerUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AgentInstallerUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Parameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Parameters = 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) { GetDeploymentResponse response = new GetDeploymentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiSummary", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, Dictionary<string, MethodSnapshot>, StringUnmarshaller, DictionaryUnmarshaller<string, MethodSnapshot, StringUnmarshaller, MethodSnapshotUnmarshaller>>(StringUnmarshaller.Instance, new DictionaryUnmarshaller<string, MethodSnapshot, StringUnmarshaller, MethodSnapshotUnmarshaller>(StringUnmarshaller.Instance, MethodSnapshotUnmarshaller.Instance)); response.ApiSummary = unmarshaller.Unmarshall(context); continue; } 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("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = 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) { GetCustomDataIdentifierResponse response = new GetCustomDataIdentifierResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deleted", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.Deleted = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ignoreWords", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.IgnoreWords = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("keywords", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.Keywords = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maximumMatchDistance", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.MaximumMatchDistance = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("regex", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Regex = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = 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) { CreateRobotApplicationResponse response = new CreateRobotApplicationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("environment", targetDepth)) { var unmarshaller = EnvironmentUnmarshaller.Instance; response.Environment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("revisionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RevisionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("robotSoftwareSuite", targetDepth)) { var unmarshaller = RobotSoftwareSuiteUnmarshaller.Instance; response.RobotSoftwareSuite = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sources", targetDepth)) { var unmarshaller = new ListUnmarshaller <Source, SourceUnmarshaller>(SourceUnmarshaller.Instance); response.Sources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = 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) { DescribeClassificationJobResponse response = new DescribeClassificationJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("clientToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("customDataIdentifierIds", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.CustomDataIdentifierIds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("initialRun", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.InitialRun = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastRunTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastRunTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("s3JobDefinition", targetDepth)) { var unmarshaller = S3JobDefinitionUnmarshaller.Instance; response.S3JobDefinition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("samplingPercentage", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.SamplingPercentage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("scheduleFrequency", targetDepth)) { var unmarshaller = JobScheduleFrequencyUnmarshaller.Instance; response.ScheduleFrequency = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statistics", targetDepth)) { var unmarshaller = StatisticsUnmarshaller.Instance; response.Statistics = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = 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 ContainerDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } ContainerDefinition unmarshalledObject = new ContainerDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("command", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Command = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cpu", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Cpu = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("disableNetworking", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.DisableNetworking = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dnsSearchDomains", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.DnsSearchDomains = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dnsServers", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.DnsServers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dockerLabels", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.DockerLabels = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dockerSecurityOptions", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.DockerSecurityOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entryPoint", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.EntryPoint = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("environment", targetDepth)) { var unmarshaller = new ListUnmarshaller <KeyValuePair, KeyValuePairUnmarshaller>(KeyValuePairUnmarshaller.Instance); unmarshalledObject.Environment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("essential", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Essential = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("extraHosts", targetDepth)) { var unmarshaller = new ListUnmarshaller <HostEntry, HostEntryUnmarshaller>(HostEntryUnmarshaller.Instance); unmarshalledObject.ExtraHosts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("healthCheck", targetDepth)) { var unmarshaller = HealthCheckUnmarshaller.Instance; unmarshalledObject.HealthCheck = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hostname", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Hostname = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("image", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Image = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("links", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Links = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("linuxParameters", targetDepth)) { var unmarshaller = LinuxParametersUnmarshaller.Instance; unmarshalledObject.LinuxParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logConfiguration", targetDepth)) { var unmarshaller = LogConfigurationUnmarshaller.Instance; unmarshalledObject.LogConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("memory", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Memory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("memoryReservation", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MemoryReservation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("mountPoints", targetDepth)) { var unmarshaller = new ListUnmarshaller <MountPoint, MountPointUnmarshaller>(MountPointUnmarshaller.Instance); unmarshalledObject.MountPoints = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("portMappings", targetDepth)) { var unmarshaller = new ListUnmarshaller <PortMapping, PortMappingUnmarshaller>(PortMappingUnmarshaller.Instance); unmarshalledObject.PortMappings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("privileged", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Privileged = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("readonlyRootFilesystem", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.ReadonlyRootFilesystem = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("repositoryCredentials", targetDepth)) { var unmarshaller = RepositoryCredentialsUnmarshaller.Instance; unmarshalledObject.RepositoryCredentials = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ulimits", targetDepth)) { var unmarshaller = new ListUnmarshaller <Ulimit, UlimitUnmarshaller>(UlimitUnmarshaller.Instance); unmarshalledObject.Ulimits = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("user", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.User = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("volumesFrom", targetDepth)) { var unmarshaller = new ListUnmarshaller <VolumeFrom, VolumeFromUnmarshaller>(VolumeFromUnmarshaller.Instance); unmarshalledObject.VolumesFrom = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("workingDirectory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WorkingDirectory = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetMemberResponse response = new GetMemberResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("accountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("email", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Email = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("invitedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.InvitedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("masterAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.MasterAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("relationshipStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RelationshipStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("updatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.UpdatedAt = unmarshaller.Unmarshall(context); continue; } } return(response); }
public App Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } App unmarshalledObject = new App(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AppSource", targetDepth)) { var unmarshaller = SourceUnmarshaller.Instance; unmarshalledObject.AppSource = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Attributes", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Attributes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataSources", targetDepth)) { var unmarshaller = new ListUnmarshaller <DataSource, DataSourceUnmarshaller>(DataSourceUnmarshaller.Instance); unmarshalledObject.DataSources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Domains", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Domains = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnableSsl", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnableSsl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Shortname", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Shortname = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SslConfiguration", targetDepth)) { var unmarshaller = SslConfigurationUnmarshaller.Instance; unmarshalledObject.SslConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ProcessingJob Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } ProcessingJob unmarshalledObject = new ProcessingJob(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AppSpecification", targetDepth)) { var unmarshaller = AppSpecificationUnmarshaller.Instance; unmarshalledObject.AppSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoMLJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AutoMLJobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Environment", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Environment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExitMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExitMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExperimentConfig", targetDepth)) { var unmarshaller = ExperimentConfigUnmarshaller.Instance; unmarshalledObject.ExperimentConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastModifiedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MonitoringScheduleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MonitoringScheduleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NetworkConfig", targetDepth)) { var unmarshaller = NetworkConfigUnmarshaller.Instance; unmarshalledObject.NetworkConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingEndTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ProcessingEndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingInputs", targetDepth)) { var unmarshaller = new ListUnmarshaller <ProcessingInput, ProcessingInputUnmarshaller>(ProcessingInputUnmarshaller.Instance); unmarshalledObject.ProcessingInputs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProcessingJobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingJobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProcessingJobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingJobStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProcessingJobStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingOutputConfig", targetDepth)) { var unmarshaller = ProcessingOutputConfigUnmarshaller.Instance; unmarshalledObject.ProcessingOutputConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingResources", targetDepth)) { var unmarshaller = ProcessingResourcesUnmarshaller.Instance; unmarshalledObject.ProcessingResources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProcessingStartTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ProcessingStartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StoppingCondition", targetDepth)) { var unmarshaller = ProcessingStoppingConditionUnmarshaller.Instance; unmarshalledObject.StoppingCondition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new ListUnmarshaller <Tag, TagUnmarshaller>(TagUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TrainingJobArn = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
private static void UnmarshallResult(JsonUnmarshallerContext context,QueryResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("Items", targetDepth)) { context.Read(); response.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()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } response.Items.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.TestExpression("Count", targetDepth)) { context.Read(); response.Count = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LastEvaluatedKey", targetDepth)) { context.Read(); response.LastEvaluatedKey = new Dictionary<String,AttributeValue>(); KeyValueUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller> unmarshaller = new KeyValueUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.GetInstance(), AttributeValueUnmarshaller.GetInstance()); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart || token == JsonToken.ObjectStart) { continue; } if (token == JsonToken.ArrayEnd || token == JsonToken.ObjectEnd) { break; } KeyValuePair<string, AttributeValue> kvp = unmarshaller.Unmarshall(context); response.LastEvaluatedKey.Add(kvp.Key, kvp.Value); } continue; } if (context.TestExpression("ConsumedCapacity", targetDepth)) { context.Read(); response.ConsumedCapacity = ConsumedCapacityUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateSimulationJobResponse response = new CreateSimulationJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clientRequestToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientRequestToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("compute", targetDepth)) { var unmarshaller = ComputeResponseUnmarshaller.Instance; response.Compute = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataSources", targetDepth)) { var unmarshaller = new ListUnmarshaller <DataSource, DataSourceUnmarshaller>(DataSourceUnmarshaller.Instance); response.DataSources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failureBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FailureBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failureCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FailureCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("iamRole", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IamRole = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastStartedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastStartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("loggingConfig", targetDepth)) { var unmarshaller = LoggingConfigUnmarshaller.Instance; response.LoggingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maxJobDurationInSeconds", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.MaxJobDurationInSeconds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputLocation", targetDepth)) { var unmarshaller = OutputLocationUnmarshaller.Instance; response.OutputLocation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("robotApplications", targetDepth)) { var unmarshaller = new ListUnmarshaller <RobotApplicationConfig, RobotApplicationConfigUnmarshaller>(RobotApplicationConfigUnmarshaller.Instance); response.RobotApplications = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("simulationApplications", targetDepth)) { var unmarshaller = new ListUnmarshaller <SimulationApplicationConfig, SimulationApplicationConfigUnmarshaller>(SimulationApplicationConfigUnmarshaller.Instance); response.SimulationApplications = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("simulationTimeMillis", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.SimulationTimeMillis = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("vpcConfig", targetDepth)) { var unmarshaller = VPCConfigResponseUnmarshaller.Instance; response.VpcConfig = 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) { UpdateMethodResponse response = new UpdateMethodResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiKeyRequired", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.ApiKeyRequired = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("authorizationScopes", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.AuthorizationScopes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("authorizationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AuthorizationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("authorizerId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AuthorizerId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("httpMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HttpMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("methodIntegration", targetDepth)) { var unmarshaller = IntegrationUnmarshaller.Instance; response.MethodIntegration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("methodResponses", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, MethodResponse, StringUnmarshaller, MethodResponseUnmarshaller>(StringUnmarshaller.Instance, MethodResponseUnmarshaller.Instance); response.MethodResponses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("operationName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OperationName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestModels", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.RequestModels = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, bool, StringUnmarshaller, BoolUnmarshaller>(StringUnmarshaller.Instance, BoolUnmarshaller.Instance); response.RequestParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestValidatorId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RequestValidatorId = 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) { DescribeContactResponse response = new DescribeContactResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("contactId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ContactId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("contactStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ContactStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataflowList", targetDepth)) { var unmarshaller = new ListUnmarshaller <DataflowDetail, DataflowDetailUnmarshaller>(DataflowDetailUnmarshaller.Instance); response.DataflowList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.EndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("groundStation", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.GroundStation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maximumElevation", targetDepth)) { var unmarshaller = ElevationUnmarshaller.Instance; response.MaximumElevation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("missionProfileArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.MissionProfileArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("postPassEndTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.PostPassEndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("prePassStartTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.PrePassStartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Region = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("satelliteArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SatelliteArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = 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) { DescribeBrokerResponse response = new DescribeBrokerResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("autoMinorVersionUpgrade", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.AutoMinorVersionUpgrade = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("brokerArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BrokerArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("brokerId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BrokerId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("brokerInstances", targetDepth)) { var unmarshaller = new ListUnmarshaller <BrokerInstance, BrokerInstanceUnmarshaller>(BrokerInstanceUnmarshaller.Instance); response.BrokerInstances = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("brokerName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BrokerName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("brokerState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BrokerState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("configurations", targetDepth)) { var unmarshaller = ConfigurationsUnmarshaller.Instance; response.Configurations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("created", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.Created = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentMode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeploymentMode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("encryptionOptions", targetDepth)) { var unmarshaller = EncryptionOptionsUnmarshaller.Instance; response.EncryptionOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("engineType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EngineType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("engineVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EngineVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hostInstanceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HostInstanceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logs", targetDepth)) { var unmarshaller = LogsSummaryUnmarshaller.Instance; response.Logs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maintenanceWindowStartTime", targetDepth)) { var unmarshaller = WeeklyStartTimeUnmarshaller.Instance; response.MaintenanceWindowStartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("pendingEngineVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PendingEngineVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("publiclyAccessible", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.PubliclyAccessible = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("securityGroups", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.SecurityGroups = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("subnetIds", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.SubnetIds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("users", targetDepth)) { var unmarshaller = new ListUnmarshaller <UserSummary, UserSummaryUnmarshaller>(UserSummaryUnmarshaller.Instance); response.Users = 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) { GetIntegrationResponse response = new GetIntegrationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("cacheKeyParameters", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.CacheKeyParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cacheNamespace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CacheNamespace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("contentHandling", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ContentHandling = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("credentials", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Credentials = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("httpMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HttpMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("integrationResponses", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, IntegrationResponse, StringUnmarshaller, IntegrationResponseUnmarshaller>(StringUnmarshaller.Instance, IntegrationResponseUnmarshaller.Instance); response.IntegrationResponses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("passthroughBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PassthroughBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.RequestParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestTemplates", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.RequestTemplates = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("uri", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Uri = 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) { GetFindingsFilterResponse response = new GetFindingsFilterResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("action", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("findingCriteria", targetDepth)) { var unmarshaller = FindingCriteriaUnmarshaller.Instance; response.FindingCriteria = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("position", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.Position = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = 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 MaintenanceWindowTask Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } MaintenanceWindowTask unmarshalledObject = new MaintenanceWindowTask(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("LoggingInfo", targetDepth)) { var unmarshaller = LoggingInfoUnmarshaller.Instance; unmarshalledObject.LoggingInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxConcurrency", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MaxConcurrency = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxErrors", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MaxErrors = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Priority", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Priority = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceRoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Targets", targetDepth)) { var unmarshaller = new ListUnmarshaller <Target, TargetUnmarshaller>(TargetUnmarshaller.Instance); unmarshalledObject.Targets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TaskArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TaskArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TaskParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, MaintenanceWindowTaskParameterValueExpression, StringUnmarshaller, MaintenanceWindowTaskParameterValueExpressionUnmarshaller>(StringUnmarshaller.Instance, MaintenanceWindowTaskParameterValueExpressionUnmarshaller.Instance); unmarshalledObject.TaskParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WindowId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WindowId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WindowTaskId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WindowTaskId = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateReplicationConfigurationResponse response = new UpdateReplicationConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("associateDefaultSecurityGroup", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.AssociateDefaultSecurityGroup = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("bandwidthThrottling", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.BandwidthThrottling = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createPublicIP", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.CreatePublicIP = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataPlaneRouting", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DataPlaneRouting = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("defaultLargeStagingDiskType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DefaultLargeStagingDiskType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ebsEncryption", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EbsEncryption = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ebsEncryptionKeyArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EbsEncryptionKeyArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("replicatedDisks", targetDepth)) { var unmarshaller = new ListUnmarshaller <ReplicationConfigurationReplicatedDisk, ReplicationConfigurationReplicatedDiskUnmarshaller>(ReplicationConfigurationReplicatedDiskUnmarshaller.Instance); response.ReplicatedDisks = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("replicationServerInstanceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ReplicationServerInstanceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("replicationServersSecurityGroupsIDs", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.ReplicationServersSecurityGroupsIDs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceServerID", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SourceServerID = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stagingAreaSubnetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StagingAreaSubnetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stagingAreaTags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.StagingAreaTags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("useDedicatedReplicationServer", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.UseDedicatedReplicationServer = 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) { GetMLModelResponse response = new GetMLModelResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedByIamUser", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CreatedByIamUser = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointInfo", targetDepth)) { var unmarshaller = RealtimeEndpointInfoUnmarshaller.Instance; response.EndpointInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InputDataLocationS3", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.InputDataLocationS3 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogUri", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LogUri = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Message = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MLModelId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.MLModelId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MLModelType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.MLModelType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Recipe", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Recipe = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Schema", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Schema = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScoreThreshold", targetDepth)) { var unmarshaller = FloatUnmarshaller.Instance; response.ScoreThreshold = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScoreThresholdLastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.ScoreThresholdLastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SizeInBytes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.SizeInBytes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingDataSourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TrainingDataSourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.TrainingParameters = 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) { DescribeTransformJobResponse response = new DescribeTransformJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AutoMLJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AutoMLJobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BatchStrategy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BatchStrategy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataProcessing", targetDepth)) { var unmarshaller = DataProcessingUnmarshaller.Instance; response.DataProcessing = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Environment", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Environment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExperimentConfig", targetDepth)) { var unmarshaller = ExperimentConfigUnmarshaller.Instance; response.ExperimentConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LabelingJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LabelingJobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxConcurrentTransforms", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.MaxConcurrentTransforms = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxPayloadInMB", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.MaxPayloadInMB = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ModelName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ModelName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformEndTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.TransformEndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformInput", targetDepth)) { var unmarshaller = TransformInputUnmarshaller.Instance; response.TransformInput = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TransformJobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformJobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TransformJobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformJobStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TransformJobStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformOutput", targetDepth)) { var unmarshaller = TransformOutputUnmarshaller.Instance; response.TransformOutput = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformResources", targetDepth)) { var unmarshaller = TransformResourcesUnmarshaller.Instance; response.TransformResources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TransformStartTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.TransformStartTime = unmarshaller.Unmarshall(context); continue; } } return(response); }
private static void UnmarshallResult(JsonUnmarshallerContext context, ScanResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("Items", targetDepth)) { context.Read(); response.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()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } response.Items.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.TestExpression("Count", targetDepth)) { context.Read(); response.Count = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ScannedCount", targetDepth)) { context.Read(); response.ScannedCount = IntUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LastEvaluatedKey", targetDepth)) { context.Read(); response.LastEvaluatedKey = new Dictionary <String, AttributeValue>(); KeyValueUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller> unmarshaller = new KeyValueUnmarshaller <string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.GetInstance(), AttributeValueUnmarshaller.GetInstance()); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart || token == JsonToken.ObjectStart) { continue; } if (token == JsonToken.ArrayEnd || token == JsonToken.ObjectEnd) { break; } KeyValuePair <string, AttributeValue> kvp = unmarshaller.Unmarshall(context); response.LastEvaluatedKey.Add(kvp.Key, kvp.Value); } continue; } if (context.TestExpression("ConsumedCapacity", targetDepth)) { context.Read(); response.ConsumedCapacity = ConsumedCapacityUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateIntegrationResponse response = new CreateIntegrationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiGatewayManaged", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.ApiGatewayManaged = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectionType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectionType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("contentHandlingStrategy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ContentHandlingStrategy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("credentialsArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CredentialsArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("integrationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntegrationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("integrationMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntegrationMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("integrationResponseSelectionExpression", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntegrationResponseSelectionExpression = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("integrationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntegrationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("integrationUri", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntegrationUri = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("passthroughBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PassthroughBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("payloadFormatVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PayloadFormatVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.RequestParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("requestTemplates", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.RequestTemplates = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("templateSelectionExpression", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TemplateSelectionExpression = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeoutInMillis", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.TimeoutInMillis = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tlsConfig", targetDepth)) { var unmarshaller = TlsConfigUnmarshaller.Instance; response.TlsConfig = 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 JobExecution Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } JobExecution unmarshalledObject = new JobExecution(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("executionNumber", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.ExecutionNumber = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobDocument", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobDocument = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("queuedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.QueuedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusDetails", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.StatusDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("thingName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ThingName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("versionNumber", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.VersionNumber = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public SourceLocation Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } SourceLocation unmarshalledObject = new SourceLocation(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccessConfiguration", targetDepth)) { var unmarshaller = AccessConfigurationUnmarshaller.Instance; unmarshalledObject.AccessConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DefaultSegmentDeliveryConfiguration", targetDepth)) { var unmarshaller = DefaultSegmentDeliveryConfigurationUnmarshaller.Instance; unmarshalledObject.DefaultSegmentDeliveryConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HttpConfiguration", targetDepth)) { var unmarshaller = HttpConfigurationUnmarshaller.Instance; unmarshalledObject.HttpConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastModifiedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceLocationName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceLocationName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreatePackagingConfigurationResponse response = new CreatePackagingConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cmafPackage", targetDepth)) { var unmarshaller = CmafPackageUnmarshaller.Instance; response.CmafPackage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dashPackage", targetDepth)) { var unmarshaller = DashPackageUnmarshaller.Instance; response.DashPackage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hlsPackage", targetDepth)) { var unmarshaller = HlsPackageUnmarshaller.Instance; response.HlsPackage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("mssPackage", targetDepth)) { var unmarshaller = MssPackageUnmarshaller.Instance; response.MssPackage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("packagingGroupId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PackagingGroupId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = 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 StreamingSession Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } StreamingSession unmarshalledObject = new StreamingSession(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CreatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ec2InstanceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Ec2InstanceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("launchProfileId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LaunchProfileId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ownedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OwnedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sessionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SessionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StartedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stopAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StopAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stoppedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StoppedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stoppedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StoppedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("streamingImageId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StreamingImageId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("terminateAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.TerminateAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("updatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.UpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("updatedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UpdatedBy = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeConnectorResponse response = new DescribeConnectorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("capacity", targetDepth)) { var unmarshaller = CapacityDescriptionUnmarshaller.Instance; response.Capacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorConfiguration", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.ConnectorConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectorState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectorState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("currentVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CurrentVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaCluster", targetDepth)) { var unmarshaller = KafkaClusterDescriptionUnmarshaller.Instance; response.KafkaCluster = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaClusterClientAuthentication", targetDepth)) { var unmarshaller = KafkaClusterClientAuthenticationDescriptionUnmarshaller.Instance; response.KafkaClusterClientAuthentication = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaClusterEncryptionInTransit", targetDepth)) { var unmarshaller = KafkaClusterEncryptionInTransitDescriptionUnmarshaller.Instance; response.KafkaClusterEncryptionInTransit = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kafkaConnectVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.KafkaConnectVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logDelivery", targetDepth)) { var unmarshaller = LogDeliveryDescriptionUnmarshaller.Instance; response.LogDelivery = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("plugins", targetDepth)) { var unmarshaller = new ListUnmarshaller <PluginDescription, PluginDescriptionUnmarshaller>(PluginDescriptionUnmarshaller.Instance); response.Plugins = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serviceExecutionRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ServiceExecutionRoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("workerConfiguration", targetDepth)) { var unmarshaller = WorkerConfigurationDescriptionUnmarshaller.Instance; response.WorkerConfiguration = 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 BotChannelAssociation Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } BotChannelAssociation unmarshalledObject = new BotChannelAssociation(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("botAlias", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BotAlias = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("botConfiguration", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.BotConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("botName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BotName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetPlaybackConfigurationResponse response = new GetPlaybackConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AdDecisionServerUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AdDecisionServerUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AvailSuppression", targetDepth)) { var unmarshaller = AvailSuppressionUnmarshaller.Instance; response.AvailSuppression = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CdnConfiguration", targetDepth)) { var unmarshaller = CdnConfigurationUnmarshaller.Instance; response.CdnConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DashConfiguration", targetDepth)) { var unmarshaller = DashConfigurationUnmarshaller.Instance; response.DashConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HlsConfiguration", targetDepth)) { var unmarshaller = HlsConfigurationUnmarshaller.Instance; response.HlsConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LivePreRollConfiguration", targetDepth)) { var unmarshaller = LivePreRollConfigurationUnmarshaller.Instance; response.LivePreRollConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PersonalizationThresholdSeconds", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.PersonalizationThresholdSeconds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PlaybackConfigurationArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PlaybackConfigurationArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PlaybackEndpointPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PlaybackEndpointPrefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SessionInitializationEndpointPrefix", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SessionInitializationEndpointPrefix = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SlateAdUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SlateAdUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TranscodeProfileName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TranscodeProfileName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VideoContentSourceUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.VideoContentSourceUrl = 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 BackupRule Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } BackupRule unmarshalledObject = new BackupRule(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CompletionWindowMinutes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.CompletionWindowMinutes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CopyActions", targetDepth)) { var unmarshaller = new ListUnmarshaller <CopyAction, CopyActionUnmarshaller>(CopyActionUnmarshaller.Instance); unmarshalledObject.CopyActions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Lifecycle", targetDepth)) { var unmarshaller = LifecycleUnmarshaller.Instance; unmarshalledObject.Lifecycle = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RecoveryPointTags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.RecoveryPointTags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RuleId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RuleId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RuleName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RuleName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScheduleExpression", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScheduleExpression = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StartWindowMinutes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.StartWindowMinutes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TargetBackupVaultName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TargetBackupVaultName = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ComputeResource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } ComputeResource unmarshalledObject = new ComputeResource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("bidPercentage", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.BidPercentage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("desiredvCpus", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DesiredvCpus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ec2KeyPair", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Ec2KeyPair = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("imageId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ImageId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instanceRole", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InstanceRole = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instanceTypes", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.InstanceTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("launchTemplate", targetDepth)) { var unmarshaller = LaunchTemplateSpecificationUnmarshaller.Instance; unmarshalledObject.LaunchTemplate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("maxvCpus", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxvCpus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("minvCpus", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MinvCpus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("placementGroup", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PlacementGroup = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("securityGroupIds", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SecurityGroupIds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("spotIamFleetRole", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SpotIamFleetRole = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("subnets", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Subnets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateStageResponse response = new CreateStageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("accessLogSettings", targetDepth)) { var unmarshaller = AccessLogSettingsUnmarshaller.Instance; response.AccessLogSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("apiGatewayManaged", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.ApiGatewayManaged = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("autoDeploy", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.AutoDeploy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clientCertificateId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientCertificateId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("defaultRouteSettings", targetDepth)) { var unmarshaller = RouteSettingsUnmarshaller.Instance; response.DefaultRouteSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeploymentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastDeploymentStatusMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LastDeploymentStatusMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("routeSettings", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, RouteSettings, StringUnmarshaller, RouteSettingsUnmarshaller>(StringUnmarshaller.Instance, RouteSettingsUnmarshaller.Instance); response.RouteSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stageName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StageName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stageVariables", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.StageVariables = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = 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 ImageSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } ImageSummary unmarshalledObject = new ImageSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dateCreated", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DateCreated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputResources", targetDepth)) { var unmarshaller = OutputResourcesUnmarshaller.Instance; unmarshalledObject.OutputResources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("owner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Owner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("platform", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Platform = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { var unmarshaller = ImageStateUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AutoBranchCreationConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } AutoBranchCreationConfig unmarshalledObject = new AutoBranchCreationConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("basicAuthCredentials", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BasicAuthCredentials = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("buildSpec", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BuildSpec = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("enableAutoBuild", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnableAutoBuild = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("enableBasicAuth", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnableBasicAuth = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("enablePullRequestPreview", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.EnablePullRequestPreview = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("environmentVariables", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.EnvironmentVariables = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("framework", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Framework = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Stage = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateStageResponse response = new CreateStageResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("cacheClusterEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.CacheClusterEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cacheClusterSize", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CacheClusterSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cacheClusterStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CacheClusterStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clientCertificateId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientCertificateId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeploymentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("methodSettings", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, MethodSetting, StringUnmarshaller, MethodSettingUnmarshaller>(StringUnmarshaller.Instance, MethodSettingUnmarshaller.Instance); response.MethodSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stageName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StageName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("variables", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Variables = 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 Environment Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } Environment unmarshalledObject = new Environment(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AirflowConfigurationOptions", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.AirflowConfigurationOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AirflowVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AirflowVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DagS3Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DagS3Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnvironmentClass", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EnvironmentClass = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExecutionRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExecutionRoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KmsKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KmsKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdate", targetDepth)) { var unmarshaller = LastUpdateUnmarshaller.Instance; unmarshalledObject.LastUpdate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LoggingConfiguration", targetDepth)) { var unmarshaller = LoggingConfigurationUnmarshaller.Instance; unmarshalledObject.LoggingConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxWorkers", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxWorkers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NetworkConfiguration", targetDepth)) { var unmarshaller = NetworkConfigurationUnmarshaller.Instance; unmarshalledObject.NetworkConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PluginsS3ObjectVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PluginsS3ObjectVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PluginsS3Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PluginsS3Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequirementsS3ObjectVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequirementsS3ObjectVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequirementsS3Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequirementsS3Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceRoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceBucketArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceBucketArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WebserverAccessMode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WebserverAccessMode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WebserverUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WebserverUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WeeklyMaintenanceWindowStart", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WeeklyMaintenanceWindowStart = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }