AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateBackupVaultRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Backup {
17namespace Model {
18
22 public:
23 AWS_BACKUP_API CreateBackupVaultRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateBackupVault"; }
30
31 AWS_BACKUP_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
41 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
42 template <typename BackupVaultNameT = Aws::String>
43 void SetBackupVaultName(BackupVaultNameT&& value) {
44 m_backupVaultNameHasBeenSet = true;
45 m_backupVaultName = std::forward<BackupVaultNameT>(value);
46 }
47 template <typename BackupVaultNameT = Aws::String>
48 CreateBackupVaultRequest& WithBackupVaultName(BackupVaultNameT&& value) {
49 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Map<Aws::String, Aws::String>& GetBackupVaultTags() const { return m_backupVaultTags; }
59 inline bool BackupVaultTagsHasBeenSet() const { return m_backupVaultTagsHasBeenSet; }
60 template <typename BackupVaultTagsT = Aws::Map<Aws::String, Aws::String>>
61 void SetBackupVaultTags(BackupVaultTagsT&& value) {
62 m_backupVaultTagsHasBeenSet = true;
63 m_backupVaultTags = std::forward<BackupVaultTagsT>(value);
64 }
65 template <typename BackupVaultTagsT = Aws::Map<Aws::String, Aws::String>>
66 CreateBackupVaultRequest& WithBackupVaultTags(BackupVaultTagsT&& value) {
67 SetBackupVaultTags(std::forward<BackupVaultTagsT>(value));
68 return *this;
69 }
70 template <typename BackupVaultTagsKeyT = Aws::String, typename BackupVaultTagsValueT = Aws::String>
71 CreateBackupVaultRequest& AddBackupVaultTags(BackupVaultTagsKeyT&& key, BackupVaultTagsValueT&& value) {
72 m_backupVaultTagsHasBeenSet = true;
73 m_backupVaultTags.emplace(std::forward<BackupVaultTagsKeyT>(key), std::forward<BackupVaultTagsValueT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
85 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
86 template <typename EncryptionKeyArnT = Aws::String>
87 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
88 m_encryptionKeyArnHasBeenSet = true;
89 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
90 }
91 template <typename EncryptionKeyArnT = Aws::String>
92 CreateBackupVaultRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
93 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
94 return *this;
95 }
97
99
105 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
106 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
107 template <typename CreatorRequestIdT = Aws::String>
108 void SetCreatorRequestId(CreatorRequestIdT&& value) {
109 m_creatorRequestIdHasBeenSet = true;
110 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
111 }
112 template <typename CreatorRequestIdT = Aws::String>
113 CreateBackupVaultRequest& WithCreatorRequestId(CreatorRequestIdT&& value) {
114 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_backupVaultName;
120
121 Aws::Map<Aws::String, Aws::String> m_backupVaultTags;
122
123 Aws::String m_encryptionKeyArn;
124
126 bool m_backupVaultNameHasBeenSet = false;
127 bool m_backupVaultTagsHasBeenSet = false;
128 bool m_encryptionKeyArnHasBeenSet = false;
129 bool m_creatorRequestIdHasBeenSet = true;
130};
131
132} // namespace Model
133} // namespace Backup
134} // 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