public static UpdateIntentResponse Unmarshall(UnmarshallerContext context) { UpdateIntentResponse updateIntentResponse = new UpdateIntentResponse(); updateIntentResponse.HttpResponse = context.HttpResponse; updateIntentResponse.RequestId = context.StringValue("UpdateIntent.RequestId"); updateIntentResponse.IntentId = context.StringValue("UpdateIntent.IntentId"); return(updateIntentResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateIntentResponse response = new UpdateIntentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("botId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BotId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("botVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.BotVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationDateTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationDateTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dialogCodeHook", targetDepth)) { var unmarshaller = DialogCodeHookSettingsUnmarshaller.Instance; response.DialogCodeHook = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("fulfillmentCodeHook", targetDepth)) { var unmarshaller = FulfillmentCodeHookSettingsUnmarshaller.Instance; response.FulfillmentCodeHook = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("inputContexts", targetDepth)) { var unmarshaller = new ListUnmarshaller <InputContext, InputContextUnmarshaller>(InputContextUnmarshaller.Instance); response.InputContexts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentClosingSetting", targetDepth)) { var unmarshaller = IntentClosingSettingUnmarshaller.Instance; response.IntentClosingSetting = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentConfirmationSetting", targetDepth)) { var unmarshaller = IntentConfirmationSettingUnmarshaller.Instance; response.IntentConfirmationSetting = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("intentName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.IntentName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("kendraConfiguration", targetDepth)) { var unmarshaller = KendraConfigurationUnmarshaller.Instance; response.KendraConfiguration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedDateTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedDateTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("localeId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LocaleId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputContexts", targetDepth)) { var unmarshaller = new ListUnmarshaller <OutputContext, OutputContextUnmarshaller>(OutputContextUnmarshaller.Instance); response.OutputContexts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("parentIntentSignature", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ParentIntentSignature = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sampleUtterances", targetDepth)) { var unmarshaller = new ListUnmarshaller <SampleUtterance, SampleUtteranceUnmarshaller>(SampleUtteranceUnmarshaller.Instance); response.SampleUtterances = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("slotPriorities", targetDepth)) { var unmarshaller = new ListUnmarshaller <SlotPriority, SlotPriorityUnmarshaller>(SlotPriorityUnmarshaller.Instance); response.SlotPriorities = unmarshaller.Unmarshall(context); continue; } } return(response); }