AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
13namespace Aws
14{
15namespace Backup
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BACKUP_API CreateBackupVaultRequest();
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_BACKUP_API Aws::String SerializePayload() const override;
34
35
37
43 inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
44 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
45 inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
46 inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
47 inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
48 inline CreateBackupVaultRequest& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
49 inline CreateBackupVaultRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
50 inline CreateBackupVaultRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetBackupVaultTags() const{ return m_backupVaultTags; }
58 inline bool BackupVaultTagsHasBeenSet() const { return m_backupVaultTagsHasBeenSet; }
59 inline void SetBackupVaultTags(const Aws::Map<Aws::String, Aws::String>& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags = value; }
60 inline void SetBackupVaultTags(Aws::Map<Aws::String, Aws::String>&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags = std::move(value); }
63 inline CreateBackupVaultRequest& AddBackupVaultTags(const Aws::String& key, const Aws::String& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, value); return *this; }
64 inline CreateBackupVaultRequest& AddBackupVaultTags(Aws::String&& key, const Aws::String& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(std::move(key), value); return *this; }
65 inline CreateBackupVaultRequest& AddBackupVaultTags(const Aws::String& key, Aws::String&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, std::move(value)); return *this; }
66 inline CreateBackupVaultRequest& AddBackupVaultTags(Aws::String&& key, Aws::String&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(std::move(key), std::move(value)); return *this; }
67 inline CreateBackupVaultRequest& AddBackupVaultTags(const char* key, Aws::String&& value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, std::move(value)); return *this; }
68 inline CreateBackupVaultRequest& AddBackupVaultTags(Aws::String&& key, const char* value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(std::move(key), value); return *this; }
69 inline CreateBackupVaultRequest& AddBackupVaultTags(const char* key, const char* value) { m_backupVaultTagsHasBeenSet = true; m_backupVaultTags.emplace(key, value); return *this; }
71
73
78 inline const Aws::String& GetEncryptionKeyArn() const{ return m_encryptionKeyArn; }
79 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
80 inline void SetEncryptionKeyArn(const Aws::String& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = value; }
81 inline void SetEncryptionKeyArn(Aws::String&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::move(value); }
82 inline void SetEncryptionKeyArn(const char* value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn.assign(value); }
84 inline CreateBackupVaultRequest& WithEncryptionKeyArn(Aws::String&& value) { SetEncryptionKeyArn(std::move(value)); return *this;}
85 inline CreateBackupVaultRequest& WithEncryptionKeyArn(const char* value) { SetEncryptionKeyArn(value); return *this;}
87
89
95 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
96 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
97 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
98 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
99 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
101 inline CreateBackupVaultRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
102 inline CreateBackupVaultRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
104 private:
105
106 Aws::String m_backupVaultName;
107 bool m_backupVaultNameHasBeenSet = false;
108
109 Aws::Map<Aws::String, Aws::String> m_backupVaultTags;
110 bool m_backupVaultTagsHasBeenSet = false;
111
112 Aws::String m_encryptionKeyArn;
113 bool m_encryptionKeyArnHasBeenSet = false;
114
115 Aws::String m_creatorRequestId;
116 bool m_creatorRequestIdHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Backup
121} // namespace Aws
CreateBackupVaultRequest & WithBackupVaultTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBackupVaultRequest & WithCreatorRequestId(Aws::String &&value)
CreateBackupVaultRequest & AddBackupVaultTags(Aws::String &&key, const Aws::String &value)
CreateBackupVaultRequest & WithBackupVaultName(const char *value)
CreateBackupVaultRequest & WithEncryptionKeyArn(const char *value)
CreateBackupVaultRequest & AddBackupVaultTags(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetBackupVaultTags() const
void SetBackupVaultTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_BACKUP_API Aws::String SerializePayload() const override
CreateBackupVaultRequest & WithEncryptionKeyArn(const Aws::String &value)
CreateBackupVaultRequest & WithEncryptionKeyArn(Aws::String &&value)
CreateBackupVaultRequest & AddBackupVaultTags(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
void SetBackupVaultTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateBackupVaultRequest & WithBackupVaultName(Aws::String &&value)
CreateBackupVaultRequest & WithCreatorRequestId(const Aws::String &value)
CreateBackupVaultRequest & WithCreatorRequestId(const char *value)
CreateBackupVaultRequest & AddBackupVaultTags(const Aws::String &key, Aws::String &&value)
CreateBackupVaultRequest & AddBackupVaultTags(const Aws::String &key, const Aws::String &value)
CreateBackupVaultRequest & WithBackupVaultTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateBackupVaultRequest & WithBackupVaultName(const Aws::String &value)
CreateBackupVaultRequest & AddBackupVaultTags(Aws::String &&key, Aws::String &&value)
CreateBackupVaultRequest & AddBackupVaultTags(const char *key, Aws::String &&value)
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