AWS SDK for C++  1.9.131
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 EFS
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
45  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
46 
51  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
52 
57  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
58 
63  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
64 
69  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
70 
75  inline ListTagsForResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
76 
81  inline ListTagsForResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
82 
87  inline ListTagsForResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
88 
89 
94  inline int GetMaxResults() const{ return m_maxResults; }
95 
100  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 
106  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
107 
112  inline ListTagsForResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
113 
114 
120  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
121 
127  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 
134  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
135 
141  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
142 
148  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
149 
155  inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
156 
162  inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
163 
169  inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
170 
171  private:
172 
173  Aws::String m_resourceId;
174  bool m_resourceIdHasBeenSet;
175 
176  int m_maxResults;
177  bool m_maxResultsHasBeenSet;
178 
179  Aws::String m_nextToken;
180  bool m_nextTokenHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace EFS
185 } // namespace Aws
Aws::EFS::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
EFS_EXPORTS.h
Aws::EFS::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:141
Aws::EFS::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:81
EFSRequest.h
Aws::EFS::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:57
AWS_EFS_API
#define AWS_EFS_API
Definition: EFS_EXPORTS.h:28
Aws::EFS::Model::ListTagsForResourceRequest::WithMaxResults
ListTagsForResourceRequest & WithMaxResults(int value)
Definition: ListTagsForResourceRequest.h:112
Aws::Transfer::Model::Domain::NOT_SET
@ NOT_SET
Aws::EFS::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:169
Aws::EFS::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:63
Aws::EFS::Model::ListTagsForResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: ListTagsForResourceRequest.h:45
Aws::EFS::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:34
Aws::EFS::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:134
Aws::EFS::Model::ListTagsForResourceRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTagsForResourceRequest.h:106
AWSString.h
Aws::EFS::Model::ListTagsForResourceRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTagsForResourceRequest.h:100
Aws::EFS::Model::ListTagsForResourceRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTagsForResourceRequest.h:94
Aws::EFS::Model::ListTagsForResourceRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsForResourceRequest.h:127
Aws::EFS::EFSRequest
Definition: EFSRequest.h:17
Aws::EFS::Model::ListTagsForResourceRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceRequest.h:120
Aws::EFS::Model::ListTagsForResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ListTagsForResourceRequest.h:51
Aws::EFS::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:148
Aws::EFS::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: ListTagsForResourceRequest.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::EFS::Model::ListTagsForResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::EFS::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:26
Aws::EFS::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:155
Aws::EFS::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EFS::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::EFS::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(const char *value)
Definition: ListTagsForResourceRequest.h:87
Aws::EFS::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:162