AWS SDK for C++  1.9.108
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 OpsWorks
25 {
26 namespace Model
27 {
35  {
36  public:
40 
41 
46  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
47 
52  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
53 
58  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
59 
64  inline ListTagsResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
65 
70  inline ListTagsResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
71 
76  inline ListTagsResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
77 
82  inline ListTagsResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
83 
88  inline ListTagsResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
89 
94  inline ListTagsResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
95 
100  inline ListTagsResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
101 
106  inline ListTagsResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
107 
112  inline ListTagsResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
113 
114 
122  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
123 
131  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
132 
140  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
141 
149  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
150 
158  inline ListTagsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
159 
167  inline ListTagsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
168 
176  inline ListTagsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
177 
178  private:
179 
181 
182  Aws::String m_nextToken;
183  };
184 
185 } // namespace Model
186 } // namespace OpsWorks
187 } // namespace Aws
Aws::OpsWorks::Model::ListTagsResult::WithNextToken
ListTagsResult & WithNextToken(const char *value)
Definition: ListTagsResult.h:176
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(Aws::String &&key, const char *value)
Definition: ListTagsResult.h:106
Aws::OpsWorks::Model::ListTagsResult::operator=
ListTagsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::OpsWorks::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: ListTagsResult.h:94
Aws::OpsWorks::Model::ListTagsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsResult.h:131
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::ListTagsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsResult.h:140
Aws::OpsWorks::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const char *key, Aws::String &&value)
Definition: ListTagsResult.h:100
Aws::OpsWorks::Model::ListTagsResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListTagsResult.h:58
Aws::OpsWorks::Model::ListTagsResult::WithTags
ListTagsResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListTagsResult.h:70
Aws::OpsWorks::Model::ListTagsResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListTagsResult.h:52
Aws::OpsWorks::Model::ListTagsResult
Definition: ListTagsResult.h:35
Aws::OpsWorks::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const char *key, const char *value)
Definition: ListTagsResult.h:112
Aws::OpsWorks::Model::ListTagsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsResult.h:122
Aws::OpsWorks::Model::ListTagsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsResult.h:149
AWSString.h
Aws::OpsWorks::Model::ListTagsResult::WithNextToken
ListTagsResult & WithNextToken(const Aws::String &value)
Definition: ListTagsResult.h:158
Aws::OpsWorks::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: ListTagsResult.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::ListTagsResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: ListTagsResult.h:46
Aws::OpsWorks::Model::ListTagsResult::ListTagsResult
ListTagsResult()
Aws::OpsWorks::Model::ListTagsResult::ListTagsResult
ListTagsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: ListTagsResult.h:82
Aws::OpsWorks::Model::ListTagsResult::AddTags
ListTagsResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: ListTagsResult.h:76
Aws::OpsWorks::Model::ListTagsResult::WithNextToken
ListTagsResult & WithNextToken(Aws::String &&value)
Definition: ListTagsResult.h:167
Aws::OpsWorks::Model::ListTagsResult::WithTags
ListTagsResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListTagsResult.h:64
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19