AWS SDK for C++  1.9.106
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 OpsWorks
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListTags"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
41 
45  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
46 
50  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
51 
55  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
56 
60  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
61 
65  inline ListTagsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
66 
70  inline ListTagsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
71 
75  inline ListTagsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
76 
77 
82  inline int GetMaxResults() const{ return m_maxResults; }
83 
88  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 
94  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
95 
100  inline ListTagsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
101 
102 
107  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
108 
113  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
114 
119  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
120 
125  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
126 
131  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
132 
137  inline ListTagsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
138 
143  inline ListTagsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
144 
149  inline ListTagsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
150 
151  private:
152 
153  Aws::String m_resourceArn;
154  bool m_resourceArnHasBeenSet;
155 
156  int m_maxResults;
157  bool m_maxResultsHasBeenSet;
158 
159  Aws::String m_nextToken;
160  bool m_nextTokenHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace OpsWorks
165 } // namespace Aws
Aws::OpsWorks::Model::ListTagsRequest::WithResourceArn
ListTagsRequest & WithResourceArn(const Aws::String &value)
Definition: ListTagsRequest.h:65
Aws::OpsWorks::Model::ListTagsRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ListTagsRequest.h:55
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::ListTagsRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ListTagsRequest.h:45
Aws::OpsWorks::Model::ListTagsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTagsRequest.h:82
Aws::OpsWorks::Model::ListTagsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsRequest.h:107
Aws::OpsWorks::Model::ListTagsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTagsRequest.h:88
Aws::OpsWorks::Model::ListTagsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsRequest.h:113
Aws::OpsWorks::Model::ListTagsRequest::WithNextToken
ListTagsRequest & WithNextToken(const char *value)
Definition: ListTagsRequest.h:149
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::ListTagsRequest
Definition: ListTagsRequest.h:22
OpsWorksRequest.h
Aws::OpsWorks::Model::ListTagsRequest::WithMaxResults
ListTagsRequest & WithMaxResults(int value)
Definition: ListTagsRequest.h:100
Aws::OpsWorks::Model::ListTagsRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ListTagsRequest.h:50
Aws::OpsWorks::Model::ListTagsRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: ListTagsRequest.h:60
Aws::OpsWorks::Model::ListTagsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsRequest.h:131
Aws::OpsWorks::Model::ListTagsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTagsRequest.h:94
Aws::OpsWorks::Model::ListTagsRequest::WithNextToken
ListTagsRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsRequest.h:137
Aws::OpsWorks::Model::ListTagsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsRequest.h:119
Aws::OpsWorks::Model::ListTagsRequest::WithResourceArn
ListTagsRequest & WithResourceArn(const char *value)
Definition: ListTagsRequest.h:75
AWSString.h
Aws::OpsWorks::Model::ListTagsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsRequest.h:125
Aws::OpsWorks::Model::ListTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::ListTagsRequest::ListTagsRequest
ListTagsRequest()
Aws::OpsWorks::Model::ListTagsRequest::WithNextToken
ListTagsRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsRequest.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::ListTagsRequest::WithResourceArn
ListTagsRequest & WithResourceArn(Aws::String &&value)
Definition: ListTagsRequest.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::ListTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsRequest.h:30
Aws::OpsWorks::Model::ListTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::ListTagsRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ListTagsRequest.h:40