AWS SDK for C++

AWS SDK for C++ Version 1.11.857

Loading...
Searching...
No Matches
Investigation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/CloudDetails.h>
11#include <aws/guardduty/model/Confidence.h>
12#include <aws/guardduty/model/InvestigationMetadata.h>
13#include <aws/guardduty/model/InvestigationStatus.h>
14#include <aws/guardduty/model/RiskLevel.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty {
26namespace Model {
27
35 public:
36 AWS_GUARDDUTY_API Investigation() = default;
37 AWS_GUARDDUTY_API Investigation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Investigation& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetInvestigationId() const { return m_investigationId; }
46 inline bool InvestigationIdHasBeenSet() const { return m_investigationIdHasBeenSet; }
47 template <typename InvestigationIdT = Aws::String>
48 void SetInvestigationId(InvestigationIdT&& value) {
49 m_investigationIdHasBeenSet = true;
50 m_investigationId = std::forward<InvestigationIdT>(value);
51 }
52 template <typename InvestigationIdT = Aws::String>
53 Investigation& WithInvestigationId(InvestigationIdT&& value) {
54 SetInvestigationId(std::forward<InvestigationIdT>(value));
55 return *this;
56 }
58
60
64 inline InvestigationStatus GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(InvestigationStatus value) {
67 m_statusHasBeenSet = true;
68 m_status = value;
69 }
71 SetStatus(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTriggerPrompt() const { return m_triggerPrompt; }
81 inline bool TriggerPromptHasBeenSet() const { return m_triggerPromptHasBeenSet; }
82 template <typename TriggerPromptT = Aws::String>
83 void SetTriggerPrompt(TriggerPromptT&& value) {
84 m_triggerPromptHasBeenSet = true;
85 m_triggerPrompt = std::forward<TriggerPromptT>(value);
86 }
87 template <typename TriggerPromptT = Aws::String>
88 Investigation& WithTriggerPrompt(TriggerPromptT&& value) {
89 SetTriggerPrompt(std::forward<TriggerPromptT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetTriggeredBy() const { return m_triggeredBy; }
99 inline bool TriggeredByHasBeenSet() const { return m_triggeredByHasBeenSet; }
100 template <typename TriggeredByT = Aws::String>
101 void SetTriggeredBy(TriggeredByT&& value) {
102 m_triggeredByHasBeenSet = true;
103 m_triggeredBy = std::forward<TriggeredByT>(value);
104 }
105 template <typename TriggeredByT = Aws::String>
106 Investigation& WithTriggeredBy(TriggeredByT&& value) {
107 SetTriggeredBy(std::forward<TriggeredByT>(value));
108 return *this;
109 }
111
113
116 inline const InvestigationMetadata& GetMetadata() const { return m_metadata; }
117 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
118 template <typename MetadataT = InvestigationMetadata>
119 void SetMetadata(MetadataT&& value) {
120 m_metadataHasBeenSet = true;
121 m_metadata = std::forward<MetadataT>(value);
122 }
123 template <typename MetadataT = InvestigationMetadata>
124 Investigation& WithMetadata(MetadataT&& value) {
125 SetMetadata(std::forward<MetadataT>(value));
126 return *this;
127 }
129
131
135 inline const CloudDetails& GetCloud() const { return m_cloud; }
136 inline bool CloudHasBeenSet() const { return m_cloudHasBeenSet; }
137 template <typename CloudT = CloudDetails>
138 void SetCloud(CloudT&& value) {
139 m_cloudHasBeenSet = true;
140 m_cloud = std::forward<CloudT>(value);
141 }
142 template <typename CloudT = CloudDetails>
143 Investigation& WithCloud(CloudT&& value) {
144 SetCloud(std::forward<CloudT>(value));
145 return *this;
146 }
148
150
155 inline RiskLevel GetRiskLevel() const { return m_riskLevel; }
156 inline bool RiskLevelHasBeenSet() const { return m_riskLevelHasBeenSet; }
157 inline void SetRiskLevel(RiskLevel value) {
158 m_riskLevelHasBeenSet = true;
159 m_riskLevel = value;
160 }
162 SetRiskLevel(value);
163 return *this;
164 }
166
168
171 inline const Aws::String& GetRisk() const { return m_risk; }
172 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
173 template <typename RiskT = Aws::String>
174 void SetRisk(RiskT&& value) {
175 m_riskHasBeenSet = true;
176 m_risk = std::forward<RiskT>(value);
177 }
178 template <typename RiskT = Aws::String>
179 Investigation& WithRisk(RiskT&& value) {
180 SetRisk(std::forward<RiskT>(value));
181 return *this;
182 }
184
186
191 inline Confidence GetConfidence() const { return m_confidence; }
192 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
193 inline void SetConfidence(Confidence value) {
194 m_confidenceHasBeenSet = true;
195 m_confidence = value;
196 }
198 SetConfidence(value);
199 return *this;
200 }
202
204
208 inline const Aws::String& GetSummary() const { return m_summary; }
209 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
210 template <typename SummaryT = Aws::String>
211 void SetSummary(SummaryT&& value) {
212 m_summaryHasBeenSet = true;
213 m_summary = std::forward<SummaryT>(value);
214 }
215 template <typename SummaryT = Aws::String>
216 Investigation& WithSummary(SummaryT&& value) {
217 SetSummary(std::forward<SummaryT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
227 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
228 template <typename StartTimeT = Aws::Utils::DateTime>
229 void SetStartTime(StartTimeT&& value) {
230 m_startTimeHasBeenSet = true;
231 m_startTime = std::forward<StartTimeT>(value);
232 }
233 template <typename StartTimeT = Aws::Utils::DateTime>
234 Investigation& WithStartTime(StartTimeT&& value) {
235 SetStartTime(std::forward<StartTimeT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
245 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
246 template <typename EndTimeT = Aws::Utils::DateTime>
247 void SetEndTime(EndTimeT&& value) {
248 m_endTimeHasBeenSet = true;
249 m_endTime = std::forward<EndTimeT>(value);
250 }
251 template <typename EndTimeT = Aws::Utils::DateTime>
252 Investigation& WithEndTime(EndTimeT&& value) {
253 SetEndTime(std::forward<EndTimeT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::String& GetError() const { return m_error; }
264 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
265 template <typename ErrorT = Aws::String>
266 void SetError(ErrorT&& value) {
267 m_errorHasBeenSet = true;
268 m_error = std::forward<ErrorT>(value);
269 }
270 template <typename ErrorT = Aws::String>
271 Investigation& WithError(ErrorT&& value) {
272 SetError(std::forward<ErrorT>(value));
273 return *this;
274 }
276 private:
277 Aws::String m_investigationId;
278
280
281 Aws::String m_triggerPrompt;
282
283 Aws::String m_triggeredBy;
284
285 InvestigationMetadata m_metadata;
286
287 CloudDetails m_cloud;
288
289 RiskLevel m_riskLevel{RiskLevel::NOT_SET};
290
291 Aws::String m_risk;
292
293 Confidence m_confidence{Confidence::NOT_SET};
294
295 Aws::String m_summary;
296
297 Aws::Utils::DateTime m_startTime{};
298
299 Aws::Utils::DateTime m_endTime{};
300
301 Aws::String m_error;
302 bool m_investigationIdHasBeenSet = false;
303 bool m_statusHasBeenSet = false;
304 bool m_triggerPromptHasBeenSet = false;
305 bool m_triggeredByHasBeenSet = false;
306 bool m_metadataHasBeenSet = false;
307 bool m_cloudHasBeenSet = false;
308 bool m_riskLevelHasBeenSet = false;
309 bool m_riskHasBeenSet = false;
310 bool m_confidenceHasBeenSet = false;
311 bool m_summaryHasBeenSet = false;
312 bool m_startTimeHasBeenSet = false;
313 bool m_endTimeHasBeenSet = false;
314 bool m_errorHasBeenSet = false;
315};
316
317} // namespace Model
318} // namespace GuardDuty
319} // namespace Aws
void SetTriggerPrompt(TriggerPromptT &&value)
Investigation & WithTriggeredBy(TriggeredByT &&value)
Investigation & WithRiskLevel(RiskLevel value)
AWS_GUARDDUTY_API Investigation(Aws::Utils::Json::JsonView jsonValue)
void SetInvestigationId(InvestigationIdT &&value)
Investigation & WithStartTime(StartTimeT &&value)
void SetStartTime(StartTimeT &&value)
const Aws::String & GetTriggerPrompt() const
Investigation & WithInvestigationId(InvestigationIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
const InvestigationMetadata & GetMetadata() const
void SetTriggeredBy(TriggeredByT &&value)
Investigation & WithCloud(CloudT &&value)
InvestigationStatus GetStatus() const
Investigation & WithConfidence(Confidence value)
const CloudDetails & GetCloud() const
const Aws::String & GetInvestigationId() const
AWS_GUARDDUTY_API Investigation()=default
void SetStatus(InvestigationStatus value)
Investigation & WithStatus(InvestigationStatus value)
Investigation & WithError(ErrorT &&value)
const Aws::String & GetSummary() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRisk() const
Investigation & WithMetadata(MetadataT &&value)
Investigation & WithTriggerPrompt(TriggerPromptT &&value)
Investigation & WithEndTime(EndTimeT &&value)
const Aws::String & GetError() const
void SetMetadata(MetadataT &&value)
Investigation & WithSummary(SummaryT &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_GUARDDUTY_API Investigation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfidence(Confidence value)
const Aws::String & GetTriggeredBy() const
Investigation & WithRisk(RiskT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue