AWS SDK for C++  1.8.152
AWS SDK for C++
ListTagsForResourceResult.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 CodeCommit
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
40 
44  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
45 
49  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
50 
54  inline ListTagsForResourceResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
55 
59  inline ListTagsForResourceResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
60 
64  inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
65 
69  inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
70 
74  inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
75 
79  inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
80 
84  inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
85 
89  inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
90 
94  inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
95 
96 
101  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
102 
107  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
108 
113  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
114 
119  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
120 
125  inline ListTagsForResourceResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
126 
131  inline ListTagsForResourceResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
132 
137  inline ListTagsForResourceResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
138 
139  private:
140 
142 
143  Aws::String m_nextToken;
144  };
145 
146 } // namespace Model
147 } // namespace CodeCommit
148 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ListTagsForResourceResult::WithNextToken
ListTagsForResourceResult & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceResult.h:131
Aws::CodeCommit::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: ListTagsForResourceResult.h:79
Aws::CodeCommit::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: ListTagsForResourceResult.h:64
Aws::CodeCommit::Model::ListTagsForResourceResult::WithNextToken
ListTagsForResourceResult & WithNextToken(const char *value)
Definition: ListTagsForResourceResult.h:137
Aws::CodeCommit::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(Aws::String &&key, const char *value)
Definition: ListTagsForResourceResult.h:89
Aws::CodeCommit::Model::ListTagsForResourceResult::ListTagsForResourceResult
ListTagsForResourceResult()
Aws::CodeCommit::Model::ListTagsForResourceResult::WithNextToken
ListTagsForResourceResult & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceResult.h:125
Aws::CodeCommit::Model::ListTagsForResourceResult
Definition: ListTagsForResourceResult.h:29
Aws::CodeCommit::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(const char *key, Aws::String &&value)
Definition: ListTagsForResourceResult.h:84
Aws::CodeCommit::Model::ListTagsForResourceResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceResult.h:119
Aws::CodeCommit::Model::ListTagsForResourceResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceResult.h:107
Aws::CodeCommit::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: ListTagsForResourceResult.h:74
Aws::CodeCommit::Model::ListTagsForResourceResult::WithTags
ListTagsForResourceResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListTagsForResourceResult.h:54
Aws::CodeCommit::Model::ListTagsForResourceResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListTagsForResourceResult.h:49
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: ListTagsForResourceResult.h:69
Aws::CodeCommit::Model::ListTagsForResourceResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: ListTagsForResourceResult.h:39
Aws::CodeCommit::Model::ListTagsForResourceResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceResult.h:101
Aws::CodeCommit::Model::ListTagsForResourceResult::AddTags
ListTagsForResourceResult & AddTags(const char *key, const char *value)
Definition: ListTagsForResourceResult.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ListTagsForResourceResult::WithTags
ListTagsForResourceResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: ListTagsForResourceResult.h:59
Aws::CodeCommit::Model::ListTagsForResourceResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceResult.h:113
Aws::CodeCommit::Model::ListTagsForResourceResult::ListTagsForResourceResult
ListTagsForResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::ListTagsForResourceResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: ListTagsForResourceResult.h:44
Aws::CodeCommit::Model::ListTagsForResourceResult::operator=
ListTagsForResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19