AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NotifyWorkersFailureStatus.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/model/NotifyWorkersFailureCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MTurk
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const NotifyWorkersFailureCode& GetNotifyWorkersFailureCode() const{ return m_notifyWorkersFailureCode; }
47 inline bool NotifyWorkersFailureCodeHasBeenSet() const { return m_notifyWorkersFailureCodeHasBeenSet; }
48 inline void SetNotifyWorkersFailureCode(const NotifyWorkersFailureCode& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = value; }
49 inline void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode&& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = std::move(value); }
53
55
58 inline const Aws::String& GetNotifyWorkersFailureMessage() const{ return m_notifyWorkersFailureMessage; }
59 inline bool NotifyWorkersFailureMessageHasBeenSet() const { return m_notifyWorkersFailureMessageHasBeenSet; }
60 inline void SetNotifyWorkersFailureMessage(const Aws::String& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = value; }
61 inline void SetNotifyWorkersFailureMessage(Aws::String&& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = std::move(value); }
62 inline void SetNotifyWorkersFailureMessage(const char* value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage.assign(value); }
67
69
72 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
73 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
74 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
75 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
76 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
77 inline NotifyWorkersFailureStatus& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
78 inline NotifyWorkersFailureStatus& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
79 inline NotifyWorkersFailureStatus& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
81 private:
82
83 NotifyWorkersFailureCode m_notifyWorkersFailureCode;
84 bool m_notifyWorkersFailureCodeHasBeenSet = false;
85
86 Aws::String m_notifyWorkersFailureMessage;
87 bool m_notifyWorkersFailureMessageHasBeenSet = false;
88
89 Aws::String m_workerId;
90 bool m_workerIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace MTurk
95} // namespace Aws
void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode &&value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNotifyWorkersFailureCode(const NotifyWorkersFailureCode &value)
NotifyWorkersFailureStatus & WithWorkerId(const char *value)
NotifyWorkersFailureStatus & WithNotifyWorkersFailureMessage(const char *value)
NotifyWorkersFailureStatus & WithNotifyWorkersFailureMessage(Aws::String &&value)
NotifyWorkersFailureStatus & WithNotifyWorkersFailureCode(NotifyWorkersFailureCode &&value)
NotifyWorkersFailureStatus & WithNotifyWorkersFailureCode(const NotifyWorkersFailureCode &value)
const NotifyWorkersFailureCode & GetNotifyWorkersFailureCode() const
AWS_MTURK_API NotifyWorkersFailureStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API NotifyWorkersFailureStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
NotifyWorkersFailureStatus & WithWorkerId(Aws::String &&value)
void SetNotifyWorkersFailureMessage(const Aws::String &value)
NotifyWorkersFailureStatus & WithWorkerId(const Aws::String &value)
NotifyWorkersFailureStatus & WithNotifyWorkersFailureMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue