AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssessmentRun.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/AssessmentRunState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/inspector/model/Attribute.h>
14#include <aws/inspector/model/AssessmentRunStateChange.h>
15#include <aws/inspector/model/AssessmentRunNotification.h>
16#include <aws/inspector/model/Severity.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Inspector
30{
31namespace Model
32{
33
42 {
43 public:
44 AWS_INSPECTOR_API AssessmentRun();
45 AWS_INSPECTOR_API AssessmentRun(Aws::Utils::Json::JsonView jsonValue);
46 AWS_INSPECTOR_API AssessmentRun& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetArn() const{ return m_arn; }
55 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
56 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
58 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
59 inline AssessmentRun& WithArn(const Aws::String& value) { SetArn(value); return *this;}
60 inline AssessmentRun& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
61 inline AssessmentRun& WithArn(const char* value) { SetArn(value); return *this;}
63
65
68 inline const Aws::String& GetName() const{ return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
71 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
72 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 inline AssessmentRun& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline AssessmentRun& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline AssessmentRun& WithName(const char* value) { SetName(value); return *this;}
77
79
83 inline const Aws::String& GetAssessmentTemplateArn() const{ return m_assessmentTemplateArn; }
84 inline bool AssessmentTemplateArnHasBeenSet() const { return m_assessmentTemplateArnHasBeenSet; }
85 inline void SetAssessmentTemplateArn(const Aws::String& value) { m_assessmentTemplateArnHasBeenSet = true; m_assessmentTemplateArn = value; }
86 inline void SetAssessmentTemplateArn(Aws::String&& value) { m_assessmentTemplateArnHasBeenSet = true; m_assessmentTemplateArn = std::move(value); }
87 inline void SetAssessmentTemplateArn(const char* value) { m_assessmentTemplateArnHasBeenSet = true; m_assessmentTemplateArn.assign(value); }
88 inline AssessmentRun& WithAssessmentTemplateArn(const Aws::String& value) { SetAssessmentTemplateArn(value); return *this;}
89 inline AssessmentRun& WithAssessmentTemplateArn(Aws::String&& value) { SetAssessmentTemplateArn(std::move(value)); return *this;}
90 inline AssessmentRun& WithAssessmentTemplateArn(const char* value) { SetAssessmentTemplateArn(value); return *this;}
92
94
97 inline const AssessmentRunState& GetState() const{ return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(const AssessmentRunState& value) { m_stateHasBeenSet = true; m_state = value; }
100 inline void SetState(AssessmentRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
101 inline AssessmentRun& WithState(const AssessmentRunState& value) { SetState(value); return *this;}
102 inline AssessmentRun& WithState(AssessmentRunState&& value) { SetState(std::move(value)); return *this;}
104
106
109 inline int GetDurationInSeconds() const{ return m_durationInSeconds; }
110 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
111 inline void SetDurationInSeconds(int value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
112 inline AssessmentRun& WithDurationInSeconds(int value) { SetDurationInSeconds(value); return *this;}
114
116
119 inline const Aws::Vector<Aws::String>& GetRulesPackageArns() const{ return m_rulesPackageArns; }
120 inline bool RulesPackageArnsHasBeenSet() const { return m_rulesPackageArnsHasBeenSet; }
121 inline void SetRulesPackageArns(const Aws::Vector<Aws::String>& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = value; }
122 inline void SetRulesPackageArns(Aws::Vector<Aws::String>&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = std::move(value); }
124 inline AssessmentRun& WithRulesPackageArns(Aws::Vector<Aws::String>&& value) { SetRulesPackageArns(std::move(value)); return *this;}
125 inline AssessmentRun& AddRulesPackageArns(const Aws::String& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
126 inline AssessmentRun& AddRulesPackageArns(Aws::String&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(std::move(value)); return *this; }
127 inline AssessmentRun& AddRulesPackageArns(const char* value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
129
131
134 inline const Aws::Vector<Attribute>& GetUserAttributesForFindings() const{ return m_userAttributesForFindings; }
135 inline bool UserAttributesForFindingsHasBeenSet() const { return m_userAttributesForFindingsHasBeenSet; }
136 inline void SetUserAttributesForFindings(const Aws::Vector<Attribute>& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings = value; }
137 inline void SetUserAttributesForFindings(Aws::Vector<Attribute>&& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings = std::move(value); }
140 inline AssessmentRun& AddUserAttributesForFindings(const Attribute& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(value); return *this; }
141 inline AssessmentRun& AddUserAttributesForFindings(Attribute&& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(std::move(value)); return *this; }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
149 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
150 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
151 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
152 inline AssessmentRun& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
153 inline AssessmentRun& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
155
157
160 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
161 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
162 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
163 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
164 inline AssessmentRun& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
165 inline AssessmentRun& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
167
169
173 inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
174 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
175 inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
176 inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
177 inline AssessmentRun& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
178 inline AssessmentRun& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
180
182
185 inline const Aws::Utils::DateTime& GetStateChangedAt() const{ return m_stateChangedAt; }
186 inline bool StateChangedAtHasBeenSet() const { return m_stateChangedAtHasBeenSet; }
187 inline void SetStateChangedAt(const Aws::Utils::DateTime& value) { m_stateChangedAtHasBeenSet = true; m_stateChangedAt = value; }
188 inline void SetStateChangedAt(Aws::Utils::DateTime&& value) { m_stateChangedAtHasBeenSet = true; m_stateChangedAt = std::move(value); }
189 inline AssessmentRun& WithStateChangedAt(const Aws::Utils::DateTime& value) { SetStateChangedAt(value); return *this;}
190 inline AssessmentRun& WithStateChangedAt(Aws::Utils::DateTime&& value) { SetStateChangedAt(std::move(value)); return *this;}
192
194
198 inline bool GetDataCollected() const{ return m_dataCollected; }
199 inline bool DataCollectedHasBeenSet() const { return m_dataCollectedHasBeenSet; }
200 inline void SetDataCollected(bool value) { m_dataCollectedHasBeenSet = true; m_dataCollected = value; }
201 inline AssessmentRun& WithDataCollected(bool value) { SetDataCollected(value); return *this;}
203
205
208 inline const Aws::Vector<AssessmentRunStateChange>& GetStateChanges() const{ return m_stateChanges; }
209 inline bool StateChangesHasBeenSet() const { return m_stateChangesHasBeenSet; }
210 inline void SetStateChanges(const Aws::Vector<AssessmentRunStateChange>& value) { m_stateChangesHasBeenSet = true; m_stateChanges = value; }
211 inline void SetStateChanges(Aws::Vector<AssessmentRunStateChange>&& value) { m_stateChangesHasBeenSet = true; m_stateChanges = std::move(value); }
213 inline AssessmentRun& WithStateChanges(Aws::Vector<AssessmentRunStateChange>&& value) { SetStateChanges(std::move(value)); return *this;}
214 inline AssessmentRun& AddStateChanges(const AssessmentRunStateChange& value) { m_stateChangesHasBeenSet = true; m_stateChanges.push_back(value); return *this; }
215 inline AssessmentRun& AddStateChanges(AssessmentRunStateChange&& value) { m_stateChangesHasBeenSet = true; m_stateChanges.push_back(std::move(value)); return *this; }
217
219
223 inline const Aws::Vector<AssessmentRunNotification>& GetNotifications() const{ return m_notifications; }
224 inline bool NotificationsHasBeenSet() const { return m_notificationsHasBeenSet; }
225 inline void SetNotifications(const Aws::Vector<AssessmentRunNotification>& value) { m_notificationsHasBeenSet = true; m_notifications = value; }
226 inline void SetNotifications(Aws::Vector<AssessmentRunNotification>&& value) { m_notificationsHasBeenSet = true; m_notifications = std::move(value); }
229 inline AssessmentRun& AddNotifications(const AssessmentRunNotification& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(value); return *this; }
230 inline AssessmentRun& AddNotifications(AssessmentRunNotification&& value) { m_notificationsHasBeenSet = true; m_notifications.push_back(std::move(value)); return *this; }
232
234
237 inline const Aws::Map<Severity, int>& GetFindingCounts() const{ return m_findingCounts; }
238 inline bool FindingCountsHasBeenSet() const { return m_findingCountsHasBeenSet; }
239 inline void SetFindingCounts(const Aws::Map<Severity, int>& value) { m_findingCountsHasBeenSet = true; m_findingCounts = value; }
240 inline void SetFindingCounts(Aws::Map<Severity, int>&& value) { m_findingCountsHasBeenSet = true; m_findingCounts = std::move(value); }
241 inline AssessmentRun& WithFindingCounts(const Aws::Map<Severity, int>& value) { SetFindingCounts(value); return *this;}
242 inline AssessmentRun& WithFindingCounts(Aws::Map<Severity, int>&& value) { SetFindingCounts(std::move(value)); return *this;}
243 inline AssessmentRun& AddFindingCounts(const Severity& key, int value) { m_findingCountsHasBeenSet = true; m_findingCounts.emplace(key, value); return *this; }
244 inline AssessmentRun& AddFindingCounts(Severity&& key, int value) { m_findingCountsHasBeenSet = true; m_findingCounts.emplace(std::move(key), value); return *this; }
246 private:
247
248 Aws::String m_arn;
249 bool m_arnHasBeenSet = false;
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
254 Aws::String m_assessmentTemplateArn;
255 bool m_assessmentTemplateArnHasBeenSet = false;
256
257 AssessmentRunState m_state;
258 bool m_stateHasBeenSet = false;
259
260 int m_durationInSeconds;
261 bool m_durationInSecondsHasBeenSet = false;
262
263 Aws::Vector<Aws::String> m_rulesPackageArns;
264 bool m_rulesPackageArnsHasBeenSet = false;
265
266 Aws::Vector<Attribute> m_userAttributesForFindings;
267 bool m_userAttributesForFindingsHasBeenSet = false;
268
269 Aws::Utils::DateTime m_createdAt;
270 bool m_createdAtHasBeenSet = false;
271
272 Aws::Utils::DateTime m_startedAt;
273 bool m_startedAtHasBeenSet = false;
274
275 Aws::Utils::DateTime m_completedAt;
276 bool m_completedAtHasBeenSet = false;
277
278 Aws::Utils::DateTime m_stateChangedAt;
279 bool m_stateChangedAtHasBeenSet = false;
280
281 bool m_dataCollected;
282 bool m_dataCollectedHasBeenSet = false;
283
285 bool m_stateChangesHasBeenSet = false;
286
288 bool m_notificationsHasBeenSet = false;
289
290 Aws::Map<Severity, int> m_findingCounts;
291 bool m_findingCountsHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace Inspector
296} // namespace Aws
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetStateChanges(const Aws::Vector< AssessmentRunStateChange > &value)
AssessmentRun & AddUserAttributesForFindings(Attribute &&value)
const Aws::Utils::DateTime & GetStateChangedAt() const
AssessmentRun & WithState(const AssessmentRunState &value)
const AssessmentRunState & GetState() const
void SetUserAttributesForFindings(Aws::Vector< Attribute > &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartedAt() const
AssessmentRun & WithAssessmentTemplateArn(Aws::String &&value)
AssessmentRun & WithNotifications(Aws::Vector< AssessmentRunNotification > &&value)
void SetCompletedAt(Aws::Utils::DateTime &&value)
AssessmentRun & WithDurationInSeconds(int value)
void SetFindingCounts(Aws::Map< Severity, int > &&value)
AssessmentRun & WithState(AssessmentRunState &&value)
void SetCompletedAt(const Aws::Utils::DateTime &value)
AssessmentRun & WithStateChanges(const Aws::Vector< AssessmentRunStateChange > &value)
void SetName(const Aws::String &value)
AssessmentRun & WithRulesPackageArns(Aws::Vector< Aws::String > &&value)
AssessmentRun & AddRulesPackageArns(const Aws::String &value)
AssessmentRun & WithName(const char *value)
void SetState(AssessmentRunState &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AssessmentRun & WithUserAttributesForFindings(Aws::Vector< Attribute > &&value)
AssessmentRun & WithName(Aws::String &&value)
AssessmentRun & AddStateChanges(AssessmentRunStateChange &&value)
const Aws::Map< Severity, int > & GetFindingCounts() const
void SetNotifications(const Aws::Vector< AssessmentRunNotification > &value)
AssessmentRun & WithStateChangedAt(const Aws::Utils::DateTime &value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentRun & AddFindingCounts(Severity &&key, int value)
const Aws::Utils::DateTime & GetCompletedAt() const
void SetAssessmentTemplateArn(const char *value)
AssessmentRun & WithArn(const char *value)
AssessmentRun & WithArn(const Aws::String &value)
AssessmentRun & WithNotifications(const Aws::Vector< AssessmentRunNotification > &value)
AssessmentRun & WithUserAttributesForFindings(const Aws::Vector< Attribute > &value)
void SetStateChanges(Aws::Vector< AssessmentRunStateChange > &&value)
AssessmentRun & WithCreatedAt(const Aws::Utils::DateTime &value)
AWS_INSPECTOR_API AssessmentRun & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(Aws::String &&value)
AssessmentRun & WithRulesPackageArns(const Aws::Vector< Aws::String > &value)
AssessmentRun & WithCreatedAt(Aws::Utils::DateTime &&value)
AssessmentRun & WithCompletedAt(const Aws::Utils::DateTime &value)
AssessmentRun & WithDataCollected(bool value)
AssessmentRun & AddUserAttributesForFindings(const Attribute &value)
AssessmentRun & WithFindingCounts(Aws::Map< Severity, int > &&value)
AssessmentRun & WithAssessmentTemplateArn(const char *value)
const Aws::String & GetAssessmentTemplateArn() const
AssessmentRun & WithArn(Aws::String &&value)
const Aws::String & GetArn() const
void SetRulesPackageArns(const Aws::Vector< Aws::String > &value)
AssessmentRun & AddStateChanges(const AssessmentRunStateChange &value)
const Aws::String & GetName() const
AssessmentRun & WithStateChanges(Aws::Vector< AssessmentRunStateChange > &&value)
AssessmentRun & AddRulesPackageArns(const char *value)
void SetUserAttributesForFindings(const Aws::Vector< Attribute > &value)
AssessmentRun & WithStartedAt(const Aws::Utils::DateTime &value)
AssessmentRun & WithStateChangedAt(Aws::Utils::DateTime &&value)
AssessmentRun & WithStartedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< Attribute > & GetUserAttributesForFindings() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
AssessmentRun & WithCompletedAt(Aws::Utils::DateTime &&value)
AssessmentRun & WithFindingCounts(const Aws::Map< Severity, int > &value)
const Aws::Vector< AssessmentRunNotification > & GetNotifications() const
AssessmentRun & WithAssessmentTemplateArn(const Aws::String &value)
void SetState(const AssessmentRunState &value)
AssessmentRun & AddRulesPackageArns(Aws::String &&value)
void SetArn(const Aws::String &value)
void SetAssessmentTemplateArn(Aws::String &&value)
void SetStateChangedAt(Aws::Utils::DateTime &&value)
void SetStartedAt(Aws::Utils::DateTime &&value)
void SetAssessmentTemplateArn(const Aws::String &value)
const Aws::Vector< AssessmentRunStateChange > & GetStateChanges() const
AssessmentRun & AddFindingCounts(const Severity &key, int value)
AssessmentRun & WithName(const Aws::String &value)
AssessmentRun & AddNotifications(AssessmentRunNotification &&value)
void SetFindingCounts(const Aws::Map< Severity, int > &value)
void SetRulesPackageArns(Aws::Vector< Aws::String > &&value)
AWS_INSPECTOR_API AssessmentRun(Aws::Utils::Json::JsonView jsonValue)
void SetNotifications(Aws::Vector< AssessmentRunNotification > &&value)
AssessmentRun & AddNotifications(const AssessmentRunNotification &value)
void SetStateChangedAt(const Aws::Utils::DateTime &value)
void SetName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRulesPackageArns() const
void SetName(const char *value)
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
Aws::Utils::Json::JsonValue JsonValue