/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTAnalytics { namespace Model { /** *

Information about a message.

See Also:

AWS * API Reference

*/ class Message { public: AWS_IOTANALYTICS_API Message(); AWS_IOTANALYTICS_API Message(Aws::Utils::Json::JsonView jsonValue); AWS_IOTANALYTICS_API Message& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID you want 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 want to assign to the message. Each messageId must be * unique within each batch sent.

*/ inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } /** *

The ID you want 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 want 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 want 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 want 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 want 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 want 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 can 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 can 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 can 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 can 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 can 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 can 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 = false; Aws::Utils::ByteBuffer m_payload; bool m_payloadHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws