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/BackupVaultListMember.cpp

136 lines
2.9 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/backup/model/BackupVaultListMember.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
{
BackupVaultListMember::BackupVaultListMember() :
m_backupVaultNameHasBeenSet(false),
m_backupVaultArnHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_encryptionKeyArnHasBeenSet(false),
m_creatorRequestIdHasBeenSet(false),
m_numberOfRecoveryPoints(0),
m_numberOfRecoveryPointsHasBeenSet(false)
{
}
BackupVaultListMember::BackupVaultListMember(JsonView jsonValue) :
m_backupVaultNameHasBeenSet(false),
m_backupVaultArnHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_encryptionKeyArnHasBeenSet(false),
m_creatorRequestIdHasBeenSet(false),
m_numberOfRecoveryPoints(0),
m_numberOfRecoveryPointsHasBeenSet(false)
{
*this = jsonValue;
}
BackupVaultListMember& BackupVaultListMember::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("BackupVaultName"))
{
m_backupVaultName = jsonValue.GetString("BackupVaultName");
m_backupVaultNameHasBeenSet = true;
}
if(jsonValue.ValueExists("BackupVaultArn"))
{
m_backupVaultArn = jsonValue.GetString("BackupVaultArn");
m_backupVaultArnHasBeenSet = true;
}
if(jsonValue.ValueExists("CreationDate"))
{
m_creationDate = jsonValue.GetDouble("CreationDate");
m_creationDateHasBeenSet = true;
}
if(jsonValue.ValueExists("EncryptionKeyArn"))
{
m_encryptionKeyArn = jsonValue.GetString("EncryptionKeyArn");
m_encryptionKeyArnHasBeenSet = true;
}
if(jsonValue.ValueExists("CreatorRequestId"))
{
m_creatorRequestId = jsonValue.GetString("CreatorRequestId");
m_creatorRequestIdHasBeenSet = true;
}
if(jsonValue.ValueExists("NumberOfRecoveryPoints"))
{
m_numberOfRecoveryPoints = jsonValue.GetInt64("NumberOfRecoveryPoints");
m_numberOfRecoveryPointsHasBeenSet = true;
}
return *this;
}
JsonValue BackupVaultListMember::Jsonize() const
{
JsonValue payload;
if(m_backupVaultNameHasBeenSet)
{
payload.WithString("BackupVaultName", m_backupVaultName);
}
if(m_backupVaultArnHasBeenSet)
{
payload.WithString("BackupVaultArn", m_backupVaultArn);
}
if(m_creationDateHasBeenSet)
{
payload.WithDouble("CreationDate", m_creationDate.SecondsWithMSPrecision());
}
if(m_encryptionKeyArnHasBeenSet)
{
payload.WithString("EncryptionKeyArn", m_encryptionKeyArn);
}
if(m_creatorRequestIdHasBeenSet)
{
payload.WithString("CreatorRequestId", m_creatorRequestId);
}
if(m_numberOfRecoveryPointsHasBeenSet)
{
payload.WithInt64("NumberOfRecoveryPoints", m_numberOfRecoveryPoints);
}
return payload;
}
} // namespace Model
} // namespace Backup
} // namespace Aws