AWS SDK for C++  1.9.104
AWS SDK for C++
ListWorkerBlocksRequest.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 "ListWorkerBlocks"; }
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 ListWorkerBlocksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 
70  inline ListWorkerBlocksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
71 
75  inline ListWorkerBlocksRequest& 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 ListWorkerBlocksRequest& 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::ListWorkerBlocksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListWorkerBlocksRequest.h:60
Aws::MTurk::Model::ListWorkerBlocksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListWorkerBlocksRequest.h:55
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::ListWorkerBlocksRequest::WithMaxResults
ListWorkerBlocksRequest & WithMaxResults(int value)
Definition: ListWorkerBlocksRequest.h:88
Aws::MTurk::Model::ListWorkerBlocksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListWorkerBlocksRequest.h:50
Aws::MTurk::Model::ListWorkerBlocksRequest::ListWorkerBlocksRequest
ListWorkerBlocksRequest()
Aws::MTurk::Model::ListWorkerBlocksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListWorkerBlocksRequest.h:45
Aws::MTurk::Model::ListWorkerBlocksRequest::WithNextToken
ListWorkerBlocksRequest & WithNextToken(Aws::String &&value)
Definition: ListWorkerBlocksRequest.h:70
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
MTurkRequest.h
Aws::MTurk::Model::ListWorkerBlocksRequest::WithNextToken
ListWorkerBlocksRequest & WithNextToken(const char *value)
Definition: ListWorkerBlocksRequest.h:75
Aws::MTurk::Model::ListWorkerBlocksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListWorkerBlocksRequest.h:30
Aws::MTurk::Model::ListWorkerBlocksRequest::GetMaxResults
int GetMaxResults() const
Definition: ListWorkerBlocksRequest.h:79
AWSString.h
Aws::MTurk::Model::ListWorkerBlocksRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::ListWorkerBlocksRequest::WithNextToken
ListWorkerBlocksRequest & WithNextToken(const Aws::String &value)
Definition: ListWorkerBlocksRequest.h:65
Aws::MTurk::Model::ListWorkerBlocksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListWorkerBlocksRequest.h:40
MTurk_EXPORTS.h
Aws::MTurk::Model::ListWorkerBlocksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListWorkerBlocksRequest.h:82
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ListWorkerBlocksRequest
Definition: ListWorkerBlocksRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ListWorkerBlocksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListWorkerBlocksRequest.h:85
Aws::MTurk::Model::ListWorkerBlocksRequest::SerializePayload
Aws::String SerializePayload() const override