/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a message.See Also:
AWS
* API Reference
The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } /** *The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; } /** *The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); } /** *The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); } /** *The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline Message& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline Message& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *The ID you wish to assign to the message. Each "messageId" must be unique * within each batch sent.
*/ inline Message& WithMessageId(const char* value) { SetMessageId(value); return *this;} /** *The payload of the message. This may be a JSON string or a Base64-encoded * string representing binary data (in which case you must decode it by means of a * pipeline activity).
*/ inline const Aws::Utils::ByteBuffer& GetPayload() const{ return m_payload; } /** *The payload of the message. This may be a JSON string or a Base64-encoded * string representing binary data (in which case you must decode it by means of a * pipeline activity).
*/ inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; } /** *The payload of the message. This may be a JSON string or a Base64-encoded * string representing binary data (in which case you must decode it by means of a * pipeline activity).
*/ inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payloadHasBeenSet = true; m_payload = value; } /** *The payload of the message. This may be a JSON string or a Base64-encoded * string representing binary data (in which case you must decode it by means of a * pipeline activity).
*/ inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); } /** *The payload of the message. This may be a JSON string or a Base64-encoded * string representing binary data (in which case you must decode it by means of a * pipeline activity).
*/ inline Message& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;} /** *The payload of the message. This may be a JSON string or a Base64-encoded * string representing binary data (in which case you must decode it by means of a * pipeline activity).
*/ inline Message& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;} private: Aws::String m_messageId; bool m_messageIdHasBeenSet; Aws::Utils::ByteBuffer m_payload; bool m_payloadHasBeenSet; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws