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>
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); }
72 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
87 inline void SetAssessmentTemplateArn(
const char* value) { m_assessmentTemplateArnHasBeenSet =
true; m_assessmentTemplateArn.assign(value); }
111 inline void SetDurationInSeconds(
int value) { m_durationInSecondsHasBeenSet =
true; m_durationInSeconds = value; }
200 inline void SetDataCollected(
bool value) { m_dataCollectedHasBeenSet =
true; m_dataCollected = value; }
249 bool m_arnHasBeenSet =
false;
252 bool m_nameHasBeenSet =
false;
255 bool m_assessmentTemplateArnHasBeenSet =
false;
258 bool m_stateHasBeenSet =
false;
260 int m_durationInSeconds;
261 bool m_durationInSecondsHasBeenSet =
false;
264 bool m_rulesPackageArnsHasBeenSet =
false;
267 bool m_userAttributesForFindingsHasBeenSet =
false;
270 bool m_createdAtHasBeenSet =
false;
273 bool m_startedAtHasBeenSet =
false;
276 bool m_completedAtHasBeenSet =
false;
279 bool m_stateChangedAtHasBeenSet =
false;
281 bool m_dataCollected;
282 bool m_dataCollectedHasBeenSet =
false;
285 bool m_stateChangesHasBeenSet =
false;
288 bool m_notificationsHasBeenSet =
false;
291 bool m_findingCountsHasBeenSet =
false;
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetDataCollected(bool value)
void SetStateChanges(const Aws::Vector< AssessmentRunStateChange > &value)
bool StartedAtHasBeenSet() const
AssessmentRun & AddUserAttributesForFindings(Attribute &&value)
bool StateChangesHasBeenSet() const
const Aws::Utils::DateTime & GetStateChangedAt() const
AssessmentRun & WithState(const AssessmentRunState &value)
bool RulesPackageArnsHasBeenSet() const
bool DurationInSecondsHasBeenSet() const
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)
bool FindingCountsHasBeenSet() const
bool DataCollectedHasBeenSet() const
AssessmentRun & WithNotifications(Aws::Vector< AssessmentRunNotification > &&value)
AWS_INSPECTOR_API AssessmentRun()
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)
bool UserAttributesForFindingsHasBeenSet() const
const Aws::Map< Severity, int > & GetFindingCounts() const
void SetNotifications(const Aws::Vector< AssessmentRunNotification > &value)
AssessmentRun & WithStateChangedAt(const Aws::Utils::DateTime &value)
bool NameHasBeenSet() const
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)
bool GetDataCollected() const
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
int GetDurationInSeconds() 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
bool ArnHasBeenSet() const
AssessmentRun & WithStateChanges(Aws::Vector< AssessmentRunStateChange > &&value)
AssessmentRun & AddRulesPackageArns(const char *value)
void SetUserAttributesForFindings(const Aws::Vector< Attribute > &value)
bool AssessmentTemplateArnHasBeenSet() const
bool CreatedAtHasBeenSet() const
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)
void SetArn(const char *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)
bool CompletedAtHasBeenSet() const
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
bool NotificationsHasBeenSet() const
AssessmentRun & AddFindingCounts(const Severity &key, int value)
AssessmentRun & WithName(const Aws::String &value)
AssessmentRun & AddNotifications(AssessmentRunNotification &&value)
void SetDurationInSeconds(int value)
bool StateHasBeenSet() const
bool StateChangedAtHasBeenSet() const
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