/** * 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 IoTAnalytics { namespace Model { ReprocessingSummary::ReprocessingSummary() : m_idHasBeenSet(false), m_status(ReprocessingStatus::NOT_SET), m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false) { } ReprocessingSummary::ReprocessingSummary(JsonView jsonValue) : m_idHasBeenSet(false), m_status(ReprocessingStatus::NOT_SET), m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false) { *this = jsonValue; } ReprocessingSummary& ReprocessingSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("status")) { m_status = ReprocessingStatusMapper::GetReprocessingStatusForName(jsonValue.GetString("status")); m_statusHasBeenSet = true; } if(jsonValue.ValueExists("creationTime")) { m_creationTime = jsonValue.GetDouble("creationTime"); m_creationTimeHasBeenSet = true; } return *this; } JsonValue ReprocessingSummary::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_statusHasBeenSet) { payload.WithString("status", ReprocessingStatusMapper::GetNameForReprocessingStatus(m_status)); } if(m_creationTimeHasBeenSet) { payload.WithDouble("creationTime", m_creationTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace IoTAnalytics } // namespace Aws