AWS SDK for C++  1.9.1
AWS SDK for C++
CreateBackupVaultRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Backup
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateBackupVault"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
42  inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
43 
50  inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
51 
58  inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
59 
66  inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
67 
74  inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
75 
82  inline CreateBackupVaultRequest& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
83 
90  inline CreateBackupVaultRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
91 
98  inline CreateBackupVaultRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
99 
100 
105  inline const Aws::Map<Aws::String, Aws::String>& GetBackupVaultTags() const{ return m_backupVaultTags; }
106 
111  inline bool BackupVaultTagsHasBeenSet() const { return m_backupVaultTagsHasBeenSet; }
112 
117  inline void SetBackupVaultTags(const Aws::Map<Aws::String, Aws::String>& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags = value; }
118 
123  inline void SetBackupVaultTags(Aws::Map<Aws::String, Aws::String>&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags = std::move(value); }
124 
129  inline CreateBackupVaultRequest& WithBackupVaultTags(const Aws::Map<Aws::String, Aws::String>& value) { SetBackupVaultTags(value); return *this;}
130 
135  inline CreateBackupVaultRequest& WithBackupVaultTags(Aws::Map<Aws::String, Aws::String>&& value) { SetBackupVaultTags(std::move(value)); return *this;}
136 
141  inline CreateBackupVaultRequest& AddBackupVaultTags(const Aws::String& key, const Aws::String& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, value); return *this; }
142 
147  inline CreateBackupVaultRequest& AddBackupVaultTags(Aws::String&& key, const Aws::String& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(std::move(key), value); return *this; }
148 
153  inline CreateBackupVaultRequest& AddBackupVaultTags(const Aws::String& key, Aws::String&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, std::move(value)); return *this; }
154 
159  inline CreateBackupVaultRequest& AddBackupVaultTags(Aws::String&& key, Aws::String&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(std::move(key), std::move(value)); return *this; }
160 
165  inline CreateBackupVaultRequest& AddBackupVaultTags(const char* key, Aws::String&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, std::move(value)); return *this; }
166 
171  inline CreateBackupVaultRequest& AddBackupVaultTags(Aws::String&& key, const char* value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(std::move(key), value); return *this; }
172 
177  inline CreateBackupVaultRequest& AddBackupVaultTags(const char* key, const char* value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, value); return *this; }
178 
179 
185  inline const Aws::String& GetEncryptionKeyArn() const{ return m_encryptionKeyArn; }
186 
192  inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
193 
199  inline void SetEncryptionKeyArn(const Aws::String& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = value; }
200 
206  inline void SetEncryptionKeyArn(Aws::String&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::move(value); }
207 
213  inline void SetEncryptionKeyArn(const char* value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn.assign(value); }
214 
220  inline CreateBackupVaultRequest& WithEncryptionKeyArn(const Aws::String& value) { SetEncryptionKeyArn(value); return *this;}
221 
227  inline CreateBackupVaultRequest& WithEncryptionKeyArn(Aws::String&& value) { SetEncryptionKeyArn(std::move(value)); return *this;}
228 
234  inline CreateBackupVaultRequest& WithEncryptionKeyArn(const char* value) { SetEncryptionKeyArn(value); return *this;}
235 
236 
241  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
242 
247  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
248 
253  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
254 
259  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
260 
265  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
266 
271  inline CreateBackupVaultRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
272 
277  inline CreateBackupVaultRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
278 
283  inline CreateBackupVaultRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
284 
285  private:
286 
287  Aws::String m_backupVaultName;
288  bool m_backupVaultNameHasBeenSet;
289 
290  Aws::Map<Aws::String, Aws::String> m_backupVaultTags;
291  bool m_backupVaultTagsHasBeenSet;
292 
293  Aws::String m_encryptionKeyArn;
294  bool m_encryptionKeyArnHasBeenSet;
295 
296  Aws::String m_creatorRequestId;
297  bool m_creatorRequestIdHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace Backup
302 } // namespace Aws
Aws::Backup::Model::CreateBackupVaultRequest::SetBackupVaultName
void SetBackupVaultName(Aws::String &&value)
Definition: CreateBackupVaultRequest.h:66
Aws::Backup::Model::CreateBackupVaultRequest::WithBackupVaultTags
CreateBackupVaultRequest & WithBackupVaultTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateBackupVaultRequest.h:129
Aws::Backup::Model::CreateBackupVaultRequest::BackupVaultTagsHasBeenSet
bool BackupVaultTagsHasBeenSet() const
Definition: CreateBackupVaultRequest.h:111
Aws::Backup::Model::CreateBackupVaultRequest::AddBackupVaultTags
CreateBackupVaultRequest & AddBackupVaultTags(Aws::String &&key, const char *value)
Definition: CreateBackupVaultRequest.h:171
Aws::Backup::Model::CreateBackupVaultRequest::SetBackupVaultTags
void SetBackupVaultTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateBackupVaultRequest.h:123
Aws::Backup::Model::CreateBackupVaultRequest::GetBackupVaultName
const Aws::String & GetBackupVaultName() const
Definition: CreateBackupVaultRequest.h:42
Aws::Backup::Model::CreateBackupVaultRequest::SetEncryptionKeyArn
void SetEncryptionKeyArn(const Aws::String &value)
Definition: CreateBackupVaultRequest.h:199
Aws::Backup::Model::CreateBackupVaultRequest::SetEncryptionKeyArn
void SetEncryptionKeyArn(Aws::String &&value)
Definition: CreateBackupVaultRequest.h:206
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::CreateBackupVaultRequest::AddBackupVaultTags
CreateBackupVaultRequest & AddBackupVaultTags(const Aws::String &key, Aws::String &&value)
Definition: CreateBackupVaultRequest.h:153
Aws::Backup::Model::CreateBackupVaultRequest::SetEncryptionKeyArn
void SetEncryptionKeyArn(const char *value)
Definition: CreateBackupVaultRequest.h:213
Aws::Backup::Model::CreateBackupVaultRequest::AddBackupVaultTags
CreateBackupVaultRequest & AddBackupVaultTags(const char *key, const char *value)
Definition: CreateBackupVaultRequest.h:177
Aws::Backup::Model::CreateBackupVaultRequest::WithEncryptionKeyArn
CreateBackupVaultRequest & WithEncryptionKeyArn(const char *value)
Definition: CreateBackupVaultRequest.h:234
Aws::Backup::Model::CreateBackupVaultRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreateBackupVaultRequest.h:265
BackupRequest.h
Aws::Backup::Model::CreateBackupVaultRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreateBackupVaultRequest.h:259
Aws::Backup::Model::CreateBackupVaultRequest::SetBackupVaultName
void SetBackupVaultName(const char *value)
Definition: CreateBackupVaultRequest.h:74
Aws::Backup::Model::CreateBackupVaultRequest::EncryptionKeyArnHasBeenSet
bool EncryptionKeyArnHasBeenSet() const
Definition: CreateBackupVaultRequest.h:192
Aws::Backup::Model::CreateBackupVaultRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreateBackupVaultRequest.h:253
Aws::Backup::Model::CreateBackupVaultRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreateBackupVaultRequest.h:241
Aws::Backup::Model::CreateBackupVaultRequest::AddBackupVaultTags
CreateBackupVaultRequest & AddBackupVaultTags(const char *key, Aws::String &&value)
Definition: CreateBackupVaultRequest.h:165
Aws::Backup::Model::CreateBackupVaultRequest::WithBackupVaultName
CreateBackupVaultRequest & WithBackupVaultName(const char *value)
Definition: CreateBackupVaultRequest.h:98
Aws::Backup::Model::CreateBackupVaultRequest::WithBackupVaultTags
CreateBackupVaultRequest & WithBackupVaultTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateBackupVaultRequest.h:135
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::CreateBackupVaultRequest::WithCreatorRequestId
CreateBackupVaultRequest & WithCreatorRequestId(const Aws::String &value)
Definition: CreateBackupVaultRequest.h:271
Aws::Backup::Model::CreateBackupVaultRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreateBackupVaultRequest.h:247
Aws::Backup::Model::CreateBackupVaultRequest::WithEncryptionKeyArn
CreateBackupVaultRequest & WithEncryptionKeyArn(Aws::String &&value)
Definition: CreateBackupVaultRequest.h:227
Aws::Backup::Model::CreateBackupVaultRequest::WithBackupVaultName
CreateBackupVaultRequest & WithBackupVaultName(Aws::String &&value)
Definition: CreateBackupVaultRequest.h:90
Aws::Backup::Model::CreateBackupVaultRequest
Definition: CreateBackupVaultRequest.h:23
Aws::Backup::Model::CreateBackupVaultRequest::CreateBackupVaultRequest
CreateBackupVaultRequest()
AWSString.h
Aws::Backup::Model::CreateBackupVaultRequest::GetBackupVaultTags
const Aws::Map< Aws::String, Aws::String > & GetBackupVaultTags() const
Definition: CreateBackupVaultRequest.h:105
Aws::Backup::Model::CreateBackupVaultRequest::SetBackupVaultTags
void SetBackupVaultTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateBackupVaultRequest.h:117
Aws::Backup::Model::CreateBackupVaultRequest::WithCreatorRequestId
CreateBackupVaultRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreateBackupVaultRequest.h:277
Aws::Backup::Model::CreateBackupVaultRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateBackupVaultRequest.h:31
Aws::Backup::Model::CreateBackupVaultRequest::BackupVaultNameHasBeenSet
bool BackupVaultNameHasBeenSet() const
Definition: CreateBackupVaultRequest.h:50
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::CreateBackupVaultRequest::GetEncryptionKeyArn
const Aws::String & GetEncryptionKeyArn() const
Definition: CreateBackupVaultRequest.h:185
Aws::Backup::Model::CreateBackupVaultRequest::AddBackupVaultTags
CreateBackupVaultRequest & AddBackupVaultTags(Aws::String &&key, Aws::String &&value)
Definition: CreateBackupVaultRequest.h:159
Aws::Backup::Model::CreateBackupVaultRequest::WithEncryptionKeyArn
CreateBackupVaultRequest & WithEncryptionKeyArn(const Aws::String &value)
Definition: CreateBackupVaultRequest.h:220
Aws::Backup::Model::CreateBackupVaultRequest::AddBackupVaultTags
CreateBackupVaultRequest & AddBackupVaultTags(const Aws::String &key, const Aws::String &value)
Definition: CreateBackupVaultRequest.h:141
Aws::Backup::Model::CreateBackupVaultRequest::SetBackupVaultName
void SetBackupVaultName(const Aws::String &value)
Definition: CreateBackupVaultRequest.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::CreateBackupVaultRequest::WithBackupVaultName
CreateBackupVaultRequest & WithBackupVaultName(const Aws::String &value)
Definition: CreateBackupVaultRequest.h:82
Aws::Backup::Model::CreateBackupVaultRequest::AddBackupVaultTags
CreateBackupVaultRequest & AddBackupVaultTags(Aws::String &&key, const Aws::String &value)
Definition: CreateBackupVaultRequest.h:147
Aws::Backup::Model::CreateBackupVaultRequest::WithCreatorRequestId
CreateBackupVaultRequest & WithCreatorRequestId(const char *value)
Definition: CreateBackupVaultRequest.h:283
AWSMap.h
Aws::Backup::Model::CreateBackupVaultRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19