AWS SDK for C++  1.9.106
AWS SDK for C++
ListHITsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MTurk
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 "ListHITs"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
41 
45  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
46 
50  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
51 
55  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
56 
60  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
61 
65  inline ListHITsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 
70  inline ListHITsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
71 
75  inline ListHITsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76 
77 
78 
79  inline int GetMaxResults() const{ return m_maxResults; }
80 
81 
82  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 
84 
85  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 
87 
88  inline ListHITsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89 
90  private:
91 
92  Aws::String m_nextToken;
93  bool m_nextTokenHasBeenSet;
94 
95  int m_maxResults;
96  bool m_maxResultsHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace MTurk
101 } // namespace Aws
Aws::MTurk::Model::ListHITsRequest::WithMaxResults
ListHITsRequest & WithMaxResults(int value)
Definition: ListHITsRequest.h:88
Aws::MTurk::Model::ListHITsRequest::WithNextToken
ListHITsRequest & WithNextToken(const Aws::String &value)
Definition: ListHITsRequest.h:65
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::ListHITsRequest::ListHITsRequest
ListHITsRequest()
Aws::MTurk::Model::ListHITsRequest::WithNextToken
ListHITsRequest & WithNextToken(const char *value)
Definition: ListHITsRequest.h:75
Aws::MTurk::Model::ListHITsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListHITsRequest.h:50
Aws::MTurk::Model::ListHITsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListHITsRequest.h:45
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::ListHITsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListHITsRequest.h:85
MTurkRequest.h
Aws::MTurk::Model::ListHITsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListHITsRequest.h:60
Aws::MTurk::Model::ListHITsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::ListHITsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListHITsRequest.h:79
Aws::MTurk::Model::ListHITsRequest
Definition: ListHITsRequest.h:22
Aws::MTurk::Model::ListHITsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListHITsRequest.h:55
AWSString.h
Aws::MTurk::Model::ListHITsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::ListHITsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListHITsRequest.h:40
Aws::MTurk::Model::ListHITsRequest::WithNextToken
ListHITsRequest & WithNextToken(Aws::String &&value)
Definition: ListHITsRequest.h:70
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::ListHITsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListHITsRequest.h:30
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ListHITsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListHITsRequest.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97