AWS SDK for C++  1.9.123
AWS SDK for C++
ListCoreDevicesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace GreengrassV2
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 "ListCoreDevices"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
48  inline const Aws::String& GetThingGroupArn() const{ return m_thingGroupArn; }
49 
56  inline bool ThingGroupArnHasBeenSet() const { return m_thingGroupArnHasBeenSet; }
57 
64  inline void SetThingGroupArn(const Aws::String& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = value; }
65 
72  inline void SetThingGroupArn(Aws::String&& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = std::move(value); }
73 
80  inline void SetThingGroupArn(const char* value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn.assign(value); }
81 
88  inline ListCoreDevicesRequest& WithThingGroupArn(const Aws::String& value) { SetThingGroupArn(value); return *this;}
89 
96  inline ListCoreDevicesRequest& WithThingGroupArn(Aws::String&& value) { SetThingGroupArn(std::move(value)); return *this;}
97 
104  inline ListCoreDevicesRequest& WithThingGroupArn(const char* value) { SetThingGroupArn(value); return *this;}
105 
106 
115  inline const CoreDeviceStatus& GetStatus() const{ return m_status; }
116 
125  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 
135  inline void SetStatus(const CoreDeviceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
136 
145  inline void SetStatus(CoreDeviceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
146 
155  inline ListCoreDevicesRequest& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;}
156 
165  inline ListCoreDevicesRequest& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;}
166 
167 
171  inline int GetMaxResults() const{ return m_maxResults; }
172 
176  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
177 
181  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
182 
186  inline ListCoreDevicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
187 
188 
192  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
193 
197  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
198 
202  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
203 
207  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
208 
212  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
213 
217  inline ListCoreDevicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
218 
222  inline ListCoreDevicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
223 
227  inline ListCoreDevicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
228 
229  private:
230 
231  Aws::String m_thingGroupArn;
232  bool m_thingGroupArnHasBeenSet;
233 
234  CoreDeviceStatus m_status;
235  bool m_statusHasBeenSet;
236 
237  int m_maxResults;
238  bool m_maxResultsHasBeenSet;
239 
240  Aws::String m_nextToken;
241  bool m_nextTokenHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace GreengrassV2
246 } // namespace Aws
Aws::GreengrassV2::Model::ListCoreDevicesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListCoreDevicesRequest.h:197
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GreengrassV2::Model::ListCoreDevicesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCoreDevicesRequest.h:192
Aws::Http::URI
Definition: URI.h:32
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetStatus
void SetStatus(CoreDeviceStatus &&value)
Definition: ListCoreDevicesRequest.h:145
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithNextToken
ListCoreDevicesRequest & WithNextToken(const Aws::String &value)
Definition: ListCoreDevicesRequest.h:217
Aws::GreengrassV2::Model::ListCoreDevicesRequest::ListCoreDevicesRequest
ListCoreDevicesRequest()
Aws::GreengrassV2::Model::CoreDeviceStatus
CoreDeviceStatus
Definition: CoreDeviceStatus.h:17
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithStatus
ListCoreDevicesRequest & WithStatus(CoreDeviceStatus &&value)
Definition: ListCoreDevicesRequest.h:165
GreengrassV2Request.h
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetStatus
void SetStatus(const CoreDeviceStatus &value)
Definition: ListCoreDevicesRequest.h:135
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetThingGroupArn
void SetThingGroupArn(const char *value)
Definition: ListCoreDevicesRequest.h:80
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ListCoreDevicesRequest::ThingGroupArnHasBeenSet
bool ThingGroupArnHasBeenSet() const
Definition: ListCoreDevicesRequest.h:56
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListCoreDevicesRequest.h:212
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithThingGroupArn
ListCoreDevicesRequest & WithThingGroupArn(Aws::String &&value)
Definition: ListCoreDevicesRequest.h:96
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ListCoreDevicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCoreDevicesRequest.h:35
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithNextToken
ListCoreDevicesRequest & WithNextToken(const char *value)
Definition: ListCoreDevicesRequest.h:227
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetThingGroupArn
void SetThingGroupArn(const Aws::String &value)
Definition: ListCoreDevicesRequest.h:64
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithThingGroupArn
ListCoreDevicesRequest & WithThingGroupArn(const Aws::String &value)
Definition: ListCoreDevicesRequest.h:88
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithStatus
ListCoreDevicesRequest & WithStatus(const CoreDeviceStatus &value)
Definition: ListCoreDevicesRequest.h:155
AWSString.h
Aws::GreengrassV2::Model::ListCoreDevicesRequest::GetStatus
const CoreDeviceStatus & GetStatus() const
Definition: ListCoreDevicesRequest.h:115
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCoreDevicesRequest.h:202
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithThingGroupArn
ListCoreDevicesRequest & WithThingGroupArn(const char *value)
Definition: ListCoreDevicesRequest.h:104
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithMaxResults
ListCoreDevicesRequest & WithMaxResults(int value)
Definition: ListCoreDevicesRequest.h:186
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCoreDevicesRequest.h:207
Aws::GreengrassV2::Model::ListCoreDevicesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListCoreDevicesRequest.h:176
Aws::GreengrassV2::Model::ListCoreDevicesRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListCoreDevicesRequest.h:125
Aws::GreengrassV2::Model::ListCoreDevicesRequest::WithNextToken
ListCoreDevicesRequest & WithNextToken(Aws::String &&value)
Definition: ListCoreDevicesRequest.h:222
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ListCoreDevicesRequest
Definition: ListCoreDevicesRequest.h:27
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ListCoreDevicesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
CoreDeviceStatus.h
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetThingGroupArn
void SetThingGroupArn(Aws::String &&value)
Definition: ListCoreDevicesRequest.h:72
Aws::GreengrassV2::Model::ListCoreDevicesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListCoreDevicesRequest.h:171
Aws::GreengrassV2::Model::ListCoreDevicesRequest::GetThingGroupArn
const Aws::String & GetThingGroupArn() const
Definition: ListCoreDevicesRequest.h:48
Aws::GreengrassV2::Model::ListCoreDevicesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListCoreDevicesRequest.h:181