AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
46 inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
47 inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
48 inline NotifyWorkersRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
49 inline NotifyWorkersRequest& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
50 inline NotifyWorkersRequest& WithSubject(const char* value) { SetSubject(value); return *this;}
52
54
57 inline const Aws::String& GetMessageText() const{ return m_messageText; }
58 inline bool MessageTextHasBeenSet() const { return m_messageTextHasBeenSet; }
59 inline void SetMessageText(const Aws::String& value) { m_messageTextHasBeenSet = true; m_messageText = value; }
60 inline void SetMessageText(Aws::String&& value) { m_messageTextHasBeenSet = true; m_messageText = std::move(value); }
61 inline void SetMessageText(const char* value) { m_messageTextHasBeenSet = true; m_messageText.assign(value); }
62 inline NotifyWorkersRequest& WithMessageText(const Aws::String& value) { SetMessageText(value); return *this;}
63 inline NotifyWorkersRequest& WithMessageText(Aws::String&& value) { SetMessageText(std::move(value)); return *this;}
64 inline NotifyWorkersRequest& WithMessageText(const char* value) { SetMessageText(value); return *this;}
66
68
72 inline const Aws::Vector<Aws::String>& GetWorkerIds() const{ return m_workerIds; }
73 inline bool WorkerIdsHasBeenSet() const { return m_workerIdsHasBeenSet; }
74 inline void SetWorkerIds(const Aws::Vector<Aws::String>& value) { m_workerIdsHasBeenSet = true; m_workerIds = value; }
75 inline void SetWorkerIds(Aws::Vector<Aws::String>&& value) { m_workerIdsHasBeenSet = true; m_workerIds = std::move(value); }
76 inline NotifyWorkersRequest& WithWorkerIds(const Aws::Vector<Aws::String>& value) { SetWorkerIds(value); return *this;}
77 inline NotifyWorkersRequest& WithWorkerIds(Aws::Vector<Aws::String>&& value) { SetWorkerIds(std::move(value)); return *this;}
78 inline NotifyWorkersRequest& AddWorkerIds(const Aws::String& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; }
79 inline NotifyWorkersRequest& AddWorkerIds(Aws::String&& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(std::move(value)); return *this; }
80 inline NotifyWorkersRequest& AddWorkerIds(const char* value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; }
82 private:
83
84 Aws::String m_subject;
85 bool m_subjectHasBeenSet = false;
86
87 Aws::String m_messageText;
88 bool m_messageTextHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_workerIds;
91 bool m_workerIdsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace MTurk
96} // namespace Aws
NotifyWorkersRequest & WithMessageText(Aws::String &&value)
NotifyWorkersRequest & WithMessageText(const char *value)
void SetMessageText(const Aws::String &value)
NotifyWorkersRequest & AddWorkerIds(Aws::String &&value)
NotifyWorkersRequest & WithWorkerIds(Aws::Vector< Aws::String > &&value)
NotifyWorkersRequest & WithWorkerIds(const Aws::Vector< Aws::String > &value)
void SetWorkerIds(Aws::Vector< Aws::String > &&value)
void SetSubject(const Aws::String &value)
NotifyWorkersRequest & AddWorkerIds(const char *value)
NotifyWorkersRequest & WithSubject(const char *value)
void SetWorkerIds(const Aws::Vector< Aws::String > &value)
NotifyWorkersRequest & AddWorkerIds(const Aws::String &value)
AWS_MTURK_API Aws::String SerializePayload() const override
NotifyWorkersRequest & WithSubject(const Aws::String &value)
NotifyWorkersRequest & WithSubject(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetWorkerIds() const
NotifyWorkersRequest & WithMessageText(const Aws::String &value)
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