AWS SDK for C++  1.9.1
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 DirectoryService
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 
40  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
41 
45  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
46 
50  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
51 
55  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
56 
60  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
61 
65  inline ListTagsForResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
66 
70  inline ListTagsForResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
71 
75  inline ListTagsForResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
76 
77 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
86  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 
91  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
92 
96  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
97 
101  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
102 
106  inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
111  inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
112 
116  inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
117 
118 
122  inline int GetLimit() const{ return m_limit; }
123 
127  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
128 
132  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
133 
137  inline ListTagsForResourceRequest& WithLimit(int value) { SetLimit(value); return *this;}
138 
139  private:
140 
141  Aws::String m_resourceId;
142  bool m_resourceIdHasBeenSet;
143 
144  Aws::String m_nextToken;
145  bool m_nextTokenHasBeenSet;
146 
147  int m_limit;
148  bool m_limitHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace DirectoryService
153 } // namespace Aws
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: ListTagsForResourceRequest.h:60
Aws::DirectoryService::Model::ListTagsForResourceRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListTagsForResourceRequest.h:127
Aws::DirectoryService::Model::ListTagsForResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: ListTagsForResourceRequest.h:40
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:101
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:22
Aws::DirectoryService::Model::ListTagsForResourceRequest::GetLimit
int GetLimit() const
Definition: ListTagsForResourceRequest.h:122
Aws::DirectoryService::Model::ListTagsForResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ListTagsForResourceRequest.h:45
Aws::DirectoryService::Model::ListTagsForResourceRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceRequest.h:81
Aws::DirectoryService::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:96
Aws::DirectoryService::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:65
Aws::DirectoryService::Model::ListTagsForResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::DirectoryService::Model::ListTagsForResourceRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsForResourceRequest.h:86
AWSString.h
Aws::DirectoryService::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:91
Aws::DirectoryService::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:70
Aws::DirectoryService::Model::ListTagsForResourceRequest::SetLimit
void SetLimit(int value)
Definition: ListTagsForResourceRequest.h:132
Aws::DirectoryService::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:55
Aws::DirectoryService::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::ListTagsForResourceRequest::WithLimit
ListTagsForResourceRequest & WithLimit(int value)
Definition: ListTagsForResourceRequest.h:137
Aws::DirectoryService::Model::ListTagsForResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:111
Aws::DirectoryService::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
DirectoryServiceRequest.h
Aws::DirectoryService::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:106
Aws::DirectoryService::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:30
Aws::DirectoryService::Model::ListTagsForResourceRequest::WithResourceId
ListTagsForResourceRequest & WithResourceId(const char *value)
Definition: ListTagsForResourceRequest.h:75