/** * 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 IoTEventsData { namespace Model { /** */ class BatchPutMessageRequest : public IoTEventsDataRequest { public: AWS_IOTEVENTSDATA_API BatchPutMessageRequest(); // 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 "BatchPutMessage"; } AWS_IOTEVENTSDATA_API Aws::String SerializePayload() const override; /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline const Aws::Vector& GetMessages() const{ return m_messages; } /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; } /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline void SetMessages(const Aws::Vector& value) { m_messagesHasBeenSet = true; m_messages = value; } /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline void SetMessages(Aws::Vector&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); } /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline BatchPutMessageRequest& WithMessages(const Aws::Vector& value) { SetMessages(value); return *this;} /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline BatchPutMessageRequest& WithMessages(Aws::Vector&& value) { SetMessages(std::move(value)); return *this;} /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline BatchPutMessageRequest& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; } /** *

The list of messages to send. Each message has the following format: '{ * "messageId": "string", "inputName": "string", "payload": "string"}'

*/ inline BatchPutMessageRequest& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; } private: Aws::Vector m_messages; bool m_messagesHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws