AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBackupVaultRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API CreateBackupVaultRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateBackupVault"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
45 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
46 template<typename BackupVaultNameT = Aws::String>
47 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
48 template<typename BackupVaultNameT = Aws::String>
49 CreateBackupVaultRequest& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
51
53
56 inline const Aws::Map<Aws::String, Aws::String>& GetBackupVaultTags() const { return m_backupVaultTags; }
57 inline bool BackupVaultTagsHasBeenSet() const { return m_backupVaultTagsHasBeenSet; }
58 template<typename BackupVaultTagsT = Aws::Map<Aws::String, Aws::String>>
59 void SetBackupVaultTags(BackupVaultTagsT&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags = std::forward<BackupVaultTagsT>(value); }
60 template<typename BackupVaultTagsT = Aws::Map<Aws::String, Aws::String>>
61 CreateBackupVaultRequest& WithBackupVaultTags(BackupVaultTagsT&& value) { SetBackupVaultTags(std::forward<BackupVaultTagsT>(value)); return *this;}
62 template<typename BackupVaultTagsKeyT = Aws::String, typename BackupVaultTagsValueT = Aws::String>
63 CreateBackupVaultRequest& AddBackupVaultTags(BackupVaultTagsKeyT&& key, BackupVaultTagsValueT&& value) {
64 m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(std::forward<BackupVaultTagsKeyT>(key), std::forward<BackupVaultTagsValueT>(value)); return *this;
65 }
67
69
74 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
75 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
76 template<typename EncryptionKeyArnT = Aws::String>
77 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
78 template<typename EncryptionKeyArnT = Aws::String>
79 CreateBackupVaultRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
81
83
89 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
90 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
91 template<typename CreatorRequestIdT = Aws::String>
92 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
93 template<typename CreatorRequestIdT = Aws::String>
94 CreateBackupVaultRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
96 private:
97
98 Aws::String m_backupVaultName;
99 bool m_backupVaultNameHasBeenSet = false;
100
101 Aws::Map<Aws::String, Aws::String> m_backupVaultTags;
102 bool m_backupVaultTagsHasBeenSet = false;
103
104 Aws::String m_encryptionKeyArn;
105 bool m_encryptionKeyArnHasBeenSet = false;
106
108 bool m_creatorRequestIdHasBeenSet = true;
109 };
110
111} // namespace Model
112} // namespace Backup
113} // namespace Aws
CreateBackupVaultRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
CreateBackupVaultRequest & WithBackupVaultName(BackupVaultNameT &&value)
CreateBackupVaultRequest & WithBackupVaultTags(BackupVaultTagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetBackupVaultTags() const
AWS_BACKUP_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateBackupVaultRequest & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
AWS_BACKUP_API CreateBackupVaultRequest()=default
CreateBackupVaultRequest & AddBackupVaultTags(BackupVaultTagsKeyT &&key, BackupVaultTagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String