AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
Edge.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/EdgeProperties.h>
9#include <aws/cloudwatchomni/model/EdgeType.h>
10#include <aws/cloudwatchomni/model/Metadata.h>
11#include <aws/cloudwatchomni/model/Signal.h>
12#include <aws/cloudwatchomni/model/Source.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/crt/cbor/Cbor.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Cbor {
24class CborValue;
25} // namespace Cbor
26} // namespace Utils
27namespace CloudWatchOmni {
28namespace Model {
29
36class Edge {
37 public:
38 AWS_CLOUDWATCHOMNI_API Edge() = default;
39 AWS_CLOUDWATCHOMNI_API Edge(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CLOUDWATCHOMNI_API Edge& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
47 inline const Aws::String& GetEdgeId() const { return m_edgeId; }
48 inline bool EdgeIdHasBeenSet() const { return m_edgeIdHasBeenSet; }
49 template <typename EdgeIdT = Aws::String>
50 void SetEdgeId(EdgeIdT&& value) {
51 m_edgeIdHasBeenSet = true;
52 m_edgeId = std::forward<EdgeIdT>(value);
53 }
54 template <typename EdgeIdT = Aws::String>
55 Edge& WithEdgeId(EdgeIdT&& value) {
56 SetEdgeId(std::forward<EdgeIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetFrom() const { return m_from; }
66 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
67 template <typename FromT = Aws::String>
68 void SetFrom(FromT&& value) {
69 m_fromHasBeenSet = true;
70 m_from = std::forward<FromT>(value);
71 }
72 template <typename FromT = Aws::String>
73 Edge& WithFrom(FromT&& value) {
74 SetFrom(std::forward<FromT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetTo() const { return m_to; }
84 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
85 template <typename ToT = Aws::String>
86 void SetTo(ToT&& value) {
87 m_toHasBeenSet = true;
88 m_to = std::forward<ToT>(value);
89 }
90 template <typename ToT = Aws::String>
91 Edge& WithTo(ToT&& value) {
92 SetTo(std::forward<ToT>(value));
93 return *this;
94 }
96
98
101 inline EdgeType GetEdgeType() const { return m_edgeType; }
102 inline bool EdgeTypeHasBeenSet() const { return m_edgeTypeHasBeenSet; }
103 inline void SetEdgeType(EdgeType value) {
104 m_edgeTypeHasBeenSet = true;
105 m_edgeType = value;
106 }
107 inline Edge& WithEdgeType(EdgeType value) {
108 SetEdgeType(value);
109 return *this;
110 }
112
114
117 inline const Aws::Vector<Aws::String>& GetOperations() const { return m_operations; }
118 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
119 template <typename OperationsT = Aws::Vector<Aws::String>>
120 void SetOperations(OperationsT&& value) {
121 m_operationsHasBeenSet = true;
122 m_operations = std::forward<OperationsT>(value);
123 }
124 template <typename OperationsT = Aws::Vector<Aws::String>>
125 Edge& WithOperations(OperationsT&& value) {
126 SetOperations(std::forward<OperationsT>(value));
127 return *this;
128 }
129 template <typename OperationsT = Aws::String>
130 Edge& AddOperations(OperationsT&& value) {
131 m_operationsHasBeenSet = true;
132 m_operations.emplace_back(std::forward<OperationsT>(value));
133 return *this;
134 }
136
138
142 inline const EdgeProperties& GetEdgeProperties() const { return m_edgeProperties; }
143 inline bool EdgePropertiesHasBeenSet() const { return m_edgePropertiesHasBeenSet; }
144 template <typename EdgePropertiesT = EdgeProperties>
145 void SetEdgeProperties(EdgePropertiesT&& value) {
146 m_edgePropertiesHasBeenSet = true;
147 m_edgeProperties = std::forward<EdgePropertiesT>(value);
148 }
149 template <typename EdgePropertiesT = EdgeProperties>
150 Edge& WithEdgeProperties(EdgePropertiesT&& value) {
151 SetEdgeProperties(std::forward<EdgePropertiesT>(value));
152 return *this;
153 }
155
157
162 inline const Aws::Map<Aws::String, Aws::String>& GetTelemetryAttributes() const { return m_telemetryAttributes; }
163 inline bool TelemetryAttributesHasBeenSet() const { return m_telemetryAttributesHasBeenSet; }
164 template <typename TelemetryAttributesT = Aws::Map<Aws::String, Aws::String>>
165 void SetTelemetryAttributes(TelemetryAttributesT&& value) {
166 m_telemetryAttributesHasBeenSet = true;
167 m_telemetryAttributes = std::forward<TelemetryAttributesT>(value);
168 }
169 template <typename TelemetryAttributesT = Aws::Map<Aws::String, Aws::String>>
170 Edge& WithTelemetryAttributes(TelemetryAttributesT&& value) {
171 SetTelemetryAttributes(std::forward<TelemetryAttributesT>(value));
172 return *this;
173 }
174 template <typename TelemetryAttributesKeyT = Aws::String, typename TelemetryAttributesValueT = Aws::String>
175 Edge& AddTelemetryAttributes(TelemetryAttributesKeyT&& key, TelemetryAttributesValueT&& value) {
176 m_telemetryAttributesHasBeenSet = true;
177 m_telemetryAttributes.emplace(std::forward<TelemetryAttributesKeyT>(key), std::forward<TelemetryAttributesValueT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Vector<Signal>& GetSignalTypes() const { return m_signalTypes; }
187 inline bool SignalTypesHasBeenSet() const { return m_signalTypesHasBeenSet; }
188 template <typename SignalTypesT = Aws::Vector<Signal>>
189 void SetSignalTypes(SignalTypesT&& value) {
190 m_signalTypesHasBeenSet = true;
191 m_signalTypes = std::forward<SignalTypesT>(value);
192 }
193 template <typename SignalTypesT = Aws::Vector<Signal>>
194 Edge& WithSignalTypes(SignalTypesT&& value) {
195 SetSignalTypes(std::forward<SignalTypesT>(value));
196 return *this;
197 }
198 inline Edge& AddSignalTypes(Signal value) {
199 m_signalTypesHasBeenSet = true;
200 m_signalTypes.push_back(value);
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Source>& GetSources() const { return m_sources; }
210 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
211 template <typename SourcesT = Aws::Vector<Source>>
212 void SetSources(SourcesT&& value) {
213 m_sourcesHasBeenSet = true;
214 m_sources = std::forward<SourcesT>(value);
215 }
216 template <typename SourcesT = Aws::Vector<Source>>
217 Edge& WithSources(SourcesT&& value) {
218 SetSources(std::forward<SourcesT>(value));
219 return *this;
220 }
221 inline Edge& AddSources(Source value) {
222 m_sourcesHasBeenSet = true;
223 m_sources.push_back(value);
224 return *this;
225 }
227
229
233 inline const Metadata& GetMetadata() const { return m_metadata; }
234 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
235 template <typename MetadataT = Metadata>
236 void SetMetadata(MetadataT&& value) {
237 m_metadataHasBeenSet = true;
238 m_metadata = std::forward<MetadataT>(value);
239 }
240 template <typename MetadataT = Metadata>
241 Edge& WithMetadata(MetadataT&& value) {
242 SetMetadata(std::forward<MetadataT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::Utils::DateTime& GetFirstObservedAt() const { return m_firstObservedAt; }
253 inline bool FirstObservedAtHasBeenSet() const { return m_firstObservedAtHasBeenSet; }
254 template <typename FirstObservedAtT = Aws::Utils::DateTime>
255 void SetFirstObservedAt(FirstObservedAtT&& value) {
256 m_firstObservedAtHasBeenSet = true;
257 m_firstObservedAt = std::forward<FirstObservedAtT>(value);
258 }
259 template <typename FirstObservedAtT = Aws::Utils::DateTime>
260 Edge& WithFirstObservedAt(FirstObservedAtT&& value) {
261 SetFirstObservedAt(std::forward<FirstObservedAtT>(value));
262 return *this;
263 }
265
267
272 inline const Aws::Utils::DateTime& GetLastObservedAt() const { return m_lastObservedAt; }
273 inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
274 template <typename LastObservedAtT = Aws::Utils::DateTime>
275 void SetLastObservedAt(LastObservedAtT&& value) {
276 m_lastObservedAtHasBeenSet = true;
277 m_lastObservedAt = std::forward<LastObservedAtT>(value);
278 }
279 template <typename LastObservedAtT = Aws::Utils::DateTime>
280 Edge& WithLastObservedAt(LastObservedAtT&& value) {
281 SetLastObservedAt(std::forward<LastObservedAtT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_edgeId;
287
288 Aws::String m_from;
289
290 Aws::String m_to;
291
292 EdgeType m_edgeType{EdgeType::NOT_SET};
293
294 Aws::Vector<Aws::String> m_operations;
295
296 EdgeProperties m_edgeProperties;
297
298 Aws::Map<Aws::String, Aws::String> m_telemetryAttributes;
299
300 Aws::Vector<Signal> m_signalTypes;
301
302 Aws::Vector<Source> m_sources;
303
304 Metadata m_metadata;
305
306 Aws::Utils::DateTime m_firstObservedAt{};
307
308 Aws::Utils::DateTime m_lastObservedAt{};
309 bool m_edgeIdHasBeenSet = false;
310 bool m_fromHasBeenSet = false;
311 bool m_toHasBeenSet = false;
312 bool m_edgeTypeHasBeenSet = false;
313 bool m_operationsHasBeenSet = false;
314 bool m_edgePropertiesHasBeenSet = false;
315 bool m_telemetryAttributesHasBeenSet = false;
316 bool m_signalTypesHasBeenSet = false;
317 bool m_sourcesHasBeenSet = false;
318 bool m_metadataHasBeenSet = false;
319 bool m_firstObservedAtHasBeenSet = false;
320 bool m_lastObservedAtHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace CloudWatchOmni
325} // namespace Aws
bool FirstObservedAtHasBeenSet() const
Definition Edge.h:253
EdgeType GetEdgeType() const
Definition Edge.h:101
bool LastObservedAtHasBeenSet() const
Definition Edge.h:273
const Aws::String & GetEdgeId() const
Definition Edge.h:47
void SetSignalTypes(SignalTypesT &&value)
Definition Edge.h:189
const Aws::String & GetTo() const
Definition Edge.h:83
void SetFrom(FromT &&value)
Definition Edge.h:68
const Aws::Vector< Source > & GetSources() const
Definition Edge.h:209
const Aws::Map< Aws::String, Aws::String > & GetTelemetryAttributes() const
Definition Edge.h:162
const Aws::Utils::DateTime & GetFirstObservedAt() const
Definition Edge.h:252
Edge & WithSignalTypes(SignalTypesT &&value)
Definition Edge.h:194
Edge & AddSignalTypes(Signal value)
Definition Edge.h:198
void SetFirstObservedAt(FirstObservedAtT &&value)
Definition Edge.h:255
Edge & WithTelemetryAttributes(TelemetryAttributesT &&value)
Definition Edge.h:170
void SetTo(ToT &&value)
Definition Edge.h:86
bool TelemetryAttributesHasBeenSet() const
Definition Edge.h:163
const Aws::Vector< Aws::String > & GetOperations() const
Definition Edge.h:117
bool SourcesHasBeenSet() const
Definition Edge.h:210
Edge & WithFirstObservedAt(FirstObservedAtT &&value)
Definition Edge.h:260
bool FromHasBeenSet() const
Definition Edge.h:66
void SetSources(SourcesT &&value)
Definition Edge.h:212
AWS_CLOUDWATCHOMNI_API Edge()=default
Edge & WithEdgeProperties(EdgePropertiesT &&value)
Definition Edge.h:150
bool EdgeIdHasBeenSet() const
Definition Edge.h:48
bool EdgePropertiesHasBeenSet() const
Definition Edge.h:143
bool EdgeTypeHasBeenSet() const
Definition Edge.h:102
AWS_CLOUDWATCHOMNI_API Edge(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEdgeType(EdgeType value)
Definition Edge.h:103
Edge & AddSources(Source value)
Definition Edge.h:221
AWS_CLOUDWATCHOMNI_API Edge & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Edge & WithFrom(FromT &&value)
Definition Edge.h:73
const EdgeProperties & GetEdgeProperties() const
Definition Edge.h:142
bool MetadataHasBeenSet() const
Definition Edge.h:234
void SetTelemetryAttributes(TelemetryAttributesT &&value)
Definition Edge.h:165
bool OperationsHasBeenSet() const
Definition Edge.h:118
Edge & WithEdgeId(EdgeIdT &&value)
Definition Edge.h:55
Edge & WithSources(SourcesT &&value)
Definition Edge.h:217
Edge & WithLastObservedAt(LastObservedAtT &&value)
Definition Edge.h:280
void SetLastObservedAt(LastObservedAtT &&value)
Definition Edge.h:275
void SetOperations(OperationsT &&value)
Definition Edge.h:120
void SetMetadata(MetadataT &&value)
Definition Edge.h:236
Edge & AddOperations(OperationsT &&value)
Definition Edge.h:130
void SetEdgeId(EdgeIdT &&value)
Definition Edge.h:50
bool SignalTypesHasBeenSet() const
Definition Edge.h:187
Edge & AddTelemetryAttributes(TelemetryAttributesKeyT &&key, TelemetryAttributesValueT &&value)
Definition Edge.h:175
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Metadata & GetMetadata() const
Definition Edge.h:233
Edge & WithMetadata(MetadataT &&value)
Definition Edge.h:241
Edge & WithOperations(OperationsT &&value)
Definition Edge.h:125
const Aws::Vector< Signal > & GetSignalTypes() const
Definition Edge.h:186
void SetEdgeProperties(EdgePropertiesT &&value)
Definition Edge.h:145
Edge & WithTo(ToT &&value)
Definition Edge.h:91
const Aws::String & GetFrom() const
Definition Edge.h:65
const Aws::Utils::DateTime & GetLastObservedAt() const
Definition Edge.h:272
Edge & WithEdgeType(EdgeType value)
Definition Edge.h:107
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector