/** * 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 CleanRooms { namespace Model { ProtectedQueryStatistics::ProtectedQueryStatistics() : m_totalDurationInMillis(0), m_totalDurationInMillisHasBeenSet(false) { } ProtectedQueryStatistics::ProtectedQueryStatistics(JsonView jsonValue) : m_totalDurationInMillis(0), m_totalDurationInMillisHasBeenSet(false) { *this = jsonValue; } ProtectedQueryStatistics& ProtectedQueryStatistics::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("totalDurationInMillis")) { m_totalDurationInMillis = jsonValue.GetInt64("totalDurationInMillis"); m_totalDurationInMillisHasBeenSet = true; } return *this; } JsonValue ProtectedQueryStatistics::Jsonize() const { JsonValue payload; if(m_totalDurationInMillisHasBeenSet) { payload.WithInt64("totalDurationInMillis", m_totalDurationInMillis); } return payload; } } // namespace Model } // namespace CleanRooms } // namespace Aws