/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace CloudWatchEvidently { namespace Model { LaunchExecution::LaunchExecution() : m_endedTimeHasBeenSet(false), m_startedTimeHasBeenSet(false) { } LaunchExecution::LaunchExecution(JsonView jsonValue) : m_endedTimeHasBeenSet(false), m_startedTimeHasBeenSet(false) { *this = jsonValue; } LaunchExecution& LaunchExecution::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("endedTime")) { m_endedTime = jsonValue.GetDouble("endedTime"); m_endedTimeHasBeenSet = true; } if(jsonValue.ValueExists("startedTime")) { m_startedTime = jsonValue.GetDouble("startedTime"); m_startedTimeHasBeenSet = true; } return *this; } JsonValue LaunchExecution::Jsonize() const { JsonValue payload; if(m_endedTimeHasBeenSet) { payload.WithDouble("endedTime", m_endedTime.SecondsWithMSPrecision()); } if(m_startedTimeHasBeenSet) { payload.WithDouble("startedTime", m_startedTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws