AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ConnectionSummary.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/ConnectionStatus.h>
9#include <aws/context/model/ConnectionType.h>
10#include <aws/context/model/DataSourceReference.h>
11#include <aws/context/model/DataSourceScope.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace Context {
25namespace Model {
26
35 public:
36 AWS_CONTEXT_API ConnectionSummary() = default;
37 AWS_CONTEXT_API ConnectionSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CONTEXT_API ConnectionSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 ConnectionSummary& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 ConnectionSummary& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 ConnectionSummary& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
105 inline ConnectionType GetType() const { return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(ConnectionType value) {
108 m_typeHasBeenSet = true;
109 m_type = value;
110 }
112 SetType(value);
113 return *this;
114 }
116
118
129 inline ConnectionStatus GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(ConnectionStatus value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
147 template <typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) {
149 m_createdAtHasBeenSet = true;
150 m_createdAt = std::forward<CreatedAtT>(value);
151 }
152 template <typename CreatedAtT = Aws::Utils::DateTime>
153 ConnectionSummary& WithCreatedAt(CreatedAtT&& value) {
154 SetCreatedAt(std::forward<CreatedAtT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
164 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
165 template <typename UpdatedAtT = Aws::Utils::DateTime>
166 void SetUpdatedAt(UpdatedAtT&& value) {
167 m_updatedAtHasBeenSet = true;
168 m_updatedAt = std::forward<UpdatedAtT>(value);
169 }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
171 ConnectionSummary& WithUpdatedAt(UpdatedAtT&& value) {
172 SetUpdatedAt(std::forward<UpdatedAtT>(value));
173 return *this;
174 }
176
178
182 inline const DataSourceReference& GetDataSource() const { return m_dataSource; }
183 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
184 template <typename DataSourceT = DataSourceReference>
185 void SetDataSource(DataSourceT&& value) {
186 m_dataSourceHasBeenSet = true;
187 m_dataSource = std::forward<DataSourceT>(value);
188 }
189 template <typename DataSourceT = DataSourceReference>
190 ConnectionSummary& WithDataSource(DataSourceT&& value) {
191 SetDataSource(std::forward<DataSourceT>(value));
192 return *this;
193 }
195
197
202 inline const DataSourceScope& GetScope() const { return m_scope; }
203 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
204 template <typename ScopeT = DataSourceScope>
205 void SetScope(ScopeT&& value) {
206 m_scopeHasBeenSet = true;
207 m_scope = std::forward<ScopeT>(value);
208 }
209 template <typename ScopeT = DataSourceScope>
210 ConnectionSummary& WithScope(ScopeT&& value) {
211 SetScope(std::forward<ScopeT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_id;
217
218 Aws::String m_arn;
219
220 Aws::String m_name;
221
223
225
226 Aws::Utils::DateTime m_createdAt{};
227
228 Aws::Utils::DateTime m_updatedAt{};
229
230 DataSourceReference m_dataSource;
231
232 DataSourceScope m_scope;
233 bool m_idHasBeenSet = false;
234 bool m_arnHasBeenSet = false;
235 bool m_nameHasBeenSet = false;
236 bool m_typeHasBeenSet = false;
237 bool m_statusHasBeenSet = false;
238 bool m_createdAtHasBeenSet = false;
239 bool m_updatedAtHasBeenSet = false;
240 bool m_dataSourceHasBeenSet = false;
241 bool m_scopeHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace Context
246} // namespace Aws
ConnectionSummary & WithScope(ScopeT &&value)
ConnectionSummary & WithName(NameT &&value)
ConnectionSummary & WithArn(ArnT &&value)
ConnectionSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetName() const
ConnectionSummary & WithDataSource(DataSourceT &&value)
ConnectionSummary & WithUpdatedAt(UpdatedAtT &&value)
const DataSourceReference & GetDataSource() const
ConnectionSummary & WithType(ConnectionType value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConnectionSummary & WithId(IdT &&value)
const DataSourceScope & GetScope() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetStatus(ConnectionStatus value)
AWS_CONTEXT_API ConnectionSummary()=default
ConnectionSummary & WithStatus(ConnectionStatus value)
AWS_CONTEXT_API ConnectionSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_CONTEXT_API ConnectionSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String