This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iotanalytics/source/model/ReprocessingSummary.cpp

90 lines
1.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotanalytics/model/ReprocessingSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
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