AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteWorkerBlockRequest.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 DeleteWorkerBlockRequest();
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_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 DeleteWorkerBlockRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
47 inline DeleteWorkerBlockRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
48 inline DeleteWorkerBlockRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
50
52
56 inline const Aws::String& GetReason() const{ return m_reason; }
57 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
58 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
59 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
60 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
61 inline DeleteWorkerBlockRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
62 inline DeleteWorkerBlockRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
63 inline DeleteWorkerBlockRequest& WithReason(const char* value) { SetReason(value); return *this;}
65 private:
66
67 Aws::String m_workerId;
68 bool m_workerIdHasBeenSet = false;
69
70 Aws::String m_reason;
71 bool m_reasonHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace MTurk
76} // namespace Aws
DeleteWorkerBlockRequest & WithWorkerId(Aws::String &&value)
DeleteWorkerBlockRequest & WithReason(Aws::String &&value)
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteWorkerBlockRequest & WithReason(const char *value)
virtual const char * GetServiceRequestName() const override
DeleteWorkerBlockRequest & WithWorkerId(const Aws::String &value)
DeleteWorkerBlockRequest & WithWorkerId(const char *value)
DeleteWorkerBlockRequest & WithReason(const Aws::String &value)
AWS_MTURK_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String