AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Channel.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/ChannelStorage.h>
10#include <aws/iotanalytics/model/ChannelStatus.h>
11#include <aws/iotanalytics/model/RetentionPeriod.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace IoTAnalytics
26{
27namespace Model
28{
29
37 class Channel
38 {
39 public:
40 AWS_IOTANALYTICS_API Channel();
41 AWS_IOTANALYTICS_API Channel(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTANALYTICS_API Channel& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline Channel& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline Channel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline Channel& WithName(const char* value) { SetName(value); return *this;}
59
61
67 inline const ChannelStorage& GetStorage() const{ return m_storage; }
68 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
69 inline void SetStorage(const ChannelStorage& value) { m_storageHasBeenSet = true; m_storage = value; }
70 inline void SetStorage(ChannelStorage&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); }
71 inline Channel& WithStorage(const ChannelStorage& value) { SetStorage(value); return *this;}
72 inline Channel& WithStorage(ChannelStorage&& value) { SetStorage(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetArn() const{ return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
82 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
83 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
84 inline Channel& WithArn(const Aws::String& value) { SetArn(value); return *this;}
85 inline Channel& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
86 inline Channel& WithArn(const char* value) { SetArn(value); return *this;}
88
90
93 inline const ChannelStatus& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const ChannelStatus& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(ChannelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline Channel& WithStatus(const ChannelStatus& value) { SetStatus(value); return *this;}
98 inline Channel& WithStatus(ChannelStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
105 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
106 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
107 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
108 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
109 inline Channel& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
110 inline Channel& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
118 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
119 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
120 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
121 inline Channel& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
122 inline Channel& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
130 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
131 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
132 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
133 inline Channel& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
134 inline Channel& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
136
138
145 inline const Aws::Utils::DateTime& GetLastMessageArrivalTime() const{ return m_lastMessageArrivalTime; }
146 inline bool LastMessageArrivalTimeHasBeenSet() const { return m_lastMessageArrivalTimeHasBeenSet; }
147 inline void SetLastMessageArrivalTime(const Aws::Utils::DateTime& value) { m_lastMessageArrivalTimeHasBeenSet = true; m_lastMessageArrivalTime = value; }
148 inline void SetLastMessageArrivalTime(Aws::Utils::DateTime&& value) { m_lastMessageArrivalTimeHasBeenSet = true; m_lastMessageArrivalTime = std::move(value); }
150 inline Channel& WithLastMessageArrivalTime(Aws::Utils::DateTime&& value) { SetLastMessageArrivalTime(std::move(value)); return *this;}
152 private:
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 ChannelStorage m_storage;
158 bool m_storageHasBeenSet = false;
159
160 Aws::String m_arn;
161 bool m_arnHasBeenSet = false;
162
163 ChannelStatus m_status;
164 bool m_statusHasBeenSet = false;
165
166 RetentionPeriod m_retentionPeriod;
167 bool m_retentionPeriodHasBeenSet = false;
168
169 Aws::Utils::DateTime m_creationTime;
170 bool m_creationTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastUpdateTime;
173 bool m_lastUpdateTimeHasBeenSet = false;
174
175 Aws::Utils::DateTime m_lastMessageArrivalTime;
176 bool m_lastMessageArrivalTimeHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace IoTAnalytics
181} // namespace Aws
void SetName(const Aws::String &value)
Definition Channel.h:52
Channel & WithArn(const char *value)
Definition Channel.h:86
void SetLastMessageArrivalTime(const Aws::Utils::DateTime &value)
Definition Channel.h:147
const Aws::String & GetArn() const
Definition Channel.h:79
void SetArn(Aws::String &&value)
Definition Channel.h:82
Channel & WithName(const char *value)
Definition Channel.h:57
const Aws::Utils::DateTime & GetLastUpdateTime() const
Definition Channel.h:129
Channel & WithName(Aws::String &&value)
Definition Channel.h:56
AWS_IOTANALYTICS_API Channel(Aws::Utils::Json::JsonView jsonValue)
Channel & WithLastMessageArrivalTime(const Aws::Utils::DateTime &value)
Definition Channel.h:149
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Channel.h:119
void SetStorage(const ChannelStorage &value)
Definition Channel.h:69
const Aws::Utils::DateTime & GetLastMessageArrivalTime() const
Definition Channel.h:145
const RetentionPeriod & GetRetentionPeriod() const
Definition Channel.h:105
Channel & WithStatus(const ChannelStatus &value)
Definition Channel.h:97
void SetStatus(ChannelStatus &&value)
Definition Channel.h:96
Channel & WithStorage(ChannelStorage &&value)
Definition Channel.h:72
AWS_IOTANALYTICS_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
Channel & WithRetentionPeriod(RetentionPeriod &&value)
Definition Channel.h:110
bool LastUpdateTimeHasBeenSet() const
Definition Channel.h:130
const Aws::Utils::DateTime & GetCreationTime() const
Definition Channel.h:117
void SetArn(const Aws::String &value)
Definition Channel.h:81
void SetRetentionPeriod(const RetentionPeriod &value)
Definition Channel.h:107
Channel & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Channel.h:121
void SetStorage(ChannelStorage &&value)
Definition Channel.h:70
const Aws::String & GetName() const
Definition Channel.h:50
bool RetentionPeriodHasBeenSet() const
Definition Channel.h:106
Channel & WithArn(Aws::String &&value)
Definition Channel.h:85
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const ChannelStatus &value)
Definition Channel.h:95
void SetArn(const char *value)
Definition Channel.h:83
Channel & WithName(const Aws::String &value)
Definition Channel.h:55
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Channel.h:131
Channel & WithLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Channel.h:133
void SetName(const char *value)
Definition Channel.h:54
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Channel.h:132
const ChannelStatus & GetStatus() const
Definition Channel.h:93
Channel & WithLastMessageArrivalTime(Aws::Utils::DateTime &&value)
Definition Channel.h:150
void SetName(Aws::String &&value)
Definition Channel.h:53
Channel & WithArn(const Aws::String &value)
Definition Channel.h:84
bool LastMessageArrivalTimeHasBeenSet() const
Definition Channel.h:146
AWS_IOTANALYTICS_API Channel()
Channel & WithRetentionPeriod(const RetentionPeriod &value)
Definition Channel.h:109
void SetRetentionPeriod(RetentionPeriod &&value)
Definition Channel.h:108
Channel & WithLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Channel.h:134
void SetLastMessageArrivalTime(Aws::Utils::DateTime &&value)
Definition Channel.h:148
Channel & WithStatus(ChannelStatus &&value)
Definition Channel.h:98
Channel & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Channel.h:122
const ChannelStorage & GetStorage() const
Definition Channel.h:67
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Channel.h:120
Channel & WithStorage(const ChannelStorage &value)
Definition Channel.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue