AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
47 inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
48 inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
49 inline RetainedMessageSummary& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
50 inline RetainedMessageSummary& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
51 inline RetainedMessageSummary& WithTopic(const char* value) { SetTopic(value); return *this;}
53
55
58 inline long long GetPayloadSize() const{ return m_payloadSize; }
59 inline bool PayloadSizeHasBeenSet() const { return m_payloadSizeHasBeenSet; }
60 inline void SetPayloadSize(long long value) { m_payloadSizeHasBeenSet = true; m_payloadSize = value; }
61 inline RetainedMessageSummary& WithPayloadSize(long long value) { SetPayloadSize(value); return *this;}
63
65
68 inline int GetQos() const{ return m_qos; }
69 inline bool QosHasBeenSet() const { return m_qosHasBeenSet; }
70 inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; }
71 inline RetainedMessageSummary& WithQos(int value) { SetQos(value); return *this;}
73
75
79 inline long long GetLastModifiedTime() const{ return m_lastModifiedTime; }
80 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
81 inline void SetLastModifiedTime(long long value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
82 inline RetainedMessageSummary& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;}
84 private:
85
86 Aws::String m_topic;
87 bool m_topicHasBeenSet = false;
88
89 long long m_payloadSize;
90 bool m_payloadSizeHasBeenSet = false;
91
92 int m_qos;
93 bool m_qosHasBeenSet = false;
94
95 long long m_lastModifiedTime;
96 bool m_lastModifiedTimeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoTDataPlane
101} // namespace Aws
RetainedMessageSummary & WithLastModifiedTime(long long value)
RetainedMessageSummary & WithTopic(const Aws::String &value)
RetainedMessageSummary & WithTopic(Aws::String &&value)
RetainedMessageSummary & WithTopic(const char *value)
AWS_IOTDATAPLANE_API RetainedMessageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTDATAPLANE_API RetainedMessageSummary(Aws::Utils::Json::JsonView jsonValue)
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