AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
NotifyWorkersFailureStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mturk-requester/MTurk_EXPORTS.h>
9#include <aws/mturk-requester/model/NotifyWorkersFailureCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MTurk {
21namespace Model {
22
30 public:
31 AWS_MTURK_API NotifyWorkersFailureStatus() = default;
34 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline NotifyWorkersFailureCode GetNotifyWorkersFailureCode() const { return m_notifyWorkersFailureCode; }
41 inline bool NotifyWorkersFailureCodeHasBeenSet() const { return m_notifyWorkersFailureCodeHasBeenSet; }
43 m_notifyWorkersFailureCodeHasBeenSet = true;
44 m_notifyWorkersFailureCode = value;
45 }
48 return *this;
49 }
51
53
56 inline const Aws::String& GetNotifyWorkersFailureMessage() const { return m_notifyWorkersFailureMessage; }
57 inline bool NotifyWorkersFailureMessageHasBeenSet() const { return m_notifyWorkersFailureMessageHasBeenSet; }
58 template <typename NotifyWorkersFailureMessageT = Aws::String>
59 void SetNotifyWorkersFailureMessage(NotifyWorkersFailureMessageT&& value) {
60 m_notifyWorkersFailureMessageHasBeenSet = true;
61 m_notifyWorkersFailureMessage = std::forward<NotifyWorkersFailureMessageT>(value);
62 }
63 template <typename NotifyWorkersFailureMessageT = Aws::String>
64 NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(NotifyWorkersFailureMessageT&& value) {
65 SetNotifyWorkersFailureMessage(std::forward<NotifyWorkersFailureMessageT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetWorkerId() const { return m_workerId; }
75 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
76 template <typename WorkerIdT = Aws::String>
77 void SetWorkerId(WorkerIdT&& value) {
78 m_workerIdHasBeenSet = true;
79 m_workerId = std::forward<WorkerIdT>(value);
80 }
81 template <typename WorkerIdT = Aws::String>
83 SetWorkerId(std::forward<WorkerIdT>(value));
84 return *this;
85 }
87 private:
89
90 Aws::String m_notifyWorkersFailureMessage;
91
92 Aws::String m_workerId;
93 bool m_notifyWorkersFailureCodeHasBeenSet = false;
94 bool m_notifyWorkersFailureMessageHasBeenSet = false;
95 bool m_workerIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace MTurk
100} // namespace Aws
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
NotifyWorkersFailureStatus & WithNotifyWorkersFailureMessage(NotifyWorkersFailureMessageT &&value)
AWS_MTURK_API NotifyWorkersFailureStatus()=default
void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode value)
AWS_MTURK_API NotifyWorkersFailureStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API NotifyWorkersFailureStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
NotifyWorkersFailureStatus & WithNotifyWorkersFailureCode(NotifyWorkersFailureCode value)
NotifyWorkersFailureStatus & WithWorkerId(WorkerIdT &&value)
void SetNotifyWorkersFailureMessage(NotifyWorkersFailureMessageT &&value)
NotifyWorkersFailureCode GetNotifyWorkersFailureCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue