AWS SDK for C++  1.9.106
AWS SDK for C++
DeleteWorkerBlockRequest.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 "DeleteWorkerBlock"; }
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 DeleteWorkerBlockRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
66 
70  inline DeleteWorkerBlockRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
71 
75  inline DeleteWorkerBlockRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
76 
77 
82  inline const Aws::String& GetReason() const{ return m_reason; }
83 
88  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
89 
94  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
95 
100  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
101 
106  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
107 
112  inline DeleteWorkerBlockRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
113 
118  inline DeleteWorkerBlockRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
119 
124  inline DeleteWorkerBlockRequest& WithReason(const char* value) { SetReason(value); return *this;}
125 
126  private:
127 
128  Aws::String m_workerId;
129  bool m_workerIdHasBeenSet;
130 
131  Aws::String m_reason;
132  bool m_reasonHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace MTurk
137 } // namespace Aws
Aws::MTurk::Model::DeleteWorkerBlockRequest
Definition: DeleteWorkerBlockRequest.h:22
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::DeleteWorkerBlockRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteWorkerBlockRequest.h:30
Aws::MTurk::Model::DeleteWorkerBlockRequest::WithReason
DeleteWorkerBlockRequest & WithReason(const Aws::String &value)
Definition: DeleteWorkerBlockRequest.h:112
Aws::MTurk::Model::DeleteWorkerBlockRequest::WithWorkerId
DeleteWorkerBlockRequest & WithWorkerId(const char *value)
Definition: DeleteWorkerBlockRequest.h:75
Aws::MTurk::Model::DeleteWorkerBlockRequest::GetWorkerId
const Aws::String & GetWorkerId() const
Definition: DeleteWorkerBlockRequest.h:40
Aws::MTurk::Model::DeleteWorkerBlockRequest::SetReason
void SetReason(Aws::String &&value)
Definition: DeleteWorkerBlockRequest.h:100
Aws::MTurk::Model::DeleteWorkerBlockRequest::SetReason
void SetReason(const char *value)
Definition: DeleteWorkerBlockRequest.h:106
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::DeleteWorkerBlockRequest::WithWorkerId
DeleteWorkerBlockRequest & WithWorkerId(Aws::String &&value)
Definition: DeleteWorkerBlockRequest.h:70
MTurkRequest.h
Aws::MTurk::Model::DeleteWorkerBlockRequest::WithReason
DeleteWorkerBlockRequest & WithReason(const char *value)
Definition: DeleteWorkerBlockRequest.h:124
Aws::MTurk::Model::DeleteWorkerBlockRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::DeleteWorkerBlockRequest::WithReason
DeleteWorkerBlockRequest & WithReason(Aws::String &&value)
Definition: DeleteWorkerBlockRequest.h:118
Aws::MTurk::Model::DeleteWorkerBlockRequest::SetReason
void SetReason(const Aws::String &value)
Definition: DeleteWorkerBlockRequest.h:94
Aws::MTurk::Model::DeleteWorkerBlockRequest::SetWorkerId
void SetWorkerId(Aws::String &&value)
Definition: DeleteWorkerBlockRequest.h:55
AWSString.h
Aws::MTurk::Model::DeleteWorkerBlockRequest::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: DeleteWorkerBlockRequest.h:88
Aws::MTurk::Model::DeleteWorkerBlockRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::DeleteWorkerBlockRequest::WorkerIdHasBeenSet
bool WorkerIdHasBeenSet() const
Definition: DeleteWorkerBlockRequest.h:45
Aws::MTurk::Model::DeleteWorkerBlockRequest::SetWorkerId
void SetWorkerId(const Aws::String &value)
Definition: DeleteWorkerBlockRequest.h:50
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::DeleteWorkerBlockRequest::SetWorkerId
void SetWorkerId(const char *value)
Definition: DeleteWorkerBlockRequest.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::DeleteWorkerBlockRequest::DeleteWorkerBlockRequest
DeleteWorkerBlockRequest()
Aws::MTurk::Model::DeleteWorkerBlockRequest::GetReason
const Aws::String & GetReason() const
Definition: DeleteWorkerBlockRequest.h:82
Aws::MTurk::Model::DeleteWorkerBlockRequest::WithWorkerId
DeleteWorkerBlockRequest & WithWorkerId(const Aws::String &value)
Definition: DeleteWorkerBlockRequest.h:65