AWS SDK for C++  1.9.106
AWS SDK for C++
NotifyWorkersFailureStatus.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace MTurk
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const NotifyWorkersFailureCode& GetNotifyWorkersFailureCode() const{ return m_notifyWorkersFailureCode; }
46 
50  inline bool NotifyWorkersFailureCodeHasBeenSet() const { return m_notifyWorkersFailureCodeHasBeenSet; }
51 
55  inline void SetNotifyWorkersFailureCode(const NotifyWorkersFailureCode& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = value; }
56 
60  inline void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode&& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = std::move(value); }
61 
65  inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureCode(const NotifyWorkersFailureCode& value) { SetNotifyWorkersFailureCode(value); return *this;}
66 
70  inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureCode(NotifyWorkersFailureCode&& value) { SetNotifyWorkersFailureCode(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetNotifyWorkersFailureMessage() const{ return m_notifyWorkersFailureMessage; }
77 
81  inline bool NotifyWorkersFailureMessageHasBeenSet() const { return m_notifyWorkersFailureMessageHasBeenSet; }
82 
86  inline void SetNotifyWorkersFailureMessage(const Aws::String& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = value; }
87 
91  inline void SetNotifyWorkersFailureMessage(Aws::String&& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = std::move(value); }
92 
96  inline void SetNotifyWorkersFailureMessage(const char* value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage.assign(value); }
97 
101  inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(const Aws::String& value) { SetNotifyWorkersFailureMessage(value); return *this;}
102 
106  inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(Aws::String&& value) { SetNotifyWorkersFailureMessage(std::move(value)); return *this;}
107 
111  inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(const char* value) { SetNotifyWorkersFailureMessage(value); return *this;}
112 
113 
117  inline const Aws::String& GetWorkerId() const{ return m_workerId; }
118 
122  inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
123 
127  inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
128 
132  inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
133 
137  inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
138 
142  inline NotifyWorkersFailureStatus& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
143 
147  inline NotifyWorkersFailureStatus& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
148 
152  inline NotifyWorkersFailureStatus& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
153 
154  private:
155 
156  NotifyWorkersFailureCode m_notifyWorkersFailureCode;
157  bool m_notifyWorkersFailureCodeHasBeenSet;
158 
159  Aws::String m_notifyWorkersFailureMessage;
160  bool m_notifyWorkersFailureMessageHasBeenSet;
161 
162  Aws::String m_workerId;
163  bool m_workerIdHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace MTurk
168 } // namespace Aws
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetWorkerId
void SetWorkerId(const char *value)
Definition: NotifyWorkersFailureStatus.h:137
Aws::MTurk::Model::NotifyWorkersFailureStatus::GetNotifyWorkersFailureCode
const NotifyWorkersFailureCode & GetNotifyWorkersFailureCode() const
Definition: NotifyWorkersFailureStatus.h:45
Aws::MTurk::Model::NotifyWorkersFailureStatus::WorkerIdHasBeenSet
bool WorkerIdHasBeenSet() const
Definition: NotifyWorkersFailureStatus.h:122
Aws::MTurk::Model::NotifyWorkersFailureStatus::GetWorkerId
const Aws::String & GetWorkerId() const
Definition: NotifyWorkersFailureStatus.h:117
Aws::MTurk::Model::NotifyWorkersFailureStatus
Definition: NotifyWorkersFailureStatus.h:34
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithNotifyWorkersFailureCode
NotifyWorkersFailureStatus & WithNotifyWorkersFailureCode(NotifyWorkersFailureCode &&value)
Definition: NotifyWorkersFailureStatus.h:70
Aws::MTurk::Model::NotifyWorkersFailureStatus::NotifyWorkersFailureStatus
NotifyWorkersFailureStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::NotifyWorkersFailureStatus::operator=
NotifyWorkersFailureStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::NotifyWorkersFailureStatus::NotifyWorkersFailureMessageHasBeenSet
bool NotifyWorkersFailureMessageHasBeenSet() const
Definition: NotifyWorkersFailureStatus.h:81
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithNotifyWorkersFailureMessage
NotifyWorkersFailureStatus & WithNotifyWorkersFailureMessage(Aws::String &&value)
Definition: NotifyWorkersFailureStatus.h:106
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithNotifyWorkersFailureMessage
NotifyWorkersFailureStatus & WithNotifyWorkersFailureMessage(const char *value)
Definition: NotifyWorkersFailureStatus.h:111
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithNotifyWorkersFailureMessage
NotifyWorkersFailureStatus & WithNotifyWorkersFailureMessage(const Aws::String &value)
Definition: NotifyWorkersFailureStatus.h:101
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetNotifyWorkersFailureMessage
void SetNotifyWorkersFailureMessage(const char *value)
Definition: NotifyWorkersFailureStatus.h:96
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithNotifyWorkersFailureCode
NotifyWorkersFailureStatus & WithNotifyWorkersFailureCode(const NotifyWorkersFailureCode &value)
Definition: NotifyWorkersFailureStatus.h:65
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithWorkerId
NotifyWorkersFailureStatus & WithWorkerId(const Aws::String &value)
Definition: NotifyWorkersFailureStatus.h:142
Aws::MTurk::Model::NotifyWorkersFailureStatus::NotifyWorkersFailureStatus
NotifyWorkersFailureStatus()
Aws::MTurk::Model::NotifyWorkersFailureStatus::NotifyWorkersFailureCodeHasBeenSet
bool NotifyWorkersFailureCodeHasBeenSet() const
Definition: NotifyWorkersFailureStatus.h:50
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetNotifyWorkersFailureMessage
void SetNotifyWorkersFailureMessage(const Aws::String &value)
Definition: NotifyWorkersFailureStatus.h:86
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
NotifyWorkersFailureCode.h
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithWorkerId
NotifyWorkersFailureStatus & WithWorkerId(Aws::String &&value)
Definition: NotifyWorkersFailureStatus.h:147
Aws::MTurk::Model::NotifyWorkersFailureCode
NotifyWorkersFailureCode
Definition: NotifyWorkersFailureCode.h:17
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetWorkerId
void SetWorkerId(const Aws::String &value)
Definition: NotifyWorkersFailureStatus.h:127
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::NotifyWorkersFailureStatus::WithWorkerId
NotifyWorkersFailureStatus & WithWorkerId(const char *value)
Definition: NotifyWorkersFailureStatus.h:152
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetNotifyWorkersFailureCode
void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode &&value)
Definition: NotifyWorkersFailureStatus.h:60
Aws::MTurk::Model::NotifyWorkersFailureStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetNotifyWorkersFailureMessage
void SetNotifyWorkersFailureMessage(Aws::String &&value)
Definition: NotifyWorkersFailureStatus.h:91
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetNotifyWorkersFailureCode
void SetNotifyWorkersFailureCode(const NotifyWorkersFailureCode &value)
Definition: NotifyWorkersFailureStatus.h:55
Aws::MTurk::Model::NotifyWorkersFailureStatus::GetNotifyWorkersFailureMessage
const Aws::String & GetNotifyWorkersFailureMessage() const
Definition: NotifyWorkersFailureStatus.h:76
Aws::MTurk::Model::NotifyWorkersFailureStatus::SetWorkerId
void SetWorkerId(Aws::String &&value)
Definition: NotifyWorkersFailureStatus.h:132