AWS SDK for C++  1.9.104
AWS SDK for C++
CreateWorkerBlockRequest.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 "CreateWorkerBlock"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetWorkerId() const{ return m_workerId; }
41 
45  inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
46 
50  inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
51 
55  inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
56 
60  inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
61 
65  inline CreateWorkerBlockRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
66 
70  inline CreateWorkerBlockRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
71 
75  inline CreateWorkerBlockRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
76 
77 
83  inline const Aws::String& GetReason() const{ return m_reason; }
84 
90  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
91 
97  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
98 
104  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
105 
111  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
112 
118  inline CreateWorkerBlockRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
119 
125  inline CreateWorkerBlockRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
126 
132  inline CreateWorkerBlockRequest& WithReason(const char* value) { SetReason(value); return *this;}
133 
134  private:
135 
136  Aws::String m_workerId;
137  bool m_workerIdHasBeenSet;
138 
139  Aws::String m_reason;
140  bool m_reasonHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace MTurk
145 } // namespace Aws
Aws::MTurk::Model::CreateWorkerBlockRequest
Definition: CreateWorkerBlockRequest.h:22
Aws::MTurk::Model::CreateWorkerBlockRequest::WithWorkerId
CreateWorkerBlockRequest & WithWorkerId(Aws::String &&value)
Definition: CreateWorkerBlockRequest.h:70
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::CreateWorkerBlockRequest::WorkerIdHasBeenSet
bool WorkerIdHasBeenSet() const
Definition: CreateWorkerBlockRequest.h:45
Aws::MTurk::Model::CreateWorkerBlockRequest::WithWorkerId
CreateWorkerBlockRequest & WithWorkerId(const char *value)
Definition: CreateWorkerBlockRequest.h:75
Aws::MTurk::Model::CreateWorkerBlockRequest::SetWorkerId
void SetWorkerId(Aws::String &&value)
Definition: CreateWorkerBlockRequest.h:55
Aws::MTurk::Model::CreateWorkerBlockRequest::WithWorkerId
CreateWorkerBlockRequest & WithWorkerId(const Aws::String &value)
Definition: CreateWorkerBlockRequest.h:65
Aws::MTurk::Model::CreateWorkerBlockRequest::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: CreateWorkerBlockRequest.h:90
Aws::MTurk::Model::CreateWorkerBlockRequest::SetReason
void SetReason(Aws::String &&value)
Definition: CreateWorkerBlockRequest.h:104
Aws::MTurk::Model::CreateWorkerBlockRequest::WithReason
CreateWorkerBlockRequest & WithReason(const Aws::String &value)
Definition: CreateWorkerBlockRequest.h:118
Aws::MTurk::Model::CreateWorkerBlockRequest::WithReason
CreateWorkerBlockRequest & WithReason(Aws::String &&value)
Definition: CreateWorkerBlockRequest.h:125
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
MTurkRequest.h
Aws::MTurk::Model::CreateWorkerBlockRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::CreateWorkerBlockRequest::SetWorkerId
void SetWorkerId(const char *value)
Definition: CreateWorkerBlockRequest.h:60
AWSString.h
Aws::MTurk::Model::CreateWorkerBlockRequest::WithReason
CreateWorkerBlockRequest & WithReason(const char *value)
Definition: CreateWorkerBlockRequest.h:132
Aws::MTurk::Model::CreateWorkerBlockRequest::SetReason
void SetReason(const Aws::String &value)
Definition: CreateWorkerBlockRequest.h:97
Aws::MTurk::Model::CreateWorkerBlockRequest::SetWorkerId
void SetWorkerId(const Aws::String &value)
Definition: CreateWorkerBlockRequest.h:50
Aws::MTurk::Model::CreateWorkerBlockRequest::SetReason
void SetReason(const char *value)
Definition: CreateWorkerBlockRequest.h:111
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::CreateWorkerBlockRequest::GetWorkerId
const Aws::String & GetWorkerId() const
Definition: CreateWorkerBlockRequest.h:40
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::CreateWorkerBlockRequest::CreateWorkerBlockRequest
CreateWorkerBlockRequest()
Aws::MTurk::Model::CreateWorkerBlockRequest::GetReason
const Aws::String & GetReason() const
Definition: CreateWorkerBlockRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::CreateWorkerBlockRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWorkerBlockRequest.h:30
Aws::MTurk::Model::CreateWorkerBlockRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override