public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetMaintenanceWindowExecutionTaskResponse response = new GetMaintenanceWindowExecutionTaskResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MaxConcurrency", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.MaxConcurrency = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MaxErrors", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.MaxErrors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Priority", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.Priority = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceRole", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ServiceRole = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusDetails", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.StatusDetails = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TaskArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.TaskArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TaskExecutionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.TaskExecutionId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TaskParameters", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Dictionary<string, MaintenanceWindowTaskParameterValueExpression>, DictionaryUnmarshaller<string, MaintenanceWindowTaskParameterValueExpression, StringUnmarshaller, MaintenanceWindowTaskParameterValueExpressionUnmarshaller>>(new DictionaryUnmarshaller<string, MaintenanceWindowTaskParameterValueExpression, StringUnmarshaller, MaintenanceWindowTaskParameterValueExpressionUnmarshaller>(StringUnmarshaller.Instance, MaintenanceWindowTaskParameterValueExpressionUnmarshaller.Instance));
response.TaskParameters = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Type = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("WindowExecutionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.WindowExecutionId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}