AWS SDK for C++  1.9.66
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 Organizations
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 "ListTagsForResource"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
48  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
49 
61  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 
74  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
75 
87  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
88 
100  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
101 
113  inline ListTagsForResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
114 
126  inline ListTagsForResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
127 
139  inline ListTagsForResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
140 
141 
149  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
150 
158  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
159 
167  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
168 
176  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
177 
185  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
186 
194  inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
195 
203  inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
204 
212  inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
213 
214  private:
215 
216  Aws::String m_resourceId;
217  bool m_resourceIdHasBeenSet;
218 
219  Aws::String m_nextToken;
220  bool m_nextTokenHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace Organizations
225 } // namespace Aws
Aws::Organizations::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::ListTagsForResourceRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsForResourceRequest.h:158
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:30
Aws::Organizations::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:126
Aws::Organizations::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: ListTagsForResourceRequest.h:100
Aws::Organizations::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:185
Aws::Organizations::Model::ListTagsForResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: ListTagsForResourceRequest.h:48
Aws::Organizations::Model::ListTagsForResourceRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceRequest.h:149
Aws::Organizations::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:176
Aws::Organizations::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:87
Aws::Organizations::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:212
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:167
AWSString.h
Aws::Organizations::Model::ListTagsForResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:203
Aws::Organizations::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:194
Aws::Organizations::Model::ListTagsForResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ListTagsForResourceRequest.h:61
Aws::Organizations::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:113
Aws::Organizations::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:74
Aws::Organizations::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(const char *value)
Definition: ListTagsForResourceRequest.h:139
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::Organizations::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:22
OrganizationsRequest.h