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

Information about a single retained message.

See Also:

AWS * API Reference

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

The topic name to which the retained message was published.

*/ inline const Aws::String& GetTopic() const{ return m_topic; } /** *

The topic name to which the retained message was published.

*/ inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; } /** *

The topic name to which the retained message was published.

*/ inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; } /** *

The topic name to which the retained message was published.

*/ inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); } /** *

The topic name to which the retained message was published.

*/ inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); } /** *

The topic name to which the retained message was published.

*/ inline RetainedMessageSummary& WithTopic(const Aws::String& value) { SetTopic(value); return *this;} /** *

The topic name to which the retained message was published.

*/ inline RetainedMessageSummary& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;} /** *

The topic name to which the retained message was published.

*/ inline RetainedMessageSummary& WithTopic(const char* value) { SetTopic(value); return *this;} /** *

The size of the retained message's payload in bytes.

*/ inline long long GetPayloadSize() const{ return m_payloadSize; } /** *

The size of the retained message's payload in bytes.

*/ inline bool PayloadSizeHasBeenSet() const { return m_payloadSizeHasBeenSet; } /** *

The size of the retained message's payload in bytes.

*/ inline void SetPayloadSize(long long value) { m_payloadSizeHasBeenSet = true; m_payloadSize = value; } /** *

The size of the retained message's payload in bytes.

*/ inline RetainedMessageSummary& WithPayloadSize(long long value) { SetPayloadSize(value); return *this;} /** *

The quality of service (QoS) level used to publish the retained message.

*/ inline int GetQos() const{ return m_qos; } /** *

The quality of service (QoS) level used to publish the retained message.

*/ inline bool QosHasBeenSet() const { return m_qosHasBeenSet; } /** *

The quality of service (QoS) level used to publish the retained message.

*/ inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; } /** *

The quality of service (QoS) level used to publish the retained message.

*/ inline RetainedMessageSummary& WithQos(int value) { SetQos(value); return *this;} /** *

The Epoch date and time, in milliseconds, when the retained message was * stored by IoT.

*/ inline long long GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The Epoch date and time, in milliseconds, when the retained message was * stored by IoT.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The Epoch date and time, in milliseconds, when the retained message was * stored by IoT.

*/ inline void SetLastModifiedTime(long long value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The Epoch date and time, in milliseconds, when the retained message was * stored by IoT.

*/ inline RetainedMessageSummary& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;} private: Aws::String m_topic; bool m_topicHasBeenSet = false; long long m_payloadSize; bool m_payloadSizeHasBeenSet = false; int m_qos; bool m_qosHasBeenSet = false; long long m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace IoTDataPlane } // namespace Aws