AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Signal.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/SignalType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/guardduty/model/Indicator.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 GuardDuty
26{
27namespace Model
28{
29
36 class Signal
37 {
38 public:
39 AWS_GUARDDUTY_API Signal() = default;
40 AWS_GUARDDUTY_API Signal(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Signal& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetUid() const { return m_uid; }
50 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
51 template<typename UidT = Aws::String>
52 void SetUid(UidT&& value) { m_uidHasBeenSet = true; m_uid = std::forward<UidT>(value); }
53 template<typename UidT = Aws::String>
54 Signal& WithUid(UidT&& value) { SetUid(std::forward<UidT>(value)); return *this;}
56
58
75 inline SignalType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(SignalType value) { m_typeHasBeenSet = true; m_type = value; }
78 inline Signal& WithType(SignalType value) { SetType(value); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 Signal& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template<typename NameT = Aws::String>
101 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
102 template<typename NameT = Aws::String>
103 Signal& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 template<typename CreatedAtT = Aws::Utils::DateTime>
114 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
115 template<typename CreatedAtT = Aws::Utils::DateTime>
116 Signal& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
124 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
125 template<typename UpdatedAtT = Aws::Utils::DateTime>
126 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
127 template<typename UpdatedAtT = Aws::Utils::DateTime>
128 Signal& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
130
132
136 inline const Aws::Utils::DateTime& GetFirstSeenAt() const { return m_firstSeenAt; }
137 inline bool FirstSeenAtHasBeenSet() const { return m_firstSeenAtHasBeenSet; }
138 template<typename FirstSeenAtT = Aws::Utils::DateTime>
139 void SetFirstSeenAt(FirstSeenAtT&& value) { m_firstSeenAtHasBeenSet = true; m_firstSeenAt = std::forward<FirstSeenAtT>(value); }
140 template<typename FirstSeenAtT = Aws::Utils::DateTime>
141 Signal& WithFirstSeenAt(FirstSeenAtT&& value) { SetFirstSeenAt(std::forward<FirstSeenAtT>(value)); return *this;}
143
145
149 inline const Aws::Utils::DateTime& GetLastSeenAt() const { return m_lastSeenAt; }
150 inline bool LastSeenAtHasBeenSet() const { return m_lastSeenAtHasBeenSet; }
151 template<typename LastSeenAtT = Aws::Utils::DateTime>
152 void SetLastSeenAt(LastSeenAtT&& value) { m_lastSeenAtHasBeenSet = true; m_lastSeenAt = std::forward<LastSeenAtT>(value); }
153 template<typename LastSeenAtT = Aws::Utils::DateTime>
154 Signal& WithLastSeenAt(LastSeenAtT&& value) { SetLastSeenAt(std::forward<LastSeenAtT>(value)); return *this;}
156
158
164 inline double GetSeverity() const { return m_severity; }
165 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
166 inline void SetSeverity(double value) { m_severityHasBeenSet = true; m_severity = value; }
167 inline Signal& WithSeverity(double value) { SetSeverity(value); return *this;}
169
171
174 inline int GetCount() const { return m_count; }
175 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
176 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
177 inline Signal& WithCount(int value) { SetCount(value); return *this;}
179
181
185 inline const Aws::Vector<Aws::String>& GetResourceUids() const { return m_resourceUids; }
186 inline bool ResourceUidsHasBeenSet() const { return m_resourceUidsHasBeenSet; }
187 template<typename ResourceUidsT = Aws::Vector<Aws::String>>
188 void SetResourceUids(ResourceUidsT&& value) { m_resourceUidsHasBeenSet = true; m_resourceUids = std::forward<ResourceUidsT>(value); }
189 template<typename ResourceUidsT = Aws::Vector<Aws::String>>
190 Signal& WithResourceUids(ResourceUidsT&& value) { SetResourceUids(std::forward<ResourceUidsT>(value)); return *this;}
191 template<typename ResourceUidsT = Aws::String>
192 Signal& AddResourceUids(ResourceUidsT&& value) { m_resourceUidsHasBeenSet = true; m_resourceUids.emplace_back(std::forward<ResourceUidsT>(value)); return *this; }
194
196
199 inline const Aws::Vector<Aws::String>& GetActorIds() const { return m_actorIds; }
200 inline bool ActorIdsHasBeenSet() const { return m_actorIdsHasBeenSet; }
201 template<typename ActorIdsT = Aws::Vector<Aws::String>>
202 void SetActorIds(ActorIdsT&& value) { m_actorIdsHasBeenSet = true; m_actorIds = std::forward<ActorIdsT>(value); }
203 template<typename ActorIdsT = Aws::Vector<Aws::String>>
204 Signal& WithActorIds(ActorIdsT&& value) { SetActorIds(std::forward<ActorIdsT>(value)); return *this;}
205 template<typename ActorIdsT = Aws::String>
206 Signal& AddActorIds(ActorIdsT&& value) { m_actorIdsHasBeenSet = true; m_actorIds.emplace_back(std::forward<ActorIdsT>(value)); return *this; }
208
210
213 inline const Aws::Vector<Aws::String>& GetEndpointIds() const { return m_endpointIds; }
214 inline bool EndpointIdsHasBeenSet() const { return m_endpointIdsHasBeenSet; }
215 template<typename EndpointIdsT = Aws::Vector<Aws::String>>
216 void SetEndpointIds(EndpointIdsT&& value) { m_endpointIdsHasBeenSet = true; m_endpointIds = std::forward<EndpointIdsT>(value); }
217 template<typename EndpointIdsT = Aws::Vector<Aws::String>>
218 Signal& WithEndpointIds(EndpointIdsT&& value) { SetEndpointIds(std::forward<EndpointIdsT>(value)); return *this;}
219 template<typename EndpointIdsT = Aws::String>
220 Signal& AddEndpointIds(EndpointIdsT&& value) { m_endpointIdsHasBeenSet = true; m_endpointIds.emplace_back(std::forward<EndpointIdsT>(value)); return *this; }
222
224
227 inline const Aws::Vector<Indicator>& GetSignalIndicators() const { return m_signalIndicators; }
228 inline bool SignalIndicatorsHasBeenSet() const { return m_signalIndicatorsHasBeenSet; }
229 template<typename SignalIndicatorsT = Aws::Vector<Indicator>>
230 void SetSignalIndicators(SignalIndicatorsT&& value) { m_signalIndicatorsHasBeenSet = true; m_signalIndicators = std::forward<SignalIndicatorsT>(value); }
231 template<typename SignalIndicatorsT = Aws::Vector<Indicator>>
232 Signal& WithSignalIndicators(SignalIndicatorsT&& value) { SetSignalIndicators(std::forward<SignalIndicatorsT>(value)); return *this;}
233 template<typename SignalIndicatorsT = Indicator>
234 Signal& AddSignalIndicators(SignalIndicatorsT&& value) { m_signalIndicatorsHasBeenSet = true; m_signalIndicators.emplace_back(std::forward<SignalIndicatorsT>(value)); return *this; }
236 private:
237
238 Aws::String m_uid;
239 bool m_uidHasBeenSet = false;
240
242 bool m_typeHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
247 Aws::String m_name;
248 bool m_nameHasBeenSet = false;
249
250 Aws::Utils::DateTime m_createdAt{};
251 bool m_createdAtHasBeenSet = false;
252
253 Aws::Utils::DateTime m_updatedAt{};
254 bool m_updatedAtHasBeenSet = false;
255
256 Aws::Utils::DateTime m_firstSeenAt{};
257 bool m_firstSeenAtHasBeenSet = false;
258
259 Aws::Utils::DateTime m_lastSeenAt{};
260 bool m_lastSeenAtHasBeenSet = false;
261
262 double m_severity{0.0};
263 bool m_severityHasBeenSet = false;
264
265 int m_count{0};
266 bool m_countHasBeenSet = false;
267
268 Aws::Vector<Aws::String> m_resourceUids;
269 bool m_resourceUidsHasBeenSet = false;
270
271 Aws::Vector<Aws::String> m_actorIds;
272 bool m_actorIdsHasBeenSet = false;
273
274 Aws::Vector<Aws::String> m_endpointIds;
275 bool m_endpointIdsHasBeenSet = false;
276
277 Aws::Vector<Indicator> m_signalIndicators;
278 bool m_signalIndicatorsHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace GuardDuty
283} // namespace Aws
const Aws::String & GetDescription() const
Definition Signal.h:85
bool SeverityHasBeenSet() const
Definition Signal.h:165
Signal & WithSignalIndicators(SignalIndicatorsT &&value)
Definition Signal.h:232
AWS_GUARDDUTY_API Signal()=default
const Aws::Utils::DateTime & GetLastSeenAt() const
Definition Signal.h:149
Signal & WithLastSeenAt(LastSeenAtT &&value)
Definition Signal.h:154
void SetCreatedAt(CreatedAtT &&value)
Definition Signal.h:114
void SetActorIds(ActorIdsT &&value)
Definition Signal.h:202
void SetType(SignalType value)
Definition Signal.h:77
void SetName(NameT &&value)
Definition Signal.h:101
bool CreatedAtHasBeenSet() const
Definition Signal.h:112
Signal & WithType(SignalType value)
Definition Signal.h:78
bool LastSeenAtHasBeenSet() const
Definition Signal.h:150
Signal & AddEndpointIds(EndpointIdsT &&value)
Definition Signal.h:220
void SetUid(UidT &&value)
Definition Signal.h:52
Signal & WithSeverity(double value)
Definition Signal.h:167
bool FirstSeenAtHasBeenSet() const
Definition Signal.h:137
void SetSignalIndicators(SignalIndicatorsT &&value)
Definition Signal.h:230
Signal & WithEndpointIds(EndpointIdsT &&value)
Definition Signal.h:218
void SetEndpointIds(EndpointIdsT &&value)
Definition Signal.h:216
bool SignalIndicatorsHasBeenSet() const
Definition Signal.h:228
Signal & AddSignalIndicators(SignalIndicatorsT &&value)
Definition Signal.h:234
Signal & WithUpdatedAt(UpdatedAtT &&value)
Definition Signal.h:128
Signal & AddResourceUids(ResourceUidsT &&value)
Definition Signal.h:192
Signal & WithUid(UidT &&value)
Definition Signal.h:54
void SetCount(int value)
Definition Signal.h:176
Signal & WithResourceUids(ResourceUidsT &&value)
Definition Signal.h:190
Signal & AddActorIds(ActorIdsT &&value)
Definition Signal.h:206
SignalType GetType() const
Definition Signal.h:75
Signal & WithDescription(DescriptionT &&value)
Definition Signal.h:90
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Signal.h:111
bool NameHasBeenSet() const
Definition Signal.h:99
const Aws::Vector< Aws::String > & GetActorIds() const
Definition Signal.h:199
Signal & WithName(NameT &&value)
Definition Signal.h:103
const Aws::Vector< Aws::String > & GetEndpointIds() const
Definition Signal.h:213
const Aws::String & GetName() const
Definition Signal.h:98
void SetSeverity(double value)
Definition Signal.h:166
void SetFirstSeenAt(FirstSeenAtT &&value)
Definition Signal.h:139
const Aws::Utils::DateTime & GetFirstSeenAt() const
Definition Signal.h:136
Signal & WithCount(int value)
Definition Signal.h:177
void SetResourceUids(ResourceUidsT &&value)
Definition Signal.h:188
Signal & WithCreatedAt(CreatedAtT &&value)
Definition Signal.h:116
const Aws::Vector< Indicator > & GetSignalIndicators() const
Definition Signal.h:227
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
double GetSeverity() const
Definition Signal.h:164
const Aws::Vector< Aws::String > & GetResourceUids() const
Definition Signal.h:185
bool ActorIdsHasBeenSet() const
Definition Signal.h:200
bool TypeHasBeenSet() const
Definition Signal.h:76
bool DescriptionHasBeenSet() const
Definition Signal.h:86
bool UidHasBeenSet() const
Definition Signal.h:50
Signal & WithFirstSeenAt(FirstSeenAtT &&value)
Definition Signal.h:141
void SetLastSeenAt(LastSeenAtT &&value)
Definition Signal.h:152
const Aws::String & GetUid() const
Definition Signal.h:49
bool EndpointIdsHasBeenSet() const
Definition Signal.h:214
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Signal.h:123
AWS_GUARDDUTY_API Signal & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ResourceUidsHasBeenSet() const
Definition Signal.h:186
AWS_GUARDDUTY_API Signal(Aws::Utils::Json::JsonView jsonValue)
bool CountHasBeenSet() const
Definition Signal.h:175
bool UpdatedAtHasBeenSet() const
Definition Signal.h:124
Signal & WithActorIds(ActorIdsT &&value)
Definition Signal.h:204
void SetUpdatedAt(UpdatedAtT &&value)
Definition Signal.h:126
void SetDescription(DescriptionT &&value)
Definition Signal.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue