62 lines
1.3 KiB
C++
62 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/kinesisanalyticsv2/model/ApplicationSnapshotConfiguration.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
|
|
{
|
|
|
|
ApplicationSnapshotConfiguration::ApplicationSnapshotConfiguration() :
|
|
m_snapshotsEnabled(false),
|
|
m_snapshotsEnabledHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
ApplicationSnapshotConfiguration::ApplicationSnapshotConfiguration(JsonView jsonValue) :
|
|
m_snapshotsEnabled(false),
|
|
m_snapshotsEnabledHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
ApplicationSnapshotConfiguration& ApplicationSnapshotConfiguration::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("SnapshotsEnabled"))
|
|
{
|
|
m_snapshotsEnabled = jsonValue.GetBool("SnapshotsEnabled");
|
|
|
|
m_snapshotsEnabledHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue ApplicationSnapshotConfiguration::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_snapshotsEnabledHasBeenSet)
|
|
{
|
|
payload.WithBool("SnapshotsEnabled", m_snapshotsEnabled);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace KinesisAnalyticsV2
|
|
} // namespace Aws
|