AWS SDK for C++  1.9.109
AWS SDK for C++
ListThingRegistrationTasksRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <aws/iot/model/Status.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListThingRegistrationTasks"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
47  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
48 
54  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
55 
61  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
62 
68  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
69 
75  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
76 
82  inline ListThingRegistrationTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
83 
89  inline ListThingRegistrationTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
90 
96  inline ListThingRegistrationTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
97 
98 
102  inline int GetMaxResults() const{ return m_maxResults; }
103 
107  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 
112  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
113 
117  inline ListThingRegistrationTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
118 
119 
123  inline const Status& GetStatus() const{ return m_status; }
124 
128  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 
133  inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
134 
138  inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
139 
143  inline ListThingRegistrationTasksRequest& WithStatus(const Status& value) { SetStatus(value); return *this;}
144 
148  inline ListThingRegistrationTasksRequest& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
149 
150  private:
151 
152  Aws::String m_nextToken;
153  bool m_nextTokenHasBeenSet;
154 
155  int m_maxResults;
156  bool m_maxResultsHasBeenSet;
157 
158  Status m_status;
159  bool m_statusHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace IoT
164 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListThingRegistrationTasksRequest::WithMaxResults
ListThingRegistrationTasksRequest & WithMaxResults(int value)
Definition: ListThingRegistrationTasksRequest.h:117
Aws::IoT::Model::ListThingRegistrationTasksRequest::SetStatus
void SetStatus(Status &&value)
Definition: ListThingRegistrationTasksRequest.h:138
Aws::IoT::Model::ListThingRegistrationTasksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListThingRegistrationTasksRequest.h:107
Aws::IoT::Model::ListThingRegistrationTasksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListThingRegistrationTasksRequest.h:112
Aws::IoT::Model::ListThingRegistrationTasksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListThingRegistrationTasksRequest.h:35
Aws::IoT::Model::ListThingRegistrationTasksRequest
Definition: ListThingRegistrationTasksRequest.h:27
Aws::IoT::Model::ListThingRegistrationTasksRequest::WithNextToken
ListThingRegistrationTasksRequest & WithNextToken(const Aws::String &value)
Definition: ListThingRegistrationTasksRequest.h:82
Aws::IoT::Model::ListThingRegistrationTasksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListThingRegistrationTasksRequest.h:47
Aws::IoT::Model::ListThingRegistrationTasksRequest::WithStatus
ListThingRegistrationTasksRequest & WithStatus(const Status &value)
Definition: ListThingRegistrationTasksRequest.h:143
Aws::IoT::Model::ListThingRegistrationTasksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListThingRegistrationTasksRequest.h:54
Aws::IoT::Model::ListThingRegistrationTasksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListThingRegistrationTasksRequest.h:75
Aws::IoT::Model::ListThingRegistrationTasksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListThingRegistrationTasksRequest.h:61
Aws::IoT::Model::ListThingRegistrationTasksRequest::GetStatus
const Status & GetStatus() const
Definition: ListThingRegistrationTasksRequest.h:123
Aws::IoT::Model::ListThingRegistrationTasksRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListThingRegistrationTasksRequest.h:128
Aws::IoT::Model::ListThingRegistrationTasksRequest::WithNextToken
ListThingRegistrationTasksRequest & WithNextToken(const char *value)
Definition: ListThingRegistrationTasksRequest.h:96
Aws::IoT::Model::ListThingRegistrationTasksRequest::ListThingRegistrationTasksRequest
ListThingRegistrationTasksRequest()
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListThingRegistrationTasksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListThingRegistrationTasksRequest.h:102
Aws::IoT::Model::ListThingRegistrationTasksRequest::WithNextToken
ListThingRegistrationTasksRequest & WithNextToken(Aws::String &&value)
Definition: ListThingRegistrationTasksRequest.h:89
Aws::IoT::Model::ListThingRegistrationTasksRequest::WithStatus
ListThingRegistrationTasksRequest & WithStatus(Status &&value)
Definition: ListThingRegistrationTasksRequest.h:148
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListThingRegistrationTasksRequest::SetStatus
void SetStatus(const Status &value)
Definition: ListThingRegistrationTasksRequest.h:133
Aws::IoT::Model::ListThingRegistrationTasksRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListThingRegistrationTasksRequest::SerializePayload
Aws::String SerializePayload() const override
IoTRequest.h
Aws::IoT::Model::Status
Status
Definition: Status.h:17
Status.h
Aws::IoT::Model::ListThingRegistrationTasksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListThingRegistrationTasksRequest.h:68
IoT_EXPORTS.h