/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribePredictorResponse response = new DescribePredictorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AlgorithmArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AlgorithmArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoMLAlgorithmArns", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.AutoMLAlgorithmArns = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AutoMLOverrideStrategy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AutoMLOverrideStrategy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DatasetImportJobArns", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.DatasetImportJobArns = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EncryptionConfig", targetDepth)) { var unmarshaller = EncryptionConfigUnmarshaller.Instance; response.EncryptionConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EstimatedTimeRemainingInMinutes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.EstimatedTimeRemainingInMinutes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EvaluationParameters", targetDepth)) { var unmarshaller = EvaluationParametersUnmarshaller.Instance; response.EvaluationParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FeaturizationConfig", targetDepth)) { var unmarshaller = FeaturizationConfigUnmarshaller.Instance; response.FeaturizationConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ForecastHorizon", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.ForecastHorizon = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ForecastTypes", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.ForecastTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HPOConfig", targetDepth)) { var unmarshaller = HyperParameterTuningJobConfigUnmarshaller.Instance; response.HPOConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InputDataConfig", targetDepth)) { var unmarshaller = InputDataConfigUnmarshaller.Instance; response.InputDataConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IsAutoPredictor", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.IsAutoPredictor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModificationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastModificationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Message = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OptimizationMetric", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OptimizationMetric = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PerformAutoML", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.PerformAutoML = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PerformHPO", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.PerformHPO = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredictorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PredictorArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredictorExecutionDetails", targetDepth)) { var unmarshaller = PredictorExecutionDetailsUnmarshaller.Instance; response.PredictorExecutionDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredictorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PredictorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = 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) { DescribeTrainingJobResponse response = new DescribeTrainingJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AlgorithmSpecification", targetDepth)) { var unmarshaller = AlgorithmSpecificationUnmarshaller.Instance; response.AlgorithmSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HyperParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.HyperParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InputDataConfig", targetDepth)) { var unmarshaller = new ListUnmarshaller <Channel, ChannelUnmarshaller>(ChannelUnmarshaller.Instance); response.InputDataConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastModifiedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ModelArtifacts", targetDepth)) { var unmarshaller = ModelArtifactsUnmarshaller.Instance; response.ModelArtifacts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OutputDataConfig", targetDepth)) { var unmarshaller = OutputDataConfigUnmarshaller.Instance; response.OutputDataConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceConfig", targetDepth)) { var unmarshaller = ResourceConfigUnmarshaller.Instance; response.ResourceConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SecondaryStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SecondaryStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StoppingCondition", targetDepth)) { var unmarshaller = StoppingConditionUnmarshaller.Instance; response.StoppingCondition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingEndTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.TrainingEndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingJobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TrainingJobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingJobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TrainingJobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingJobStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.TrainingJobStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TrainingStartTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.TrainingStartTime = 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 AppAssessmentSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } AppAssessmentSummary unmarshalledObject = new AppAssessmentSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("appArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("appVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("assessmentArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("assessmentName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("assessmentStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("complianceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComplianceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("cost", targetDepth)) { var unmarshaller = CostUnmarshaller.Instance; unmarshalledObject.Cost = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("invoker", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Invoker = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Message = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resiliencyScore", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.ResiliencyScore = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartTime = 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 CaptionDestinationSettings Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } CaptionDestinationSettings unmarshalledObject = new CaptionDestinationSettings(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("burninDestinationSettings", targetDepth)) { var unmarshaller = BurninDestinationSettingsUnmarshaller.Instance; unmarshalledObject.BurninDestinationSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DestinationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dvbSubDestinationSettings", targetDepth)) { var unmarshaller = DvbSubDestinationSettingsUnmarshaller.Instance; unmarshalledObject.DvbSubDestinationSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("embeddedDestinationSettings", targetDepth)) { var unmarshaller = EmbeddedDestinationSettingsUnmarshaller.Instance; unmarshalledObject.EmbeddedDestinationSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("imscDestinationSettings", targetDepth)) { var unmarshaller = ImscDestinationSettingsUnmarshaller.Instance; unmarshalledObject.ImscDestinationSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sccDestinationSettings", targetDepth)) { var unmarshaller = SccDestinationSettingsUnmarshaller.Instance; unmarshalledObject.SccDestinationSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("teletextDestinationSettings", targetDepth)) { var unmarshaller = TeletextDestinationSettingsUnmarshaller.Instance; unmarshalledObject.TeletextDestinationSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ttmlDestinationSettings", targetDepth)) { var unmarshaller = TtmlDestinationSettingsUnmarshaller.Instance; unmarshalledObject.TtmlDestinationSettings = 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) { GetLayerVersionByArnResponse response = new GetLayerVersionByArnResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CompatibleRuntimes", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.CompatibleRuntimes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Content", targetDepth)) { var unmarshaller = LayerVersionContentOutputUnmarshaller.Instance; response.Content = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedDate", targetDepth)) { var unmarshaller = StringUnmarshaller.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("LayerArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LayerArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LayerVersionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LayerVersionArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LicenseInfo", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LicenseInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Version", targetDepth)) { var unmarshaller = LongUnmarshaller.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 Member Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } Member unmarshalledObject = new Member(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreationDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FrameworkAttributes", targetDepth)) { var unmarshaller = MemberFrameworkAttributesUnmarshaller.Instance; unmarshalledObject.FrameworkAttributes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LogPublishingConfiguration", targetDepth)) { var unmarshaller = MemberLogPublishingConfigurationUnmarshaller.Instance; unmarshalledObject.LogPublishingConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NetworkId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NetworkId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = 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) { DescribeIdentityPoolResponse response = new DescribeIdentityPoolResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AllowClassicFlow", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.AllowClassicFlow = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AllowUnauthenticatedIdentities", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.AllowUnauthenticatedIdentities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CognitoIdentityProviders", targetDepth)) { var unmarshaller = new ListUnmarshaller <CognitoIdentityProviderInfo, CognitoIdentityProviderInfoUnmarshaller>(CognitoIdentityProviderInfoUnmarshaller.Instance); response.CognitoIdentityProviders = 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("IdentityPoolTags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.IdentityPoolTags = 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("SamlProviderARNs", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.SamlProviderARNs = 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 APNSVoipSandboxChannelResponse Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } APNSVoipSandboxChannelResponse unmarshalledObject = new APNSVoipSandboxChannelResponse(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ApplicationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApplicationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DefaultAuthenticationMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DefaultAuthenticationMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Enabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Enabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HasCredential", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HasCredential = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HasTokenKey", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HasTokenKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IsArchived", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsArchived = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastModifiedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedDate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastModifiedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Platform", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Platform = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Version", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
public JobFlowDetail Unmarshall(JsonUnmarshallerContext context) { if (context.CurrentTokenType == JsonToken.Null) { return(null); } JobFlowDetail jobFlowDetail = new JobFlowDetail(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("JobFlowId", targetDepth)) { context.Read(); jobFlowDetail.JobFlowId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { context.Read(); jobFlowDetail.Name = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LogUri", targetDepth)) { context.Read(); jobFlowDetail.LogUri = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("AmiVersion", targetDepth)) { context.Read(); jobFlowDetail.AmiVersion = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ExecutionStatusDetail", targetDepth)) { context.Read(); jobFlowDetail.ExecutionStatusDetail = JobFlowExecutionStatusDetailUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Instances", targetDepth)) { context.Read(); jobFlowDetail.Instances = JobFlowInstancesDetailUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Steps", targetDepth)) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { jobFlowDetail.Steps = null; continue; } jobFlowDetail.Steps = new List <StepDetail>(); StepDetailUnmarshaller unmarshaller = StepDetailUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } jobFlowDetail.Steps.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.TestExpression("BootstrapActions", targetDepth)) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { jobFlowDetail.BootstrapActions = null; continue; } jobFlowDetail.BootstrapActions = new List <BootstrapActionDetail>(); BootstrapActionDetailUnmarshaller unmarshaller = BootstrapActionDetailUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } jobFlowDetail.BootstrapActions.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.TestExpression("SupportedProducts", targetDepth)) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { jobFlowDetail.SupportedProducts = null; continue; } jobFlowDetail.SupportedProducts = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { JsonToken token = context.CurrentTokenType; if (token == JsonToken.ArrayStart) { continue; } if (token == JsonToken.ArrayEnd) { break; } jobFlowDetail.SupportedProducts.Add(unmarshaller.Unmarshall(context)); } continue; } if (context.TestExpression("VisibleToAllUsers", targetDepth)) { context.Read(); jobFlowDetail.VisibleToAllUsers = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("JobFlowRole", targetDepth)) { context.Read(); jobFlowDetail.JobFlowRole = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return(jobFlowDetail); } } return(jobFlowDetail); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PackageDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } PackageDetails unmarshalledObject = new PackageDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AvailablePackageVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AvailablePackageVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ErrorDetails", targetDepth)) { var unmarshaller = ErrorDetailsUnmarshaller.Instance; unmarshalledObject.ErrorDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PackageDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PackageDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PackageID", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PackageID = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PackageName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PackageName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PackageStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PackageStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PackageType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PackageType = 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) { UpdateLagResponse response = new UpdateLagResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("allowsHostedConnections", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.AllowsHostedConnections = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awsDevice", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AwsDevice = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awsDeviceV2", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.AwsDeviceV2 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connections", targetDepth)) { var unmarshaller = new ListUnmarshaller <Connection, ConnectionUnmarshaller>(ConnectionUnmarshaller.Instance); response.Connections = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("connectionsBandwidth", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ConnectionsBandwidth = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hasLogicalRedundancy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HasLogicalRedundancy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jumboFrameCapable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.JumboFrameCapable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lagId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LagId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lagName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LagName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lagState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LagState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("location", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Location = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("minimumLinks", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.MinimumLinks = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("numberOfConnections", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.NumberOfConnections = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ownerAccount", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OwnerAccount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Region = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new ListUnmarshaller <Tag, TagUnmarshaller>(TagUnmarshaller.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 LoadBalancer Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } LoadBalancer unmarshalledObject = new LoadBalancer(); 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("configurationOptions", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.ConfigurationOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dnsName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DnsName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("healthCheckPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HealthCheckPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instanceHealthSummary", targetDepth)) { var unmarshaller = new ListUnmarshaller <InstanceHealthSummary, InstanceHealthSummaryUnmarshaller>(InstanceHealthSummaryUnmarshaller.Instance); unmarshalledObject.InstanceHealthSummary = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instancePort", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.InstancePort = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("location", targetDepth)) { var unmarshaller = ResourceLocationUnmarshaller.Instance; unmarshalledObject.Location = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("protocol", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Protocol = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("publicPorts", targetDepth)) { var unmarshaller = new ListUnmarshaller <int, IntUnmarshaller>(IntUnmarshaller.Instance); unmarshalledObject.PublicPorts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("supportCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SupportCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tlsCertificateSummaries", targetDepth)) { var unmarshaller = new ListUnmarshaller <LoadBalancerTlsCertificateSummary, LoadBalancerTlsCertificateSummaryUnmarshaller>(LoadBalancerTlsCertificateSummaryUnmarshaller.Instance); unmarshalledObject.TlsCertificateSummaries = 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 WorkspaceDirectory Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } WorkspaceDirectory unmarshalledObject = new WorkspaceDirectory(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Alias", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Alias = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomerUserName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CustomerUserName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DirectoryId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DirectoryId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DirectoryName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DirectoryName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DirectoryType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DirectoryType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DnsIpAddresses", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.DnsIpAddresses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IamRoleId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.IamRoleId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ipGroupIds", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.IpGroupIds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RegistrationCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RegistrationCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SelfservicePermissions", targetDepth)) { var unmarshaller = SelfservicePermissionsUnmarshaller.Instance; unmarshalledObject.SelfservicePermissions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SubnetIds", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SubnetIds = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tenancy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Tenancy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WorkspaceAccessProperties", targetDepth)) { var unmarshaller = WorkspaceAccessPropertiesUnmarshaller.Instance; unmarshalledObject.WorkspaceAccessProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WorkspaceCreationProperties", targetDepth)) { var unmarshaller = DefaultWorkspaceCreationPropertiesUnmarshaller.Instance; unmarshalledObject.WorkspaceCreationProperties = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WorkspaceSecurityGroupId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WorkspaceSecurityGroupId = 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 Tape Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } Tape unmarshalledObject = new Tape(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("KMSKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KMSKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PoolEntryDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.PoolEntryDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PoolId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PoolId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Progress", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.Progress = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RetentionStartDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.RetentionStartDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TapeARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TapeARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TapeBarcode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TapeBarcode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TapeCreatedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.TapeCreatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TapeSizeInBytes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.TapeSizeInBytes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TapeStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TapeStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TapeUsedInBytes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.TapeUsedInBytes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VTLDevice", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VTLDevice = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Worm", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Worm = 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 AwsEc2NetworkInterfaceDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } AwsEc2NetworkInterfaceDetails unmarshalledObject = new AwsEc2NetworkInterfaceDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Attachment", targetDepth)) { var unmarshaller = AwsEc2NetworkInterfaceAttachmentUnmarshaller.Instance; unmarshalledObject.Attachment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IpV6Addresses", targetDepth)) { var unmarshaller = new ListUnmarshaller <AwsEc2NetworkInterfaceIpV6AddressDetail, AwsEc2NetworkInterfaceIpV6AddressDetailUnmarshaller>(AwsEc2NetworkInterfaceIpV6AddressDetailUnmarshaller.Instance); unmarshalledObject.IpV6Addresses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NetworkInterfaceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NetworkInterfaceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PrivateIpAddresses", targetDepth)) { var unmarshaller = new ListUnmarshaller <AwsEc2NetworkInterfacePrivateIpAddressDetail, AwsEc2NetworkInterfacePrivateIpAddressDetailUnmarshaller>(AwsEc2NetworkInterfacePrivateIpAddressDetailUnmarshaller.Instance); unmarshalledObject.PrivateIpAddresses = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublicDnsName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublicDnsName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublicIp", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublicIp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SecurityGroups", targetDepth)) { var unmarshaller = new ListUnmarshaller <AwsEc2NetworkInterfaceSecurityGroup, AwsEc2NetworkInterfaceSecurityGroupUnmarshaller>(AwsEc2NetworkInterfaceSecurityGroupUnmarshaller.Instance); unmarshalledObject.SecurityGroups = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceDestCheck", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.SourceDestCheck = 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 DvbSubDestinationSettings Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } DvbSubDestinationSettings unmarshalledObject = new DvbSubDestinationSettings(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("alignment", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Alignment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("applyFontColor", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApplyFontColor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("backgroundColor", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BackgroundColor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("backgroundOpacity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.BackgroundOpacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ddsHandling", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DdsHandling = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ddsXCoordinate", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DdsXCoordinate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ddsYCoordinate", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DdsYCoordinate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fallbackFont", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FallbackFont = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fontColor", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FontColor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fontOpacity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.FontOpacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fontResolution", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.FontResolution = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fontScript", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FontScript = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fontSize", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.FontSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("height", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Height = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hexFontColor", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HexFontColor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outlineColor", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OutlineColor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outlineSize", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.OutlineSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shadowColor", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ShadowColor = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shadowOpacity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ShadowOpacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shadowXOffset", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ShadowXOffset = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shadowYOffset", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ShadowYOffset = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stylePassthrough", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StylePassthrough = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("subtitlingType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SubtitlingType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("teletextSpacing", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TeletextSpacing = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("width", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Width = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("xPosition", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.XPosition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("yPosition", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.YPosition = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
public WorkflowExecutionStartedEventAttributes Unmarshall(JsonUnmarshallerContext context) { WorkflowExecutionStartedEventAttributes workflowExecutionStartedEventAttributes = new WorkflowExecutionStartedEventAttributes(); workflowExecutionStartedEventAttributes.TagList = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Input", targetDepth)) { workflowExecutionStartedEventAttributes.Input = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ExecutionStartToCloseTimeout", targetDepth)) { workflowExecutionStartedEventAttributes.ExecutionStartToCloseTimeout = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TaskStartToCloseTimeout", targetDepth)) { workflowExecutionStartedEventAttributes.TaskStartToCloseTimeout = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ChildPolicy", targetDepth)) { workflowExecutionStartedEventAttributes.ChildPolicy = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TaskList", targetDepth)) { workflowExecutionStartedEventAttributes.TaskList = TaskListUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("WorkflowType", targetDepth)) { workflowExecutionStartedEventAttributes.WorkflowType = WorkflowTypeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TagList", targetDepth)) { workflowExecutionStartedEventAttributes.TagList = new List <String>(); StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance(); while (context.Read()) { if ((context.IsArrayElement) && (context.CurrentDepth == targetDepth)) { workflowExecutionStartedEventAttributes.TagList.Add(unmarshaller.Unmarshall(context)); } else if (context.IsEndArray) { break; } } continue; } if (context.TestExpression("ContinuedExecutionRunId", targetDepth)) { workflowExecutionStartedEventAttributes.ContinuedExecutionRunId = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ParentWorkflowExecution", targetDepth)) { workflowExecutionStartedEventAttributes.ParentWorkflowExecution = WorkflowExecutionUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ParentInitiatedEventId", targetDepth)) { workflowExecutionStartedEventAttributes.ParentInitiatedEventId = LongUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(workflowExecutionStartedEventAttributes); } } return(workflowExecutionStartedEventAttributes); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DocumentIdentifier Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } DocumentIdentifier unmarshalledObject = new DocumentIdentifier(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Author", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Author = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DisplayName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DisplayName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DocumentFormat", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DocumentFormat = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DocumentType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DocumentType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DocumentVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DocumentVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Owner", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Owner = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PlatformTypes", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.PlatformTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Requires", targetDepth)) { var unmarshaller = new ListUnmarshaller <DocumentRequires, DocumentRequiresUnmarshaller>(DocumentRequiresUnmarshaller.Instance); unmarshalledObject.Requires = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ReviewStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ReviewStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SchemaVersion = 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("TargetType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TargetType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VersionName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VersionName = 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 FunctionConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } FunctionConfiguration unmarshalledObject = new FunctionConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CodeSha256", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CodeSha256 = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CodeSize", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.CodeSize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DeadLetterConfig", targetDepth)) { var unmarshaller = DeadLetterConfigUnmarshaller.Instance; unmarshalledObject.DeadLetterConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Environment", targetDepth)) { var unmarshaller = EnvironmentResponseUnmarshaller.Instance; unmarshalledObject.Environment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FunctionArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FunctionArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FunctionName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FunctionName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Handler", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Handler = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KMSKeyArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KMSKeyArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModified", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastModified = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MasterArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MasterArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MemorySize", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MemorySize = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RevisionId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RevisionId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Role", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Role = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Runtime", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Runtime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Timeout", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Timeout = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TracingConfig", targetDepth)) { var unmarshaller = TracingConfigResponseUnmarshaller.Instance; unmarshalledObject.TracingConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Version", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VpcConfig", targetDepth)) { var unmarshaller = VpcConfigDetailUnmarshaller.Instance; unmarshalledObject.VpcConfig = 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 Blueprint Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } Blueprint unmarshalledObject = new Blueprint(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("blueprintId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BlueprintId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("group", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Group = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("isActive", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsActive = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("licenseUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LicenseUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("minPower", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MinPower = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("platform", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Platform = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("productUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProductUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Version = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("versionCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VersionCode = 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) { 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("billingGroupName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BillingGroupName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("defaultClientId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DefaultClientId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("thingArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ThingArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("thingId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ThingId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("thingName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ThingName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("thingTypeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ThingTypeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("version", targetDepth)) { var unmarshaller = LongUnmarshaller.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 JobMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } JobMetadata unmarshalledObject = new JobMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AddressId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AddressId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ClusterId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ClusterId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DataTransferProgress", targetDepth)) { var unmarshaller = DataTransferUnmarshaller.Instance; unmarshalledObject.DataTransferProgress = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ForwardingAddressId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ForwardingAddressId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("JobId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("JobLogInfo", targetDepth)) { var unmarshaller = JobLogsUnmarshaller.Instance; unmarshalledObject.JobLogInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("JobState", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobState = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("JobType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KmsKeyARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KmsKeyARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Notification", targetDepth)) { var unmarshaller = NotificationUnmarshaller.Instance; unmarshalledObject.Notification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Resources", targetDepth)) { var unmarshaller = JobResourceUnmarshaller.Instance; unmarshalledObject.Resources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RoleARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ShippingDetails", targetDepth)) { var unmarshaller = ShippingDetailsUnmarshaller.Instance; unmarshalledObject.ShippingDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SnowballCapacityPreference", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SnowballCapacityPreference = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SnowballType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SnowballType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TaxDocuments", targetDepth)) { var unmarshaller = TaxDocumentsUnmarshaller.Instance; unmarshalledObject.TaxDocuments = 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 DevEndpoint Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } DevEndpoint unmarshalledObject = new DevEndpoint(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arguments", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Arguments = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AvailabilityZone", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AvailabilityZone = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EndpointName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EndpointName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExtraJarsS3Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExtraJarsS3Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExtraPythonLibsS3Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ExtraPythonLibsS3Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GlueVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.GlueVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedTimestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastModifiedTimestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdateStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastUpdateStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NumberOfNodes", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.NumberOfNodes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NumberOfWorkers", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.NumberOfWorkers = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PrivateAddress", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrivateAddress = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublicAddress", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublicAddress = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublicKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PublicKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PublicKeys", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.PublicKeys = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SecurityConfiguration", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SecurityConfiguration = 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("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SubnetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SubnetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VpcId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VpcId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("WorkerType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.WorkerType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("YarnEndpointAddress", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.YarnEndpointAddress = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ZeppelinRemoteSparkInterpreterPort", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ZeppelinRemoteSparkInterpreterPort = 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 StandardsControl Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } StandardsControl unmarshalledObject = new StandardsControl(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ControlId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ControlStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ControlStatusUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ControlStatusUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DisabledReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DisabledReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RelatedRequirements", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.RelatedRequirements = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RemediationUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RemediationUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SeverityRating", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SeverityRating = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StandardsControlArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StandardsControlArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Title", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Title = 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 Notification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } Notification unmarshalledObject = new Notification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assessmentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("assessmentName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlSetName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlSetName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EventTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("source", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Source = unmarshaller.Unmarshall(context); continue; } } return(unmarshalledObject); }
public VideoParameters Unmarshall(JsonUnmarshallerContext context) { VideoParameters videoParameters = new VideoParameters(); videoParameters.CodecOptions = null; int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("Codec", targetDepth)) { videoParameters.Codec = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("CodecOptions", targetDepth)) { videoParameters.CodecOptions = new Dictionary <String, String>(); KeyValueUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller> unmarshaller = new KeyValueUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.GetInstance(), StringUnmarshaller.GetInstance()); while (context.Read()) { if (((context.IsStartArray || context.IsStartElement || context.IsLeafValue) && (context.CurrentDepth == targetDepth)) || ((context.IsKey) && (context.CurrentDepth == targetDepth + 1))) { KeyValuePair <string, string> kvp = unmarshaller.Unmarshall(context); videoParameters.CodecOptions.Add(kvp.Key, kvp.Value); } else if (context.IsEndElement) { break; } } continue; } if (context.TestExpression("KeyframesMaxDist", targetDepth)) { videoParameters.KeyframesMaxDist = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("FixedGOP", targetDepth)) { videoParameters.FixedGOP = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("BitRate", targetDepth)) { videoParameters.BitRate = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("FrameRate", targetDepth)) { videoParameters.FrameRate = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("Resolution", targetDepth)) { videoParameters.Resolution = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("AspectRatio", targetDepth)) { videoParameters.AspectRatio = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MaxWidth", targetDepth)) { videoParameters.MaxWidth = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("MaxHeight", targetDepth)) { videoParameters.MaxHeight = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("DisplayAspectRatio", targetDepth)) { videoParameters.DisplayAspectRatio = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("SizingPolicy", targetDepth)) { videoParameters.SizingPolicy = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("PaddingPolicy", targetDepth)) { videoParameters.PaddingPolicy = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(videoParameters); } } return(videoParameters); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteChannelResponse response = new DeleteChannelResponse(); 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("cdiInputSpecification", targetDepth)) { var unmarshaller = CdiInputSpecificationUnmarshaller.Instance; response.CdiInputSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("channelClass", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ChannelClass = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinations", targetDepth)) { var unmarshaller = new ListUnmarshaller <OutputDestination, OutputDestinationUnmarshaller>(OutputDestinationUnmarshaller.Instance); response.Destinations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("egressEndpoints", targetDepth)) { var unmarshaller = new ListUnmarshaller <ChannelEgressEndpoint, ChannelEgressEndpointUnmarshaller>(ChannelEgressEndpointUnmarshaller.Instance); response.EgressEndpoints = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("encoderSettings", targetDepth)) { var unmarshaller = EncoderSettingsUnmarshaller.Instance; response.EncoderSettings = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("inputAttachments", targetDepth)) { var unmarshaller = new ListUnmarshaller <InputAttachment, InputAttachmentUnmarshaller>(InputAttachmentUnmarshaller.Instance); response.InputAttachments = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("inputSpecification", targetDepth)) { var unmarshaller = InputSpecificationUnmarshaller.Instance; response.InputSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logLevel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LogLevel = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("pipelineDetails", targetDepth)) { var unmarshaller = new ListUnmarshaller <PipelineDetail, PipelineDetailUnmarshaller>(PipelineDetailUnmarshaller.Instance); response.PipelineDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("pipelinesRunningCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.PipelinesRunningCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("state", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.State = 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("vpc", targetDepth)) { var unmarshaller = VpcOutputSettingsDescriptionUnmarshaller.Instance; response.Vpc = 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 ProvisionedProductAttribute Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } ProvisionedProductAttribute unmarshalledObject = new ProvisionedProductAttribute(); 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("CreatedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IdempotencyToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.IdempotencyToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastProvisioningRecordId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastProvisioningRecordId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastRecordId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastRecordId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastSuccessfulProvisioningRecordId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastSuccessfulProvisioningRecordId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PhysicalId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PhysicalId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProductId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProductId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProductName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProductName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProvisioningArtifactId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProvisioningArtifactId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProvisioningArtifactName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProvisioningArtifactName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatusMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusMessage = 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("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UserArnSession", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserArnSession = 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 DisruptionCompliance Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) { return(null); } DisruptionCompliance unmarshalledObject = new DisruptionCompliance(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("achievableRpoInSecs", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AchievableRpoInSecs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("achievableRtoInSecs", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AchievableRtoInSecs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("complianceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComplianceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("currentRpoInSecs", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.CurrentRpoInSecs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("currentRtoInSecs", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.CurrentRtoInSecs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Message = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("rpoDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RpoDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("rpoReferenceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RpoReferenceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("rtoDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RtoDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("rtoReferenceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RtoReferenceId = 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) { ReimportApiResponse response = new ReimportApiResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiEndpoint", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApiEndpoint = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("apiGatewayManaged", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.ApiGatewayManaged = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("apiId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApiId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("apiKeySelectionExpression", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApiKeySelectionExpression = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("corsConfiguration", targetDepth)) { var unmarshaller = CorsUnmarshaller.Instance; response.CorsConfiguration = 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("disableExecuteApiEndpoint", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.DisableExecuteApiEndpoint = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("disableSchemaValidation", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.DisableSchemaValidation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("importInfo", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.ImportInfo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("protocolType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProtocolType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("routeSelectionExpression", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RouteSelectionExpression = 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; } if (context.TestExpression("warnings", targetDepth)) { var unmarshaller = new ListUnmarshaller <string, StringUnmarshaller>(StringUnmarshaller.Instance); response.Warnings = unmarshaller.Unmarshall(context); continue; } } return(response); }