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-dms/source/model/ReplicationPendingModifiedValues.cpp

109 lines
2.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dms/model/ReplicationPendingModifiedValues.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DatabaseMigrationService
{
namespace Model
{
ReplicationPendingModifiedValues::ReplicationPendingModifiedValues() :
m_replicationInstanceClassHasBeenSet(false),
m_allocatedStorage(0),
m_allocatedStorageHasBeenSet(false),
m_multiAZ(false),
m_multiAZHasBeenSet(false),
m_engineVersionHasBeenSet(false)
{
}
ReplicationPendingModifiedValues::ReplicationPendingModifiedValues(JsonView jsonValue) :
m_replicationInstanceClassHasBeenSet(false),
m_allocatedStorage(0),
m_allocatedStorageHasBeenSet(false),
m_multiAZ(false),
m_multiAZHasBeenSet(false),
m_engineVersionHasBeenSet(false)
{
*this = jsonValue;
}
ReplicationPendingModifiedValues& ReplicationPendingModifiedValues::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ReplicationInstanceClass"))
{
m_replicationInstanceClass = jsonValue.GetString("ReplicationInstanceClass");
m_replicationInstanceClassHasBeenSet = true;
}
if(jsonValue.ValueExists("AllocatedStorage"))
{
m_allocatedStorage = jsonValue.GetInteger("AllocatedStorage");
m_allocatedStorageHasBeenSet = true;
}
if(jsonValue.ValueExists("MultiAZ"))
{
m_multiAZ = jsonValue.GetBool("MultiAZ");
m_multiAZHasBeenSet = true;
}
if(jsonValue.ValueExists("EngineVersion"))
{
m_engineVersion = jsonValue.GetString("EngineVersion");
m_engineVersionHasBeenSet = true;
}
return *this;
}
JsonValue ReplicationPendingModifiedValues::Jsonize() const
{
JsonValue payload;
if(m_replicationInstanceClassHasBeenSet)
{
payload.WithString("ReplicationInstanceClass", m_replicationInstanceClass);
}
if(m_allocatedStorageHasBeenSet)
{
payload.WithInteger("AllocatedStorage", m_allocatedStorage);
}
if(m_multiAZHasBeenSet)
{
payload.WithBool("MultiAZ", m_multiAZ);
}
if(m_engineVersionHasBeenSet)
{
payload.WithString("EngineVersion", m_engineVersion);
}
return payload;
}
} // namespace Model
} // namespace DatabaseMigrationService
} // namespace Aws