AWS SDK for C++  1.9.123
AWS SDK for C++
ListTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace AppMesh
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
55  inline int GetLimit() const{ return m_limit; }
56 
68  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
69 
81  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
82 
94  inline ListTagsForResourceRequest& WithLimit(int value) { SetLimit(value); return *this;}
95 
96 
103  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
104 
111  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 
119  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
120 
127  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
128 
135  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
136 
143  inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
144 
151  inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
152 
159  inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
160 
161 
166  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
167 
172  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
173 
178  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
179 
184  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
185 
190  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
191 
196  inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
197 
202  inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
203 
208  inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
209 
210  private:
211 
212  int m_limit;
213  bool m_limitHasBeenSet;
214 
215  Aws::String m_nextToken;
216  bool m_nextTokenHasBeenSet;
217 
218  Aws::String m_resourceArn;
219  bool m_resourceArnHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace AppMesh
224 } // namespace Aws
Aws::AppMesh::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:151
Aws::AppMesh::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:208
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::ListTagsForResourceRequest::GetLimit
int GetLimit() const
Definition: ListTagsForResourceRequest.h:55
Aws::AppMesh::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:143
Aws::AppMesh::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:159
Aws::AppMesh::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:135
Aws::AppMesh::Model::ListTagsForResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ListTagsForResourceRequest.h:166
AppMesh_EXPORTS.h
Aws::AppMesh::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::AppMesh::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:127
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::ListTagsForResourceRequest::WithLimit
ListTagsForResourceRequest & WithLimit(int value)
Definition: ListTagsForResourceRequest.h:94
Aws::AppMesh::Model::ListTagsForResourceRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListTagsForResourceRequest.h:68
Aws::AppMesh::Model::ListTagsForResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWSString.h
Aws::AppMesh::Model::ListTagsForResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ListTagsForResourceRequest.h:172
Aws::AppMesh::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:119
Aws::AppMesh::Model::ListTagsForResourceRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceRequest.h:103
Aws::AppMesh::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:29
Aws::AppMesh::Model::ListTagsForResourceRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsForResourceRequest.h:111
Aws::AppMesh::Model::ListTagsForResourceRequest::SetLimit
void SetLimit(int value)
Definition: ListTagsForResourceRequest.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:178
Aws::AppMesh::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:37
Aws::AppMesh::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:190
Aws::AppMesh::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:196
Aws::AppMesh::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:202
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
AppMeshRequest.h