AWS SDK for C++  1.9.104
AWS SDK for C++
AddTagsToVaultRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Glacier
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AddTagsToVault"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
47  inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 
56  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 
65  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
66 
74  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
75 
83  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
84 
92  inline AddTagsToVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
93 
101  inline AddTagsToVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
102 
110  inline AddTagsToVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
111 
112 
116  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
117 
121  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
122 
126  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
127 
131  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
132 
136  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
137 
141  inline AddTagsToVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
142 
146  inline AddTagsToVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
147 
151  inline AddTagsToVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
152 
153 
158  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
159 
164  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 
170  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
171 
176  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
177 
182  inline AddTagsToVaultRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
183 
188  inline AddTagsToVaultRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
189 
194  inline AddTagsToVaultRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
195 
200  inline AddTagsToVaultRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
201 
206  inline AddTagsToVaultRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
207 
212  inline AddTagsToVaultRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
213 
218  inline AddTagsToVaultRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
219 
224  inline AddTagsToVaultRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
225 
230  inline AddTagsToVaultRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
231 
232  private:
233 
234  Aws::String m_accountId;
235  bool m_accountIdHasBeenSet;
236 
237  Aws::String m_vaultName;
238  bool m_vaultNameHasBeenSet;
239 
241  bool m_tagsHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace Glacier
246 } // namespace Aws
Aws::Glacier::Model::AddTagsToVaultRequest::WithVaultName
AddTagsToVaultRequest & WithVaultName(const char *value)
Definition: AddTagsToVaultRequest.h:151
Aws::Glacier::Model::AddTagsToVaultRequest::AddTags
AddTagsToVaultRequest & AddTags(const char *key, const char *value)
Definition: AddTagsToVaultRequest.h:230
Aws::Glacier::Model::AddTagsToVaultRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: AddTagsToVaultRequest.h:65
Aws::Glacier::Model::AddTagsToVaultRequest::WithVaultName
AddTagsToVaultRequest & WithVaultName(Aws::String &&value)
Definition: AddTagsToVaultRequest.h:146
Aws::Glacier::Model::AddTagsToVaultRequest::SetAccountId
void SetAccountId(const char *value)
Definition: AddTagsToVaultRequest.h:83
Aws::Glacier::Model::AddTagsToVaultRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsToVaultRequest.h:35
Aws::Glacier::Model::AddTagsToVaultRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: AddTagsToVaultRequest.h:74
Aws::Glacier::Model::AddTagsToVaultRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AddTagsToVaultRequest.h:176
Aws::Glacier::Model::AddTagsToVaultRequest::WithAccountId
AddTagsToVaultRequest & WithAccountId(const char *value)
Definition: AddTagsToVaultRequest.h:110
Aws::Glacier::Model::AddTagsToVaultRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::AddTagsToVaultRequest::AddTags
AddTagsToVaultRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: AddTagsToVaultRequest.h:212
Aws::Glacier::Model::AddTagsToVaultRequest::WithAccountId
AddTagsToVaultRequest & WithAccountId(const Aws::String &value)
Definition: AddTagsToVaultRequest.h:92
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::AddTagsToVaultRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: AddTagsToVaultRequest.h:131
Aws::Glacier::Model::AddTagsToVaultRequest
Definition: AddTagsToVaultRequest.h:27
Aws::Glacier::Model::AddTagsToVaultRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: AddTagsToVaultRequest.h:126
Aws::Glacier::Model::AddTagsToVaultRequest::AddTags
AddTagsToVaultRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: AddTagsToVaultRequest.h:194
Aws::Glacier::Model::AddTagsToVaultRequest::AddTags
AddTagsToVaultRequest & AddTags(Aws::String &&key, const char *value)
Definition: AddTagsToVaultRequest.h:224
Aws::Glacier::Model::AddTagsToVaultRequest::AddTags
AddTagsToVaultRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: AddTagsToVaultRequest.h:200
Aws::Glacier::Model::AddTagsToVaultRequest::AddTags
AddTagsToVaultRequest & AddTags(const char *key, Aws::String &&value)
Definition: AddTagsToVaultRequest.h:218
AWSString.h
Aws::Glacier::Model::AddTagsToVaultRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: AddTagsToVaultRequest.h:158
GlacierRequest.h
Aws::Glacier::Model::AddTagsToVaultRequest::WithTags
AddTagsToVaultRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AddTagsToVaultRequest.h:182
Aws::Glacier::Model::AddTagsToVaultRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AddTagsToVaultRequest.h:170
Aws::Glacier::Model::AddTagsToVaultRequest::AddTagsToVaultRequest
AddTagsToVaultRequest()
Aws::Glacier::Model::AddTagsToVaultRequest::WithTags
AddTagsToVaultRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AddTagsToVaultRequest.h:188
Aws::Glacier::Model::AddTagsToVaultRequest::SetVaultName
void SetVaultName(const char *value)
Definition: AddTagsToVaultRequest.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::AddTagsToVaultRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsToVaultRequest.h:164
Aws::Glacier::Model::AddTagsToVaultRequest::WithVaultName
AddTagsToVaultRequest & WithVaultName(const Aws::String &value)
Definition: AddTagsToVaultRequest.h:141
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::AddTagsToVaultRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: AddTagsToVaultRequest.h:56
Aws::Glacier::Model::AddTagsToVaultRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: AddTagsToVaultRequest.h:121
AWSMap.h
Aws::Glacier::Model::AddTagsToVaultRequest::WithAccountId
AddTagsToVaultRequest & WithAccountId(Aws::String &&value)
Definition: AddTagsToVaultRequest.h:101
Aws::Glacier::Model::AddTagsToVaultRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: AddTagsToVaultRequest.h:116
Aws::Glacier::Model::AddTagsToVaultRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: AddTagsToVaultRequest.h:47
Aws::Glacier::Model::AddTagsToVaultRequest::AddTags
AddTagsToVaultRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: AddTagsToVaultRequest.h:206
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Glacier_EXPORTS.h