AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RetainedMessageSummary.h
1
6#pragma once
7#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTDataPlane
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_IOTDATAPLANE_API RetainedMessageSummary() = default;
35 AWS_IOTDATAPLANE_API RetainedMessageSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTDATAPLANE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetTopic() const { return m_topic; }
45 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
46 template<typename TopicT = Aws::String>
47 void SetTopic(TopicT&& value) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
48 template<typename TopicT = Aws::String>
49 RetainedMessageSummary& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
51
53
56 inline long long GetPayloadSize() const { return m_payloadSize; }
57 inline bool PayloadSizeHasBeenSet() const { return m_payloadSizeHasBeenSet; }
58 inline void SetPayloadSize(long long value) { m_payloadSizeHasBeenSet = true; m_payloadSize = value; }
59 inline RetainedMessageSummary& WithPayloadSize(long long value) { SetPayloadSize(value); return *this;}
61
63
66 inline int GetQos() const { return m_qos; }
67 inline bool QosHasBeenSet() const { return m_qosHasBeenSet; }
68 inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; }
69 inline RetainedMessageSummary& WithQos(int value) { SetQos(value); return *this;}
71
73
77 inline long long GetLastModifiedTime() const { return m_lastModifiedTime; }
78 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
79 inline void SetLastModifiedTime(long long value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
80 inline RetainedMessageSummary& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;}
82 private:
83
84 Aws::String m_topic;
85 bool m_topicHasBeenSet = false;
86
87 long long m_payloadSize{0};
88 bool m_payloadSizeHasBeenSet = false;
89
90 int m_qos{0};
91 bool m_qosHasBeenSet = false;
92
93 long long m_lastModifiedTime{0};
94 bool m_lastModifiedTimeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace IoTDataPlane
99} // namespace Aws
RetainedMessageSummary & WithLastModifiedTime(long long value)
AWS_IOTDATAPLANE_API RetainedMessageSummary()=default
AWS_IOTDATAPLANE_API RetainedMessageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTDATAPLANE_API RetainedMessageSummary(Aws::Utils::Json::JsonView jsonValue)
RetainedMessageSummary & WithTopic(TopicT &&value)
AWS_IOTDATAPLANE_API Aws::Utils::Json::JsonValue Jsonize() const
RetainedMessageSummary & WithPayloadSize(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue