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-kinesisanalyticsv2/source/model/CheckpointConfigurationUpdate.cpp

112 lines
3.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesisanalyticsv2/model/CheckpointConfigurationUpdate.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace KinesisAnalyticsV2
{
namespace Model
{
CheckpointConfigurationUpdate::CheckpointConfigurationUpdate() :
m_configurationTypeUpdate(ConfigurationType::NOT_SET),
m_configurationTypeUpdateHasBeenSet(false),
m_checkpointingEnabledUpdate(false),
m_checkpointingEnabledUpdateHasBeenSet(false),
m_checkpointIntervalUpdate(0),
m_checkpointIntervalUpdateHasBeenSet(false),
m_minPauseBetweenCheckpointsUpdate(0),
m_minPauseBetweenCheckpointsUpdateHasBeenSet(false)
{
}
CheckpointConfigurationUpdate::CheckpointConfigurationUpdate(JsonView jsonValue) :
m_configurationTypeUpdate(ConfigurationType::NOT_SET),
m_configurationTypeUpdateHasBeenSet(false),
m_checkpointingEnabledUpdate(false),
m_checkpointingEnabledUpdateHasBeenSet(false),
m_checkpointIntervalUpdate(0),
m_checkpointIntervalUpdateHasBeenSet(false),
m_minPauseBetweenCheckpointsUpdate(0),
m_minPauseBetweenCheckpointsUpdateHasBeenSet(false)
{
*this = jsonValue;
}
CheckpointConfigurationUpdate& CheckpointConfigurationUpdate::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ConfigurationTypeUpdate"))
{
m_configurationTypeUpdate = ConfigurationTypeMapper::GetConfigurationTypeForName(jsonValue.GetString("ConfigurationTypeUpdate"));
m_configurationTypeUpdateHasBeenSet = true;
}
if(jsonValue.ValueExists("CheckpointingEnabledUpdate"))
{
m_checkpointingEnabledUpdate = jsonValue.GetBool("CheckpointingEnabledUpdate");
m_checkpointingEnabledUpdateHasBeenSet = true;
}
if(jsonValue.ValueExists("CheckpointIntervalUpdate"))
{
m_checkpointIntervalUpdate = jsonValue.GetInt64("CheckpointIntervalUpdate");
m_checkpointIntervalUpdateHasBeenSet = true;
}
if(jsonValue.ValueExists("MinPauseBetweenCheckpointsUpdate"))
{
m_minPauseBetweenCheckpointsUpdate = jsonValue.GetInt64("MinPauseBetweenCheckpointsUpdate");
m_minPauseBetweenCheckpointsUpdateHasBeenSet = true;
}
return *this;
}
JsonValue CheckpointConfigurationUpdate::Jsonize() const
{
JsonValue payload;
if(m_configurationTypeUpdateHasBeenSet)
{
payload.WithString("ConfigurationTypeUpdate", ConfigurationTypeMapper::GetNameForConfigurationType(m_configurationTypeUpdate));
}
if(m_checkpointingEnabledUpdateHasBeenSet)
{
payload.WithBool("CheckpointingEnabledUpdate", m_checkpointingEnabledUpdate);
}
if(m_checkpointIntervalUpdateHasBeenSet)
{
payload.WithInt64("CheckpointIntervalUpdate", m_checkpointIntervalUpdate);
}
if(m_minPauseBetweenCheckpointsUpdateHasBeenSet)
{
payload.WithInt64("MinPauseBetweenCheckpointsUpdate", m_minPauseBetweenCheckpointsUpdate);
}
return payload;
}
} // namespace Model
} // namespace KinesisAnalyticsV2
} // namespace Aws