AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RetainedMessageSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot-data/IoTDataPlane_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTDataPlane {
20namespace Model {
21
28 public:
29 AWS_IOTDATAPLANE_API RetainedMessageSummary() = default;
30 AWS_IOTDATAPLANE_API RetainedMessageSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTDATAPLANE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetTopic() const { return m_topic; }
39 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
40 template <typename TopicT = Aws::String>
41 void SetTopic(TopicT&& value) {
42 m_topicHasBeenSet = true;
43 m_topic = std::forward<TopicT>(value);
44 }
45 template <typename TopicT = Aws::String>
47 SetTopic(std::forward<TopicT>(value));
48 return *this;
49 }
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) {
59 m_payloadSizeHasBeenSet = true;
60 m_payloadSize = value;
61 }
62 inline RetainedMessageSummary& WithPayloadSize(long long value) {
63 SetPayloadSize(value);
64 return *this;
65 }
67
69
72 inline int GetQos() const { return m_qos; }
73 inline bool QosHasBeenSet() const { return m_qosHasBeenSet; }
74 inline void SetQos(int value) {
75 m_qosHasBeenSet = true;
76 m_qos = value;
77 }
78 inline RetainedMessageSummary& WithQos(int value) {
79 SetQos(value);
80 return *this;
81 }
83
85
89 inline long long GetLastModifiedTime() const { return m_lastModifiedTime; }
90 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
91 inline void SetLastModifiedTime(long long value) {
92 m_lastModifiedTimeHasBeenSet = true;
93 m_lastModifiedTime = value;
94 }
97 return *this;
98 }
100 private:
101 Aws::String m_topic;
102
103 long long m_payloadSize{0};
104
105 int m_qos{0};
106
107 long long m_lastModifiedTime{0};
108 bool m_topicHasBeenSet = false;
109 bool m_payloadSizeHasBeenSet = false;
110 bool m_qosHasBeenSet = false;
111 bool m_lastModifiedTimeHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace IoTDataPlane
116} // 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