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-backup/source/model/RecoveryPointCreator.cpp

105 lines
2.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/backup/model/RecoveryPointCreator.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Backup
{
namespace Model
{
RecoveryPointCreator::RecoveryPointCreator() :
m_backupPlanIdHasBeenSet(false),
m_backupPlanArnHasBeenSet(false),
m_backupPlanVersionHasBeenSet(false),
m_backupRuleIdHasBeenSet(false)
{
}
RecoveryPointCreator::RecoveryPointCreator(JsonView jsonValue) :
m_backupPlanIdHasBeenSet(false),
m_backupPlanArnHasBeenSet(false),
m_backupPlanVersionHasBeenSet(false),
m_backupRuleIdHasBeenSet(false)
{
*this = jsonValue;
}
RecoveryPointCreator& RecoveryPointCreator::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("BackupPlanId"))
{
m_backupPlanId = jsonValue.GetString("BackupPlanId");
m_backupPlanIdHasBeenSet = true;
}
if(jsonValue.ValueExists("BackupPlanArn"))
{
m_backupPlanArn = jsonValue.GetString("BackupPlanArn");
m_backupPlanArnHasBeenSet = true;
}
if(jsonValue.ValueExists("BackupPlanVersion"))
{
m_backupPlanVersion = jsonValue.GetString("BackupPlanVersion");
m_backupPlanVersionHasBeenSet = true;
}
if(jsonValue.ValueExists("BackupRuleId"))
{
m_backupRuleId = jsonValue.GetString("BackupRuleId");
m_backupRuleIdHasBeenSet = true;
}
return *this;
}
JsonValue RecoveryPointCreator::Jsonize() const
{
JsonValue payload;
if(m_backupPlanIdHasBeenSet)
{
payload.WithString("BackupPlanId", m_backupPlanId);
}
if(m_backupPlanArnHasBeenSet)
{
payload.WithString("BackupPlanArn", m_backupPlanArn);
}
if(m_backupPlanVersionHasBeenSet)
{
payload.WithString("BackupPlanVersion", m_backupPlanVersion);
}
if(m_backupRuleIdHasBeenSet)
{
payload.WithString("BackupRuleId", m_backupRuleId);
}
return payload;
}
} // namespace Model
} // namespace Backup
} // namespace Aws