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/include/aws/backup/model/GetBackupVaultAccessPolicyResult.h

189 lines
7.1 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/backup/Backup_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Backup
{
namespace Model
{
class AWS_BACKUP_API GetBackupVaultAccessPolicyResult
{
public:
GetBackupVaultAccessPolicyResult();
GetBackupVaultAccessPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetBackupVaultAccessPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of a logical container where backups are stored. Backup vaults are
* identified by names that are unique to the account used to create them and the
* Region where they are created. They consist of lowercase letters, numbers, and
* hyphens.</p>
*/
inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
/**
* <p>The name of a logical container where backups are stored. Backup vaults are
* identified by names that are unique to the account used to create them and the
* Region where they are created. They consist of lowercase letters, numbers, and
* hyphens.</p>
*/
inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultName = value; }
/**
* <p>The name of a logical container where backups are stored. Backup vaults are
* identified by names that are unique to the account used to create them and the
* Region where they are created. They consist of lowercase letters, numbers, and
* hyphens.</p>
*/
inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultName = std::move(value); }
/**
* <p>The name of a logical container where backups are stored. Backup vaults are
* identified by names that are unique to the account used to create them and the
* Region where they are created. They consist of lowercase letters, numbers, and
* hyphens.</p>
*/
inline void SetBackupVaultName(const char* value) { m_backupVaultName.assign(value); }
/**
* <p>The name of a logical container where backups are stored. Backup vaults are
* identified by names that are unique to the account used to create them and the
* Region where they are created. They consist of lowercase letters, numbers, and
* hyphens.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
/**
* <p>The name of a logical container where backups are stored. Backup vaults are
* identified by names that are unique to the account used to create them and the
* Region where they are created. They consist of lowercase letters, numbers, and
* hyphens.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
/**
* <p>The name of a logical container where backups are stored. Backup vaults are
* identified by names that are unique to the account used to create them and the
* Region where they are created. They consist of lowercase letters, numbers, and
* hyphens.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for
* example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.</p>
*/
inline const Aws::String& GetBackupVaultArn() const{ return m_backupVaultArn; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for
* example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.</p>
*/
inline void SetBackupVaultArn(const Aws::String& value) { m_backupVaultArn = value; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for
* example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.</p>
*/
inline void SetBackupVaultArn(Aws::String&& value) { m_backupVaultArn = std::move(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for
* example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.</p>
*/
inline void SetBackupVaultArn(const char* value) { m_backupVaultArn.assign(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for
* example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithBackupVaultArn(const Aws::String& value) { SetBackupVaultArn(value); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for
* example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithBackupVaultArn(Aws::String&& value) { SetBackupVaultArn(std::move(value)); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for
* example,
* <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithBackupVaultArn(const char* value) { SetBackupVaultArn(value); return *this;}
/**
* <p>The backup vault access policy document in JSON format.</p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p>The backup vault access policy document in JSON format.</p>
*/
inline void SetPolicy(const Aws::String& value) { m_policy = value; }
/**
* <p>The backup vault access policy document in JSON format.</p>
*/
inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
/**
* <p>The backup vault access policy document in JSON format.</p>
*/
inline void SetPolicy(const char* value) { m_policy.assign(value); }
/**
* <p>The backup vault access policy document in JSON format.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p>The backup vault access policy document in JSON format.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The backup vault access policy document in JSON format.</p>
*/
inline GetBackupVaultAccessPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
private:
Aws::String m_backupVaultName;
Aws::String m_backupVaultArn;
Aws::String m_policy;
};
} // namespace Model
} // namespace Backup
} // namespace Aws