AWS SDK for C++  1.9.123
AWS SDK for C++
ListDeviceInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DeviceFarm
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 "ListDeviceInstances"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline int GetMaxResults() const{ return m_maxResults; }
42 
47  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
48 
53  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
54 
59  inline ListDeviceInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60 
61 
66  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
67 
72  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 
78  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
79 
84  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 
90  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 
96  inline ListDeviceInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
97 
102  inline ListDeviceInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
103 
108  inline ListDeviceInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
109 
110  private:
111 
112  int m_maxResults;
113  bool m_maxResultsHasBeenSet;
114 
115  Aws::String m_nextToken;
116  bool m_nextTokenHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace DeviceFarm
121 } // namespace Aws
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListDeviceInstancesRequest.h:47
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListDeviceInstancesRequest.h:90
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListDeviceInstancesRequest.h:53
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::WithNextToken
ListDeviceInstancesRequest & WithNextToken(const Aws::String &value)
Definition: ListDeviceInstancesRequest.h:96
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::WithMaxResults
ListDeviceInstancesRequest & WithMaxResults(int value)
Definition: ListDeviceInstancesRequest.h:59
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListDeviceInstancesRequest.h:41
DeviceFarmRequest.h
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDeviceInstancesRequest.h:84
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDeviceInstancesRequest.h:78
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListDeviceInstancesRequest.h:72
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDeviceInstancesRequest.h:66
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::WithNextToken
ListDeviceInstancesRequest & WithNextToken(Aws::String &&value)
Definition: ListDeviceInstancesRequest.h:102
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::DeviceFarmRequest
Definition: DeviceFarmRequest.h:17
Aws::DeviceFarm::Model::ListDeviceInstancesRequest
Definition: ListDeviceInstancesRequest.h:22
AWSString.h
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListDeviceInstancesRequest.h:30
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::ListDeviceInstancesRequest
ListDeviceInstancesRequest()
Aws::DeviceFarm::Model::ListDeviceInstancesRequest::WithNextToken
ListDeviceInstancesRequest & WithNextToken(const char *value)
Definition: ListDeviceInstancesRequest.h:108
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97