AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
NotifyWorkersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mturk-requester/MTurkRequest.h>
10#include <aws/mturk-requester/MTurk_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MTurk {
16namespace Model {
17
21 public:
22 AWS_MTURK_API NotifyWorkersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "NotifyWorkers"; }
29
30 AWS_MTURK_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetSubject() const { return m_subject; }
40 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
41 template <typename SubjectT = Aws::String>
42 void SetSubject(SubjectT&& value) {
43 m_subjectHasBeenSet = true;
44 m_subject = std::forward<SubjectT>(value);
45 }
46 template <typename SubjectT = Aws::String>
47 NotifyWorkersRequest& WithSubject(SubjectT&& value) {
48 SetSubject(std::forward<SubjectT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMessageText() const { return m_messageText; }
58 inline bool MessageTextHasBeenSet() const { return m_messageTextHasBeenSet; }
59 template <typename MessageTextT = Aws::String>
60 void SetMessageText(MessageTextT&& value) {
61 m_messageTextHasBeenSet = true;
62 m_messageText = std::forward<MessageTextT>(value);
63 }
64 template <typename MessageTextT = Aws::String>
65 NotifyWorkersRequest& WithMessageText(MessageTextT&& value) {
66 SetMessageText(std::forward<MessageTextT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<Aws::String>& GetWorkerIds() const { return m_workerIds; }
77 inline bool WorkerIdsHasBeenSet() const { return m_workerIdsHasBeenSet; }
78 template <typename WorkerIdsT = Aws::Vector<Aws::String>>
79 void SetWorkerIds(WorkerIdsT&& value) {
80 m_workerIdsHasBeenSet = true;
81 m_workerIds = std::forward<WorkerIdsT>(value);
82 }
83 template <typename WorkerIdsT = Aws::Vector<Aws::String>>
84 NotifyWorkersRequest& WithWorkerIds(WorkerIdsT&& value) {
85 SetWorkerIds(std::forward<WorkerIdsT>(value));
86 return *this;
87 }
88 template <typename WorkerIdsT = Aws::String>
89 NotifyWorkersRequest& AddWorkerIds(WorkerIdsT&& value) {
90 m_workerIdsHasBeenSet = true;
91 m_workerIds.emplace_back(std::forward<WorkerIdsT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_subject;
97
98 Aws::String m_messageText;
99
100 Aws::Vector<Aws::String> m_workerIds;
101 bool m_subjectHasBeenSet = false;
102 bool m_messageTextHasBeenSet = false;
103 bool m_workerIdsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace MTurk
108} // namespace Aws
AWS_MTURK_API NotifyWorkersRequest()=default
NotifyWorkersRequest & WithWorkerIds(WorkerIdsT &&value)
NotifyWorkersRequest & AddWorkerIds(WorkerIdsT &&value)
AWS_MTURK_API Aws::String SerializePayload() const override
NotifyWorkersRequest & WithSubject(SubjectT &&value)
virtual const char * GetServiceRequestName() const override
NotifyWorkersRequest & WithMessageText(MessageTextT &&value)
const Aws::Vector< Aws::String > & GetWorkerIds() const
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector