AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NotifyWorkersRequest.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/MTurkRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MTurk
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MTURK_API NotifyWorkersRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "NotifyWorkers"; }
32
33 AWS_MTURK_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetSubject() const { return m_subject; }
44 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
45 template<typename SubjectT = Aws::String>
46 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
47 template<typename SubjectT = Aws::String>
48 NotifyWorkersRequest& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
50
52
55 inline const Aws::String& GetMessageText() const { return m_messageText; }
56 inline bool MessageTextHasBeenSet() const { return m_messageTextHasBeenSet; }
57 template<typename MessageTextT = Aws::String>
58 void SetMessageText(MessageTextT&& value) { m_messageTextHasBeenSet = true; m_messageText = std::forward<MessageTextT>(value); }
59 template<typename MessageTextT = Aws::String>
60 NotifyWorkersRequest& WithMessageText(MessageTextT&& value) { SetMessageText(std::forward<MessageTextT>(value)); return *this;}
62
64
68 inline const Aws::Vector<Aws::String>& GetWorkerIds() const { return m_workerIds; }
69 inline bool WorkerIdsHasBeenSet() const { return m_workerIdsHasBeenSet; }
70 template<typename WorkerIdsT = Aws::Vector<Aws::String>>
71 void SetWorkerIds(WorkerIdsT&& value) { m_workerIdsHasBeenSet = true; m_workerIds = std::forward<WorkerIdsT>(value); }
72 template<typename WorkerIdsT = Aws::Vector<Aws::String>>
73 NotifyWorkersRequest& WithWorkerIds(WorkerIdsT&& value) { SetWorkerIds(std::forward<WorkerIdsT>(value)); return *this;}
74 template<typename WorkerIdsT = Aws::String>
75 NotifyWorkersRequest& AddWorkerIds(WorkerIdsT&& value) { m_workerIdsHasBeenSet = true; m_workerIds.emplace_back(std::forward<WorkerIdsT>(value)); return *this; }
77 private:
78
79 Aws::String m_subject;
80 bool m_subjectHasBeenSet = false;
81
82 Aws::String m_messageText;
83 bool m_messageTextHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_workerIds;
86 bool m_workerIdsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MTurk
91} // 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