AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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:
36 AWS_MTURK_API NotifyWorkersFailureStatus() = default;
39 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline NotifyWorkersFailureCode GetNotifyWorkersFailureCode() const { return m_notifyWorkersFailureCode; }
47 inline bool NotifyWorkersFailureCodeHasBeenSet() const { return m_notifyWorkersFailureCodeHasBeenSet; }
48 inline void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = value; }
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) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = std::forward<NotifyWorkersFailureMessageT>(value); }
60 template<typename NotifyWorkersFailureMessageT = Aws::String>
61 NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(NotifyWorkersFailureMessageT&& value) { SetNotifyWorkersFailureMessage(std::forward<NotifyWorkersFailureMessageT>(value)); return *this;}
63
65
68 inline const Aws::String& GetWorkerId() const { return m_workerId; }
69 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
70 template<typename WorkerIdT = Aws::String>
71 void SetWorkerId(WorkerIdT&& value) { m_workerIdHasBeenSet = true; m_workerId = std::forward<WorkerIdT>(value); }
72 template<typename WorkerIdT = Aws::String>
73 NotifyWorkersFailureStatus& WithWorkerId(WorkerIdT&& value) { SetWorkerId(std::forward<WorkerIdT>(value)); return *this;}
75 private:
76
78 bool m_notifyWorkersFailureCodeHasBeenSet = false;
79
80 Aws::String m_notifyWorkersFailureMessage;
81 bool m_notifyWorkersFailureMessageHasBeenSet = false;
82
83 Aws::String m_workerId;
84 bool m_workerIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace MTurk
89} // 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