AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Signal.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/Indicator.h>
12#include <aws/guardduty/model/SignalType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
32class Signal {
33 public:
34 AWS_GUARDDUTY_API Signal() = default;
35 AWS_GUARDDUTY_API Signal(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Signal& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetUid() const { return m_uid; }
44 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
45 template <typename UidT = Aws::String>
46 void SetUid(UidT&& value) {
47 m_uidHasBeenSet = true;
48 m_uid = std::forward<UidT>(value);
49 }
50 template <typename UidT = Aws::String>
51 Signal& WithUid(UidT&& value) {
52 SetUid(std::forward<UidT>(value));
53 return *this;
54 }
56
58
75 inline SignalType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(SignalType value) {
78 m_typeHasBeenSet = true;
79 m_type = value;
80 }
81 inline Signal& WithType(SignalType value) {
82 SetType(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
99 Signal& WithDescription(DescriptionT&& value) {
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetName() const { return m_name; }
111 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
112 template <typename NameT = Aws::String>
113 void SetName(NameT&& value) {
114 m_nameHasBeenSet = true;
115 m_name = std::forward<NameT>(value);
116 }
117 template <typename NameT = Aws::String>
118 Signal& WithName(NameT&& value) {
119 SetName(std::forward<NameT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
130 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
131 template <typename CreatedAtT = Aws::Utils::DateTime>
132 void SetCreatedAt(CreatedAtT&& value) {
133 m_createdAtHasBeenSet = true;
134 m_createdAt = std::forward<CreatedAtT>(value);
135 }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 Signal& WithCreatedAt(CreatedAtT&& value) {
138 SetCreatedAt(std::forward<CreatedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
148 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
149 template <typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) {
151 m_updatedAtHasBeenSet = true;
152 m_updatedAt = std::forward<UpdatedAtT>(value);
153 }
154 template <typename UpdatedAtT = Aws::Utils::DateTime>
155 Signal& WithUpdatedAt(UpdatedAtT&& value) {
156 SetUpdatedAt(std::forward<UpdatedAtT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Utils::DateTime& GetFirstSeenAt() const { return m_firstSeenAt; }
167 inline bool FirstSeenAtHasBeenSet() const { return m_firstSeenAtHasBeenSet; }
168 template <typename FirstSeenAtT = Aws::Utils::DateTime>
169 void SetFirstSeenAt(FirstSeenAtT&& value) {
170 m_firstSeenAtHasBeenSet = true;
171 m_firstSeenAt = std::forward<FirstSeenAtT>(value);
172 }
173 template <typename FirstSeenAtT = Aws::Utils::DateTime>
174 Signal& WithFirstSeenAt(FirstSeenAtT&& value) {
175 SetFirstSeenAt(std::forward<FirstSeenAtT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::Utils::DateTime& GetLastSeenAt() const { return m_lastSeenAt; }
186 inline bool LastSeenAtHasBeenSet() const { return m_lastSeenAtHasBeenSet; }
187 template <typename LastSeenAtT = Aws::Utils::DateTime>
188 void SetLastSeenAt(LastSeenAtT&& value) {
189 m_lastSeenAtHasBeenSet = true;
190 m_lastSeenAt = std::forward<LastSeenAtT>(value);
191 }
192 template <typename LastSeenAtT = Aws::Utils::DateTime>
193 Signal& WithLastSeenAt(LastSeenAtT&& value) {
194 SetLastSeenAt(std::forward<LastSeenAtT>(value));
195 return *this;
196 }
198
200
206 inline double GetSeverity() const { return m_severity; }
207 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
208 inline void SetSeverity(double value) {
209 m_severityHasBeenSet = true;
210 m_severity = value;
211 }
212 inline Signal& WithSeverity(double value) {
213 SetSeverity(value);
214 return *this;
215 }
217
219
222 inline int GetCount() const { return m_count; }
223 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
224 inline void SetCount(int value) {
225 m_countHasBeenSet = true;
226 m_count = value;
227 }
228 inline Signal& WithCount(int value) {
229 SetCount(value);
230 return *this;
231 }
233
235
239 inline const Aws::Vector<Aws::String>& GetResourceUids() const { return m_resourceUids; }
240 inline bool ResourceUidsHasBeenSet() const { return m_resourceUidsHasBeenSet; }
241 template <typename ResourceUidsT = Aws::Vector<Aws::String>>
242 void SetResourceUids(ResourceUidsT&& value) {
243 m_resourceUidsHasBeenSet = true;
244 m_resourceUids = std::forward<ResourceUidsT>(value);
245 }
246 template <typename ResourceUidsT = Aws::Vector<Aws::String>>
247 Signal& WithResourceUids(ResourceUidsT&& value) {
248 SetResourceUids(std::forward<ResourceUidsT>(value));
249 return *this;
250 }
251 template <typename ResourceUidsT = Aws::String>
252 Signal& AddResourceUids(ResourceUidsT&& value) {
253 m_resourceUidsHasBeenSet = true;
254 m_resourceUids.emplace_back(std::forward<ResourceUidsT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Vector<Aws::String>& GetActorIds() const { return m_actorIds; }
264 inline bool ActorIdsHasBeenSet() const { return m_actorIdsHasBeenSet; }
265 template <typename ActorIdsT = Aws::Vector<Aws::String>>
266 void SetActorIds(ActorIdsT&& value) {
267 m_actorIdsHasBeenSet = true;
268 m_actorIds = std::forward<ActorIdsT>(value);
269 }
270 template <typename ActorIdsT = Aws::Vector<Aws::String>>
271 Signal& WithActorIds(ActorIdsT&& value) {
272 SetActorIds(std::forward<ActorIdsT>(value));
273 return *this;
274 }
275 template <typename ActorIdsT = Aws::String>
276 Signal& AddActorIds(ActorIdsT&& value) {
277 m_actorIdsHasBeenSet = true;
278 m_actorIds.emplace_back(std::forward<ActorIdsT>(value));
279 return *this;
280 }
282
284
287 inline const Aws::Vector<Aws::String>& GetEndpointIds() const { return m_endpointIds; }
288 inline bool EndpointIdsHasBeenSet() const { return m_endpointIdsHasBeenSet; }
289 template <typename EndpointIdsT = Aws::Vector<Aws::String>>
290 void SetEndpointIds(EndpointIdsT&& value) {
291 m_endpointIdsHasBeenSet = true;
292 m_endpointIds = std::forward<EndpointIdsT>(value);
293 }
294 template <typename EndpointIdsT = Aws::Vector<Aws::String>>
295 Signal& WithEndpointIds(EndpointIdsT&& value) {
296 SetEndpointIds(std::forward<EndpointIdsT>(value));
297 return *this;
298 }
299 template <typename EndpointIdsT = Aws::String>
300 Signal& AddEndpointIds(EndpointIdsT&& value) {
301 m_endpointIdsHasBeenSet = true;
302 m_endpointIds.emplace_back(std::forward<EndpointIdsT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::Vector<Indicator>& GetSignalIndicators() const { return m_signalIndicators; }
312 inline bool SignalIndicatorsHasBeenSet() const { return m_signalIndicatorsHasBeenSet; }
313 template <typename SignalIndicatorsT = Aws::Vector<Indicator>>
314 void SetSignalIndicators(SignalIndicatorsT&& value) {
315 m_signalIndicatorsHasBeenSet = true;
316 m_signalIndicators = std::forward<SignalIndicatorsT>(value);
317 }
318 template <typename SignalIndicatorsT = Aws::Vector<Indicator>>
319 Signal& WithSignalIndicators(SignalIndicatorsT&& value) {
320 SetSignalIndicators(std::forward<SignalIndicatorsT>(value));
321 return *this;
322 }
323 template <typename SignalIndicatorsT = Indicator>
324 Signal& AddSignalIndicators(SignalIndicatorsT&& value) {
325 m_signalIndicatorsHasBeenSet = true;
326 m_signalIndicators.emplace_back(std::forward<SignalIndicatorsT>(value));
327 return *this;
328 }
330 private:
331 Aws::String m_uid;
332
334
335 Aws::String m_description;
336
337 Aws::String m_name;
338
339 Aws::Utils::DateTime m_createdAt{};
340
341 Aws::Utils::DateTime m_updatedAt{};
342
343 Aws::Utils::DateTime m_firstSeenAt{};
344
345 Aws::Utils::DateTime m_lastSeenAt{};
346
347 double m_severity{0.0};
348
349 int m_count{0};
350
351 Aws::Vector<Aws::String> m_resourceUids;
352
353 Aws::Vector<Aws::String> m_actorIds;
354
355 Aws::Vector<Aws::String> m_endpointIds;
356
357 Aws::Vector<Indicator> m_signalIndicators;
358 bool m_uidHasBeenSet = false;
359 bool m_typeHasBeenSet = false;
360 bool m_descriptionHasBeenSet = false;
361 bool m_nameHasBeenSet = false;
362 bool m_createdAtHasBeenSet = false;
363 bool m_updatedAtHasBeenSet = false;
364 bool m_firstSeenAtHasBeenSet = false;
365 bool m_lastSeenAtHasBeenSet = false;
366 bool m_severityHasBeenSet = false;
367 bool m_countHasBeenSet = false;
368 bool m_resourceUidsHasBeenSet = false;
369 bool m_actorIdsHasBeenSet = false;
370 bool m_endpointIdsHasBeenSet = false;
371 bool m_signalIndicatorsHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace GuardDuty
376} // namespace Aws
const Aws::String & GetDescription() const
Definition Signal.h:91
bool SeverityHasBeenSet() const
Definition Signal.h:207
Signal & WithSignalIndicators(SignalIndicatorsT &&value)
Definition Signal.h:319
AWS_GUARDDUTY_API Signal()=default
const Aws::Utils::DateTime & GetLastSeenAt() const
Definition Signal.h:185
Signal & WithLastSeenAt(LastSeenAtT &&value)
Definition Signal.h:193
void SetCreatedAt(CreatedAtT &&value)
Definition Signal.h:132
void SetActorIds(ActorIdsT &&value)
Definition Signal.h:266
void SetType(SignalType value)
Definition Signal.h:77
void SetName(NameT &&value)
Definition Signal.h:113
bool CreatedAtHasBeenSet() const
Definition Signal.h:130
Signal & WithType(SignalType value)
Definition Signal.h:81
bool LastSeenAtHasBeenSet() const
Definition Signal.h:186
Signal & AddEndpointIds(EndpointIdsT &&value)
Definition Signal.h:300
void SetUid(UidT &&value)
Definition Signal.h:46
Signal & WithSeverity(double value)
Definition Signal.h:212
bool FirstSeenAtHasBeenSet() const
Definition Signal.h:167
void SetSignalIndicators(SignalIndicatorsT &&value)
Definition Signal.h:314
Signal & WithEndpointIds(EndpointIdsT &&value)
Definition Signal.h:295
void SetEndpointIds(EndpointIdsT &&value)
Definition Signal.h:290
bool SignalIndicatorsHasBeenSet() const
Definition Signal.h:312
Signal & AddSignalIndicators(SignalIndicatorsT &&value)
Definition Signal.h:324
Signal & WithUpdatedAt(UpdatedAtT &&value)
Definition Signal.h:155
Signal & AddResourceUids(ResourceUidsT &&value)
Definition Signal.h:252
Signal & WithUid(UidT &&value)
Definition Signal.h:51
void SetCount(int value)
Definition Signal.h:224
Signal & WithResourceUids(ResourceUidsT &&value)
Definition Signal.h:247
Signal & AddActorIds(ActorIdsT &&value)
Definition Signal.h:276
SignalType GetType() const
Definition Signal.h:75
Signal & WithDescription(DescriptionT &&value)
Definition Signal.h:99
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Signal.h:129
bool NameHasBeenSet() const
Definition Signal.h:111
const Aws::Vector< Aws::String > & GetActorIds() const
Definition Signal.h:263
Signal & WithName(NameT &&value)
Definition Signal.h:118
const Aws::Vector< Aws::String > & GetEndpointIds() const
Definition Signal.h:287
const Aws::String & GetName() const
Definition Signal.h:110
void SetSeverity(double value)
Definition Signal.h:208
void SetFirstSeenAt(FirstSeenAtT &&value)
Definition Signal.h:169
const Aws::Utils::DateTime & GetFirstSeenAt() const
Definition Signal.h:166
Signal & WithCount(int value)
Definition Signal.h:228
void SetResourceUids(ResourceUidsT &&value)
Definition Signal.h:242
Signal & WithCreatedAt(CreatedAtT &&value)
Definition Signal.h:137
const Aws::Vector< Indicator > & GetSignalIndicators() const
Definition Signal.h:311
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
double GetSeverity() const
Definition Signal.h:206
const Aws::Vector< Aws::String > & GetResourceUids() const
Definition Signal.h:239
bool ActorIdsHasBeenSet() const
Definition Signal.h:264
bool TypeHasBeenSet() const
Definition Signal.h:76
bool DescriptionHasBeenSet() const
Definition Signal.h:92
bool UidHasBeenSet() const
Definition Signal.h:44
Signal & WithFirstSeenAt(FirstSeenAtT &&value)
Definition Signal.h:174
void SetLastSeenAt(LastSeenAtT &&value)
Definition Signal.h:188
const Aws::String & GetUid() const
Definition Signal.h:43
bool EndpointIdsHasBeenSet() const
Definition Signal.h:288
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Signal.h:147
AWS_GUARDDUTY_API Signal & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ResourceUidsHasBeenSet() const
Definition Signal.h:240
AWS_GUARDDUTY_API Signal(Aws::Utils::Json::JsonView jsonValue)
bool CountHasBeenSet() const
Definition Signal.h:223
bool UpdatedAtHasBeenSet() const
Definition Signal.h:148
Signal & WithActorIds(ActorIdsT &&value)
Definition Signal.h:271
void SetUpdatedAt(UpdatedAtT &&value)
Definition Signal.h:150
void SetDescription(DescriptionT &&value)
Definition Signal.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue