AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkerBlock.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MTurk
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_MTURK_API WorkerBlock();
37 AWS_MTURK_API WorkerBlock(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
47 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
48 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
49 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
50 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
51 inline WorkerBlock& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
52 inline WorkerBlock& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
53 inline WorkerBlock& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
55
57
60 inline const Aws::String& GetReason() const{ return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
63 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
64 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
65 inline WorkerBlock& WithReason(const Aws::String& value) { SetReason(value); return *this;}
66 inline WorkerBlock& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
67 inline WorkerBlock& WithReason(const char* value) { SetReason(value); return *this;}
69 private:
70
71 Aws::String m_workerId;
72 bool m_workerIdHasBeenSet = false;
73
74 Aws::String m_reason;
75 bool m_reasonHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace MTurk
80} // namespace Aws
const Aws::String & GetReason() const
Definition WorkerBlock.h:60
void SetReason(const char *value)
Definition WorkerBlock.h:64
void SetWorkerId(const char *value)
Definition WorkerBlock.h:50
WorkerBlock & WithReason(const char *value)
Definition WorkerBlock.h:67
void SetWorkerId(const Aws::String &value)
Definition WorkerBlock.h:48
WorkerBlock & WithReason(Aws::String &&value)
Definition WorkerBlock.h:66
void SetReason(Aws::String &&value)
Definition WorkerBlock.h:63
AWS_MTURK_API WorkerBlock(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetWorkerId() const
Definition WorkerBlock.h:46
void SetWorkerId(Aws::String &&value)
Definition WorkerBlock.h:49
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerBlock & WithWorkerId(Aws::String &&value)
Definition WorkerBlock.h:52
WorkerBlock & WithWorkerId(const Aws::String &value)
Definition WorkerBlock.h:51
AWS_MTURK_API WorkerBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerBlock & WithWorkerId(const char *value)
Definition WorkerBlock.h:53
void SetReason(const Aws::String &value)
Definition WorkerBlock.h:62
WorkerBlock & WithReason(const Aws::String &value)
Definition WorkerBlock.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue