AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ChannelSummary.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotanalytics/model/ChannelStorageSummary.h>
10#include <aws/iotanalytics/model/ChannelStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTAnalytics
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOTANALYTICS_API ChannelSummary() = default;
38 AWS_IOTANALYTICS_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTANALYTICS_API ChannelSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetChannelName() const { return m_channelName; }
48 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
49 template<typename ChannelNameT = Aws::String>
50 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
51 template<typename ChannelNameT = Aws::String>
52 ChannelSummary& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
54
56
59 inline const ChannelStorageSummary& GetChannelStorage() const { return m_channelStorage; }
60 inline bool ChannelStorageHasBeenSet() const { return m_channelStorageHasBeenSet; }
61 template<typename ChannelStorageT = ChannelStorageSummary>
62 void SetChannelStorage(ChannelStorageT&& value) { m_channelStorageHasBeenSet = true; m_channelStorage = std::forward<ChannelStorageT>(value); }
63 template<typename ChannelStorageT = ChannelStorageSummary>
64 ChannelSummary& WithChannelStorage(ChannelStorageT&& value) { SetChannelStorage(std::forward<ChannelStorageT>(value)); return *this;}
66
68
71 inline ChannelStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(ChannelStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline ChannelSummary& WithStatus(ChannelStatus value) { SetStatus(value); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
82 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
83 template<typename CreationTimeT = Aws::Utils::DateTime>
84 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
85 template<typename CreationTimeT = Aws::Utils::DateTime>
86 ChannelSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
94 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
95 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
96 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
97 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
98 ChannelSummary& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
100
102
109 inline const Aws::Utils::DateTime& GetLastMessageArrivalTime() const { return m_lastMessageArrivalTime; }
110 inline bool LastMessageArrivalTimeHasBeenSet() const { return m_lastMessageArrivalTimeHasBeenSet; }
111 template<typename LastMessageArrivalTimeT = Aws::Utils::DateTime>
112 void SetLastMessageArrivalTime(LastMessageArrivalTimeT&& value) { m_lastMessageArrivalTimeHasBeenSet = true; m_lastMessageArrivalTime = std::forward<LastMessageArrivalTimeT>(value); }
113 template<typename LastMessageArrivalTimeT = Aws::Utils::DateTime>
114 ChannelSummary& WithLastMessageArrivalTime(LastMessageArrivalTimeT&& value) { SetLastMessageArrivalTime(std::forward<LastMessageArrivalTimeT>(value)); return *this;}
116 private:
117
118 Aws::String m_channelName;
119 bool m_channelNameHasBeenSet = false;
120
121 ChannelStorageSummary m_channelStorage;
122 bool m_channelStorageHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
127 Aws::Utils::DateTime m_creationTime{};
128 bool m_creationTimeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_lastUpdateTime{};
131 bool m_lastUpdateTimeHasBeenSet = false;
132
133 Aws::Utils::DateTime m_lastMessageArrivalTime{};
134 bool m_lastMessageArrivalTimeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace IoTAnalytics
139} // namespace Aws
const ChannelStorageSummary & GetChannelStorage() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Utils::DateTime & GetLastMessageArrivalTime() const
ChannelSummary & WithChannelName(ChannelNameT &&value)
ChannelSummary & WithLastUpdateTime(LastUpdateTimeT &&value)
void SetLastMessageArrivalTime(LastMessageArrivalTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
void SetLastUpdateTime(LastUpdateTimeT &&value)
ChannelSummary & WithChannelStorage(ChannelStorageT &&value)
void SetChannelName(ChannelNameT &&value)
AWS_IOTANALYTICS_API ChannelSummary()=default
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
ChannelSummary & WithCreationTime(CreationTimeT &&value)
ChannelSummary & WithStatus(ChannelStatus value)
void SetChannelStorage(ChannelStorageT &&value)
AWS_IOTANALYTICS_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
AWS_IOTANALYTICS_API ChannelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetChannelName() const
ChannelSummary & WithLastMessageArrivalTime(LastMessageArrivalTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue