AWS SDK for C++  1.9.106
AWS SDK for C++
WorkerBlock.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace MTurk
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetWorkerId() const{ return m_workerId; }
46 
50  inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
51 
55  inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
56 
60  inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
61 
65  inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
66 
70  inline WorkerBlock& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
71 
75  inline WorkerBlock& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
76 
80  inline WorkerBlock& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
81 
82 
86  inline const Aws::String& GetReason() const{ return m_reason; }
87 
91  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
92 
96  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
97 
101  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
102 
106  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
107 
111  inline WorkerBlock& WithReason(const Aws::String& value) { SetReason(value); return *this;}
112 
116  inline WorkerBlock& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
117 
121  inline WorkerBlock& WithReason(const char* value) { SetReason(value); return *this;}
122 
123  private:
124 
125  Aws::String m_workerId;
126  bool m_workerIdHasBeenSet;
127 
128  Aws::String m_reason;
129  bool m_reasonHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace MTurk
134 } // namespace Aws
Aws::MTurk::Model::WorkerBlock::WithReason
WorkerBlock & WithReason(const Aws::String &value)
Definition: WorkerBlock.h:111
Aws::MTurk::Model::WorkerBlock::SetWorkerId
void SetWorkerId(Aws::String &&value)
Definition: WorkerBlock.h:60
Aws::MTurk::Model::WorkerBlock::SetReason
void SetReason(const Aws::String &value)
Definition: WorkerBlock.h:96
Aws::MTurk::Model::WorkerBlock::WorkerBlock
WorkerBlock()
Aws::MTurk::Model::WorkerBlock::WorkerBlock
WorkerBlock(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::WorkerBlock::WithWorkerId
WorkerBlock & WithWorkerId(const Aws::String &value)
Definition: WorkerBlock.h:70
Aws::MTurk::Model::WorkerBlock::SetReason
void SetReason(const char *value)
Definition: WorkerBlock.h:106
Aws::MTurk::Model::WorkerBlock::SetWorkerId
void SetWorkerId(const char *value)
Definition: WorkerBlock.h:65
Aws::MTurk::Model::WorkerBlock::GetReason
const Aws::String & GetReason() const
Definition: WorkerBlock.h:86
Aws::MTurk::Model::WorkerBlock::SetReason
void SetReason(Aws::String &&value)
Definition: WorkerBlock.h:101
Aws::MTurk::Model::WorkerBlock::WithReason
WorkerBlock & WithReason(const char *value)
Definition: WorkerBlock.h:121
Aws::MTurk::Model::WorkerBlock::SetWorkerId
void SetWorkerId(const Aws::String &value)
Definition: WorkerBlock.h:55
Aws::MTurk::Model::WorkerBlock
Definition: WorkerBlock.h:34
Aws::MTurk::Model::WorkerBlock::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::WorkerBlock::operator=
WorkerBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::WorkerBlock::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: WorkerBlock.h:91
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::WorkerBlock::WithWorkerId
WorkerBlock & WithWorkerId(const char *value)
Definition: WorkerBlock.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::WorkerBlock::GetWorkerId
const Aws::String & GetWorkerId() const
Definition: WorkerBlock.h:45
Aws::MTurk::Model::WorkerBlock::WithReason
WorkerBlock & WithReason(Aws::String &&value)
Definition: WorkerBlock.h:116
Aws::MTurk::Model::WorkerBlock::WorkerIdHasBeenSet
bool WorkerIdHasBeenSet() const
Definition: WorkerBlock.h:50
Aws::MTurk::Model::WorkerBlock::WithWorkerId
WorkerBlock & WithWorkerId(Aws::String &&value)
Definition: WorkerBlock.h:75