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/MathActivity.cpp

105 lines
1.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotanalytics/model/MathActivity.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
{
MathActivity::MathActivity() :
m_nameHasBeenSet(false),
m_attributeHasBeenSet(false),
m_mathHasBeenSet(false),
m_nextHasBeenSet(false)
{
}
MathActivity::MathActivity(JsonView jsonValue) :
m_nameHasBeenSet(false),
m_attributeHasBeenSet(false),
m_mathHasBeenSet(false),
m_nextHasBeenSet(false)
{
*this = jsonValue;
}
MathActivity& MathActivity::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("name"))
{
m_name = jsonValue.GetString("name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("attribute"))
{
m_attribute = jsonValue.GetString("attribute");
m_attributeHasBeenSet = true;
}
if(jsonValue.ValueExists("math"))
{
m_math = jsonValue.GetString("math");
m_mathHasBeenSet = true;
}
if(jsonValue.ValueExists("next"))
{
m_next = jsonValue.GetString("next");
m_nextHasBeenSet = true;
}
return *this;
}
JsonValue MathActivity::Jsonize() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_attributeHasBeenSet)
{
payload.WithString("attribute", m_attribute);
}
if(m_mathHasBeenSet)
{
payload.WithString("math", m_math);
}
if(m_nextHasBeenSet)
{
payload.WithString("next", m_next);
}
return payload;
}
} // namespace Model
} // namespace IoTAnalytics
} // namespace Aws