/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace MTurk { namespace Model { /** */ class NotifyWorkersRequest : public MTurkRequest { public: AWS_MTURK_API NotifyWorkersRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "NotifyWorkers"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline const Aws::String& GetSubject() const{ return m_subject; } /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; } /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; } /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); } /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); } /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline NotifyWorkersRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;} /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline NotifyWorkersRequest& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;} /** *

The subject line of the email message to send. Can include up to 200 * characters.

*/ inline NotifyWorkersRequest& WithSubject(const char* value) { SetSubject(value); return *this;} /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline const Aws::String& GetMessageText() const{ return m_messageText; } /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline bool MessageTextHasBeenSet() const { return m_messageTextHasBeenSet; } /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline void SetMessageText(const Aws::String& value) { m_messageTextHasBeenSet = true; m_messageText = value; } /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline void SetMessageText(Aws::String&& value) { m_messageTextHasBeenSet = true; m_messageText = std::move(value); } /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline void SetMessageText(const char* value) { m_messageTextHasBeenSet = true; m_messageText.assign(value); } /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline NotifyWorkersRequest& WithMessageText(const Aws::String& value) { SetMessageText(value); return *this;} /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline NotifyWorkersRequest& WithMessageText(Aws::String&& value) { SetMessageText(std::move(value)); return *this;} /** *

The text of the email message to send. Can include up to 4,096 characters

*/ inline NotifyWorkersRequest& WithMessageText(const char* value) { SetMessageText(value); return *this;} /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline const Aws::Vector& GetWorkerIds() const{ return m_workerIds; } /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline bool WorkerIdsHasBeenSet() const { return m_workerIdsHasBeenSet; } /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline void SetWorkerIds(const Aws::Vector& value) { m_workerIdsHasBeenSet = true; m_workerIds = value; } /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline void SetWorkerIds(Aws::Vector&& value) { m_workerIdsHasBeenSet = true; m_workerIds = std::move(value); } /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline NotifyWorkersRequest& WithWorkerIds(const Aws::Vector& value) { SetWorkerIds(value); return *this;} /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline NotifyWorkersRequest& WithWorkerIds(Aws::Vector&& value) { SetWorkerIds(std::move(value)); return *this;} /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline NotifyWorkersRequest& AddWorkerIds(const Aws::String& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; } /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline NotifyWorkersRequest& AddWorkerIds(Aws::String&& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(std::move(value)); return *this; } /** *

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a * time.

*/ inline NotifyWorkersRequest& AddWorkerIds(const char* value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; } private: Aws::String m_subject; bool m_subjectHasBeenSet = false; Aws::String m_messageText; bool m_messageTextHasBeenSet = false; Aws::Vector m_workerIds; bool m_workerIdsHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws