AWS SDK for C++  1.9.105
AWS SDK for C++
NotifyWorkersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MTurk
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetSubject() const{ return m_subject; }
43 
48  inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
49 
54  inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
55 
60  inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
61 
66  inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
67 
72  inline NotifyWorkersRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
73 
78  inline NotifyWorkersRequest& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
79 
84  inline NotifyWorkersRequest& WithSubject(const char* value) { SetSubject(value); return *this;}
85 
86 
90  inline const Aws::String& GetMessageText() const{ return m_messageText; }
91 
95  inline bool MessageTextHasBeenSet() const { return m_messageTextHasBeenSet; }
96 
100  inline void SetMessageText(const Aws::String& value) { m_messageTextHasBeenSet = true; m_messageText = value; }
101 
105  inline void SetMessageText(Aws::String&& value) { m_messageTextHasBeenSet = true; m_messageText = std::move(value); }
106 
110  inline void SetMessageText(const char* value) { m_messageTextHasBeenSet = true; m_messageText.assign(value); }
111 
115  inline NotifyWorkersRequest& WithMessageText(const Aws::String& value) { SetMessageText(value); return *this;}
116 
120  inline NotifyWorkersRequest& WithMessageText(Aws::String&& value) { SetMessageText(std::move(value)); return *this;}
121 
125  inline NotifyWorkersRequest& WithMessageText(const char* value) { SetMessageText(value); return *this;}
126 
127 
132  inline const Aws::Vector<Aws::String>& GetWorkerIds() const{ return m_workerIds; }
133 
138  inline bool WorkerIdsHasBeenSet() const { return m_workerIdsHasBeenSet; }
139 
144  inline void SetWorkerIds(const Aws::Vector<Aws::String>& value) { m_workerIdsHasBeenSet = true; m_workerIds = value; }
145 
150  inline void SetWorkerIds(Aws::Vector<Aws::String>&& value) { m_workerIdsHasBeenSet = true; m_workerIds = std::move(value); }
151 
156  inline NotifyWorkersRequest& WithWorkerIds(const Aws::Vector<Aws::String>& value) { SetWorkerIds(value); return *this;}
157 
162  inline NotifyWorkersRequest& WithWorkerIds(Aws::Vector<Aws::String>&& value) { SetWorkerIds(std::move(value)); return *this;}
163 
168  inline NotifyWorkersRequest& AddWorkerIds(const Aws::String& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; }
169 
174  inline NotifyWorkersRequest& AddWorkerIds(Aws::String&& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(std::move(value)); return *this; }
175 
180  inline NotifyWorkersRequest& AddWorkerIds(const char* value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; }
181 
182  private:
183 
184  Aws::String m_subject;
185  bool m_subjectHasBeenSet;
186 
187  Aws::String m_messageText;
188  bool m_messageTextHasBeenSet;
189 
190  Aws::Vector<Aws::String> m_workerIds;
191  bool m_workerIdsHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace MTurk
196 } // namespace Aws
Aws::MTurk::Model::NotifyWorkersRequest::SetSubject
void SetSubject(Aws::String &&value)
Definition: NotifyWorkersRequest.h:60
Aws::MTurk::Model::NotifyWorkersRequest::SetMessageText
void SetMessageText(Aws::String &&value)
Definition: NotifyWorkersRequest.h:105
Aws::MTurk::Model::NotifyWorkersRequest::SubjectHasBeenSet
bool SubjectHasBeenSet() const
Definition: NotifyWorkersRequest.h:48
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::NotifyWorkersRequest::GetWorkerIds
const Aws::Vector< Aws::String > & GetWorkerIds() const
Definition: NotifyWorkersRequest.h:132
Aws::MTurk::Model::NotifyWorkersRequest::SetSubject
void SetSubject(const Aws::String &value)
Definition: NotifyWorkersRequest.h:54
Aws::MTurk::Model::NotifyWorkersRequest::MessageTextHasBeenSet
bool MessageTextHasBeenSet() const
Definition: NotifyWorkersRequest.h:95
Aws::MTurk::Model::NotifyWorkersRequest::AddWorkerIds
NotifyWorkersRequest & AddWorkerIds(Aws::String &&value)
Definition: NotifyWorkersRequest.h:174
Aws::MTurk::Model::NotifyWorkersRequest::WorkerIdsHasBeenSet
bool WorkerIdsHasBeenSet() const
Definition: NotifyWorkersRequest.h:138
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MTurk::Model::NotifyWorkersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::NotifyWorkersRequest::SetWorkerIds
void SetWorkerIds(Aws::Vector< Aws::String > &&value)
Definition: NotifyWorkersRequest.h:150
AWSVector.h
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::NotifyWorkersRequest::WithSubject
NotifyWorkersRequest & WithSubject(Aws::String &&value)
Definition: NotifyWorkersRequest.h:78
MTurkRequest.h
Aws::MTurk::Model::NotifyWorkersRequest::WithWorkerIds
NotifyWorkersRequest & WithWorkerIds(const Aws::Vector< Aws::String > &value)
Definition: NotifyWorkersRequest.h:156
Aws::MTurk::Model::NotifyWorkersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: NotifyWorkersRequest.h:31
Aws::MTurk::Model::NotifyWorkersRequest::SetWorkerIds
void SetWorkerIds(const Aws::Vector< Aws::String > &value)
Definition: NotifyWorkersRequest.h:144
Aws::MTurk::Model::NotifyWorkersRequest::WithMessageText
NotifyWorkersRequest & WithMessageText(const char *value)
Definition: NotifyWorkersRequest.h:125
Aws::MTurk::Model::NotifyWorkersRequest::SetMessageText
void SetMessageText(const Aws::String &value)
Definition: NotifyWorkersRequest.h:100
Aws::MTurk::Model::NotifyWorkersRequest::SetSubject
void SetSubject(const char *value)
Definition: NotifyWorkersRequest.h:66
Aws::MTurk::Model::NotifyWorkersRequest::WithWorkerIds
NotifyWorkersRequest & WithWorkerIds(Aws::Vector< Aws::String > &&value)
Definition: NotifyWorkersRequest.h:162
AWSString.h
Aws::MTurk::Model::NotifyWorkersRequest::AddWorkerIds
NotifyWorkersRequest & AddWorkerIds(const char *value)
Definition: NotifyWorkersRequest.h:180
Aws::MTurk::Model::NotifyWorkersRequest
Definition: NotifyWorkersRequest.h:23
Aws::MTurk::Model::NotifyWorkersRequest::GetSubject
const Aws::String & GetSubject() const
Definition: NotifyWorkersRequest.h:42
Aws::MTurk::Model::NotifyWorkersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::NotifyWorkersRequest::AddWorkerIds
NotifyWorkersRequest & AddWorkerIds(const Aws::String &value)
Definition: NotifyWorkersRequest.h:168
Aws::MTurk::Model::NotifyWorkersRequest::NotifyWorkersRequest
NotifyWorkersRequest()
Aws::MTurk::Model::NotifyWorkersRequest::GetMessageText
const Aws::String & GetMessageText() const
Definition: NotifyWorkersRequest.h:90
Aws::MTurk::Model::NotifyWorkersRequest::WithSubject
NotifyWorkersRequest & WithSubject(const char *value)
Definition: NotifyWorkersRequest.h:84
Aws::MTurk::Model::NotifyWorkersRequest::WithSubject
NotifyWorkersRequest & WithSubject(const Aws::String &value)
Definition: NotifyWorkersRequest.h:72
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::NotifyWorkersRequest::WithMessageText
NotifyWorkersRequest & WithMessageText(Aws::String &&value)
Definition: NotifyWorkersRequest.h:120
Aws::MTurk::Model::NotifyWorkersRequest::WithMessageText
NotifyWorkersRequest & WithMessageText(const Aws::String &value)
Definition: NotifyWorkersRequest.h:115
Aws::MTurk::Model::NotifyWorkersRequest::SetMessageText
void SetMessageText(const char *value)
Definition: NotifyWorkersRequest.h:110