AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkerBlockRequest.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/MTurkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace MTurk
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_MTURK_API CreateWorkerBlockRequest();
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_MTURK_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
42 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
43 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
44 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
45 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
46 inline CreateWorkerBlockRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
47 inline CreateWorkerBlockRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
48 inline CreateWorkerBlockRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
50
52
57 inline const Aws::String& GetReason() const{ return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
60 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
61 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
62 inline CreateWorkerBlockRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
63 inline CreateWorkerBlockRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
64 inline CreateWorkerBlockRequest& WithReason(const char* value) { SetReason(value); return *this;}
66 private:
67
68 Aws::String m_workerId;
69 bool m_workerIdHasBeenSet = false;
70
71 Aws::String m_reason;
72 bool m_reasonHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace MTurk
77} // namespace Aws
AWS_MTURK_API Aws::String SerializePayload() const override
CreateWorkerBlockRequest & WithWorkerId(Aws::String &&value)
CreateWorkerBlockRequest & WithWorkerId(const char *value)
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkerBlockRequest & WithReason(const Aws::String &value)
CreateWorkerBlockRequest & WithReason(const char *value)
CreateWorkerBlockRequest & WithReason(Aws::String &&value)
CreateWorkerBlockRequest & WithWorkerId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String