60 lines
976 B
C++
60 lines
976 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/iotanalytics/model/Schedule.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
|
|
{
|
|
|
|
Schedule::Schedule() :
|
|
m_expressionHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Schedule::Schedule(JsonView jsonValue) :
|
|
m_expressionHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
Schedule& Schedule::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("expression"))
|
|
{
|
|
m_expression = jsonValue.GetString("expression");
|
|
|
|
m_expressionHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue Schedule::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_expressionHasBeenSet)
|
|
{
|
|
payload.WithString("expression", m_expression);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace IoTAnalytics
|
|
} // namespace Aws
|