public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetTrailStatusResponse response = new GetTrailStatusResponse(); context.Read(); UnmarshallResult(context, response); return(response); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetTrailStatusResponse response = new GetTrailStatusResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("IsLogging", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; response.IsLogging = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LatestDeliveryError", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LatestDeliveryError = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LatestDeliveryTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LatestDeliveryTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LatestNotificationError", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LatestNotificationError = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LatestNotificationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LatestNotificationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StartLoggingTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.StartLoggingTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StopLoggingTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.StopLoggingTime = unmarshaller.Unmarshall(context); continue; } } return(response); }
public static GetTrailStatusResponse Unmarshall(UnmarshallerContext context) { GetTrailStatusResponse getTrailStatusResponse = new GetTrailStatusResponse(); getTrailStatusResponse.HttpResponse = context.HttpResponse; getTrailStatusResponse.RequestId = context.StringValue("GetTrailStatus.RequestId"); getTrailStatusResponse.IsLogging = context.BooleanValue("GetTrailStatus.IsLogging"); getTrailStatusResponse.LatestDeliveryError = context.StringValue("GetTrailStatus.LatestDeliveryError"); getTrailStatusResponse.LatestDeliveryTime = context.StringValue("GetTrailStatus.LatestDeliveryTime"); getTrailStatusResponse.StartLoggingTime = context.StringValue("GetTrailStatus.StartLoggingTime"); getTrailStatusResponse.StopLoggingTime = context.StringValue("GetTrailStatus.StopLoggingTime"); return(getTrailStatusResponse); }
public static GetTrailStatusResponse Unmarshall(UnmarshallerContext _ctx) { GetTrailStatusResponse getTrailStatusResponse = new GetTrailStatusResponse(); getTrailStatusResponse.HttpResponse = _ctx.HttpResponse; getTrailStatusResponse.LatestDeliveryLogServiceTime = _ctx.StringValue("GetTrailStatus.LatestDeliveryLogServiceTime"); getTrailStatusResponse.RequestId = _ctx.StringValue("GetTrailStatus.RequestId"); getTrailStatusResponse.LatestDeliveryLogServiceError = _ctx.StringValue("GetTrailStatus.LatestDeliveryLogServiceError"); getTrailStatusResponse.StartLoggingTime = _ctx.StringValue("GetTrailStatus.StartLoggingTime"); getTrailStatusResponse.OssBucketStatus = _ctx.BooleanValue("GetTrailStatus.OssBucketStatus"); getTrailStatusResponse.LatestDeliveryError = _ctx.StringValue("GetTrailStatus.LatestDeliveryError"); getTrailStatusResponse.StopLoggingTime = _ctx.StringValue("GetTrailStatus.StopLoggingTime"); getTrailStatusResponse.SlsLogStoreStatus = _ctx.BooleanValue("GetTrailStatus.SlsLogStoreStatus"); getTrailStatusResponse.LatestDeliveryTime = _ctx.StringValue("GetTrailStatus.LatestDeliveryTime"); getTrailStatusResponse.IsLogging = _ctx.BooleanValue("GetTrailStatus.IsLogging"); return(getTrailStatusResponse); }
private static void UnmarshallResult(JsonUnmarshallerContext context, GetTrailStatusResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.TestExpression("IsLogging", targetDepth)) { context.Read(); response.IsLogging = BoolUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestDeliveryError", targetDepth)) { context.Read(); response.LatestDeliveryError = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestNotificationError", targetDepth)) { context.Read(); response.LatestNotificationError = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestDeliveryTime", targetDepth)) { context.Read(); response.LatestDeliveryTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestNotificationTime", targetDepth)) { context.Read(); response.LatestNotificationTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StartLoggingTime", targetDepth)) { context.Read(); response.StartLoggingTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("StopLoggingTime", targetDepth)) { context.Read(); response.StopLoggingTime = DateTimeUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestDeliveryAttemptTime", targetDepth)) { context.Read(); response.LatestDeliveryAttemptTime = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestNotificationAttemptTime", targetDepth)) { context.Read(); response.LatestNotificationAttemptTime = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestNotificationAttemptSucceeded", targetDepth)) { context.Read(); response.LatestNotificationAttemptSucceeded = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("LatestDeliveryAttemptSucceeded", targetDepth)) { context.Read(); response.LatestDeliveryAttemptSucceeded = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TimeLoggingStarted", targetDepth)) { context.Read(); response.TimeLoggingStarted = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("TimeLoggingStopped", targetDepth)) { context.Read(); response.TimeLoggingStopped = StringUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.CurrentDepth <= originalDepth) { return; } } return; }