AWS SDK for C++  1.9.1
AWS SDK for C++
ListTagsRequest.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 Backup
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 "ListTags"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
46  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
47 
53  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
54 
60  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
61 
67  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
68 
74  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
75 
81  inline ListTagsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
82 
88  inline ListTagsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
89 
95  inline ListTagsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
96 
97 
104  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
105 
112  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 
120  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
121 
128  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
129 
136  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
137 
144  inline ListTagsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
145 
152  inline ListTagsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
153 
160  inline ListTagsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
161 
162 
166  inline int GetMaxResults() const{ return m_maxResults; }
167 
171  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
172 
176  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
177 
181  inline ListTagsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
182 
183  private:
184 
185  Aws::String m_resourceArn;
186  bool m_resourceArnHasBeenSet;
187 
188  Aws::String m_nextToken;
189  bool m_nextTokenHasBeenSet;
190 
191  int m_maxResults;
192  bool m_maxResultsHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace Backup
197 } // namespace Aws
Aws::Backup::Model::ListTagsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsRequest.h:112
Aws::Http::URI
Definition: URI.h:32
Aws::Backup::Model::ListTagsRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ListTagsRequest.h:60
Aws::Backup::Model::ListTagsRequest::WithResourceArn
ListTagsRequest & WithResourceArn(Aws::String &&value)
Definition: ListTagsRequest.h:88
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::ListTagsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsRequest.h:104
BackupRequest.h
Aws::Backup::Model::ListTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsRequest.h:34
Aws::Backup::Model::ListTagsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsRequest.h:120
Aws::Backup::Model::ListTagsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTagsRequest.h:171
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::ListTagsRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ListTagsRequest.h:67
Aws::Backup::Model::ListTagsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTagsRequest.h:166
AWSString.h
Aws::Backup::Model::ListTagsRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ListTagsRequest.h:46
Aws::Backup::Model::ListTagsRequest::WithNextToken
ListTagsRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsRequest.h:144
Aws::Backup::Model::ListTagsRequest::WithNextToken
ListTagsRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsRequest.h:152
Aws::Backup::Model::ListTagsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Backup::Model::ListTagsRequest::WithResourceArn
ListTagsRequest & WithResourceArn(const char *value)
Definition: ListTagsRequest.h:95
Aws::Backup::Model::ListTagsRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ListTagsRequest.h:53
Backup_EXPORTS.h
Aws::Backup::Model::ListTagsRequest::WithResourceArn
ListTagsRequest & WithResourceArn(const Aws::String &value)
Definition: ListTagsRequest.h:81
Aws::Backup::Model::ListTagsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsRequest.h:128
Aws::Backup::Model::ListTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::ListTagsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTagsRequest.h:176
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::ListTagsRequest::ListTagsRequest
ListTagsRequest()
Aws::Backup::Model::ListTagsRequest
Definition: ListTagsRequest.h:26
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::ListTagsRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: ListTagsRequest.h:74
Aws::Backup::Model::ListTagsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsRequest.h:136
Aws::Backup::Model::ListTagsRequest::WithMaxResults
ListTagsRequest & WithMaxResults(int value)
Definition: ListTagsRequest.h:181
Aws::Backup::Model::ListTagsRequest::WithNextToken
ListTagsRequest & WithNextToken(const char *value)
Definition: ListTagsRequest.h:160