AWS SDK for C++  1.9.158
AWS SDK for C++
ListTagsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Backup
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
42  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
43 
50  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
51 
58  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
59 
66  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
67 
74  inline ListTagsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
75 
82  inline ListTagsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
83 
90  inline ListTagsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91 
92 
97  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 
103  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
104 
109  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
110 
115  inline ListTagsResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
116 
121  inline ListTagsResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 
127  inline ListTagsResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
128 
133  inline ListTagsResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
134 
139  inline ListTagsResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
140 
145  inline ListTagsResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
146 
151  inline ListTagsResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
152 
157  inline ListTagsResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
158 
163  inline ListTagsResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
164 
165  private:
166 
167  Aws::String m_nextToken;
168 
170  };
171 
172 } // namespace Model
173 } // namespace Backup
174 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Backup::Model::ListTagsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsResult.h:58
Aws::Backup::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: ListTagsResult.h:145
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::ListTagsResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: ListTagsResult.h:97
Aws::Backup::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: ListTagsResult.h:127
Aws::Backup::Model::ListTagsResult
Definition: ListTagsResult.h:29
Aws::Backup::Model::ListTagsResult::WithNextToken
ListTagsResult & WithNextToken(const Aws::String &value)
Definition: ListTagsResult.h:74
Aws::Backup::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: ListTagsResult.h:133
Aws::Backup::Model::ListTagsResult::ListTagsResult
ListTagsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Backup::Model::ListTagsResult::WithTags
ListTagsResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListTagsResult.h:121
Aws::Backup::Model::ListTagsResult::WithTags
ListTagsResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListTagsResult.h:115
Aws::Backup::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const char *key, Aws::String &&value)
Definition: ListTagsResult.h:151
Aws::Backup::Model::ListTagsResult::ListTagsResult
ListTagsResult()
Aws::Backup::Model::ListTagsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsResult.h:42
AWSString.h
Aws::Backup::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: ListTagsResult.h:139
Aws::Backup::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(Aws::String &&key, const char *value)
Definition: ListTagsResult.h:157
Backup_EXPORTS.h
Aws::Backup::Model::ListTagsResult::WithNextToken
ListTagsResult & WithNextToken(const char *value)
Definition: ListTagsResult.h:90
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::ListTagsResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListTagsResult.h:109
Aws::Backup::Model::ListTagsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsResult.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::ListTagsResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListTagsResult.h:103
Aws::Backup::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const char *key, const char *value)
Definition: ListTagsResult.h:163
Aws::Backup::Model::ListTagsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsResult.h:50
AWSMap.h
Aws::Backup::Model::ListTagsResult::operator=
ListTagsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Backup::Model::ListTagsResult::WithNextToken
ListTagsResult & WithNextToken(Aws::String &&value)
Definition: ListTagsResult.h:82