/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about an Amazon Inspector assessment template. This data
* type is used as the response element in the DescribeAssessmentTemplates
* action.See Also:
AWS
* API Reference
The ARN of the assessment template.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the assessment template.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the assessment template.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the assessment template.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the assessment template.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the assessment template.
*/ inline AssessmentTemplate& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the assessment template.
*/ inline AssessmentTemplate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the assessment template.
*/ inline AssessmentTemplate& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the assessment template.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the assessment template.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the assessment template.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the assessment template.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the assessment template.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the assessment template.
*/ inline AssessmentTemplate& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the assessment template.
*/ inline AssessmentTemplate& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the assessment template.
*/ inline AssessmentTemplate& WithName(const char* value) { SetName(value); return *this;} /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline const Aws::String& GetAssessmentTargetArn() const{ return m_assessmentTargetArn; } /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline bool AssessmentTargetArnHasBeenSet() const { return m_assessmentTargetArnHasBeenSet; } /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline void SetAssessmentTargetArn(const Aws::String& value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn = value; } /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline void SetAssessmentTargetArn(Aws::String&& value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn = std::move(value); } /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline void SetAssessmentTargetArn(const char* value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn.assign(value); } /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline AssessmentTemplate& WithAssessmentTargetArn(const Aws::String& value) { SetAssessmentTargetArn(value); return *this;} /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline AssessmentTemplate& WithAssessmentTargetArn(Aws::String&& value) { SetAssessmentTargetArn(std::move(value)); return *this;} /** *The ARN of the assessment target that corresponds to this assessment * template.
*/ inline AssessmentTemplate& WithAssessmentTargetArn(const char* value) { SetAssessmentTargetArn(value); return *this;} /** *The duration in seconds specified for this assessment template. The default * value is 3600 seconds (one hour). The maximum value is 86400 seconds (one * day).
*/ inline int GetDurationInSeconds() const{ return m_durationInSeconds; } /** *The duration in seconds specified for this assessment template. The default * value is 3600 seconds (one hour). The maximum value is 86400 seconds (one * day).
*/ inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; } /** *The duration in seconds specified for this assessment template. The default * value is 3600 seconds (one hour). The maximum value is 86400 seconds (one * day).
*/ inline void SetDurationInSeconds(int value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; } /** *The duration in seconds specified for this assessment template. The default * value is 3600 seconds (one hour). The maximum value is 86400 seconds (one * day).
*/ inline AssessmentTemplate& WithDurationInSeconds(int value) { SetDurationInSeconds(value); return *this;} /** *The rules packages that are specified for this assessment template.
*/ inline const Aws::VectorThe rules packages that are specified for this assessment template.
*/ inline bool RulesPackageArnsHasBeenSet() const { return m_rulesPackageArnsHasBeenSet; } /** *The rules packages that are specified for this assessment template.
*/ inline void SetRulesPackageArns(const Aws::VectorThe rules packages that are specified for this assessment template.
*/ inline void SetRulesPackageArns(Aws::VectorThe rules packages that are specified for this assessment template.
*/ inline AssessmentTemplate& WithRulesPackageArns(const Aws::VectorThe rules packages that are specified for this assessment template.
*/ inline AssessmentTemplate& WithRulesPackageArns(Aws::VectorThe rules packages that are specified for this assessment template.
*/ inline AssessmentTemplate& AddRulesPackageArns(const Aws::String& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; } /** *The rules packages that are specified for this assessment template.
*/ inline AssessmentTemplate& AddRulesPackageArns(Aws::String&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(std::move(value)); return *this; } /** *The rules packages that are specified for this assessment template.
*/ inline AssessmentTemplate& AddRulesPackageArns(const char* value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; } /** *The user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline const Aws::VectorThe user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline bool UserAttributesForFindingsHasBeenSet() const { return m_userAttributesForFindingsHasBeenSet; } /** *The user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline void SetUserAttributesForFindings(const Aws::VectorThe user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline void SetUserAttributesForFindings(Aws::VectorThe user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline AssessmentTemplate& WithUserAttributesForFindings(const Aws::VectorThe user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline AssessmentTemplate& WithUserAttributesForFindings(Aws::VectorThe user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline AssessmentTemplate& AddUserAttributesForFindings(const Attribute& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(value); return *this; } /** *The user-defined attributes that are assigned to every generated finding from * the assessment run that uses this assessment template.
*/ inline AssessmentTemplate& AddUserAttributesForFindings(Attribute&& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(std::move(value)); return *this; } /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline const Aws::String& GetLastAssessmentRunArn() const{ return m_lastAssessmentRunArn; } /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline bool LastAssessmentRunArnHasBeenSet() const { return m_lastAssessmentRunArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline void SetLastAssessmentRunArn(const Aws::String& value) { m_lastAssessmentRunArnHasBeenSet = true; m_lastAssessmentRunArn = value; } /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline void SetLastAssessmentRunArn(Aws::String&& value) { m_lastAssessmentRunArnHasBeenSet = true; m_lastAssessmentRunArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline void SetLastAssessmentRunArn(const char* value) { m_lastAssessmentRunArnHasBeenSet = true; m_lastAssessmentRunArn.assign(value); } /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline AssessmentTemplate& WithLastAssessmentRunArn(const Aws::String& value) { SetLastAssessmentRunArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline AssessmentTemplate& WithLastAssessmentRunArn(Aws::String&& value) { SetLastAssessmentRunArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the most recent assessment run associated * with this assessment template. This value exists only when the value of * assessmentRunCount is greaterpa than zero.
*/ inline AssessmentTemplate& WithLastAssessmentRunArn(const char* value) { SetLastAssessmentRunArn(value); return *this;} /** *The number of existing assessment runs associated with this assessment * template. This value can be zero or a positive integer.
*/ inline int GetAssessmentRunCount() const{ return m_assessmentRunCount; } /** *The number of existing assessment runs associated with this assessment * template. This value can be zero or a positive integer.
*/ inline bool AssessmentRunCountHasBeenSet() const { return m_assessmentRunCountHasBeenSet; } /** *The number of existing assessment runs associated with this assessment * template. This value can be zero or a positive integer.
*/ inline void SetAssessmentRunCount(int value) { m_assessmentRunCountHasBeenSet = true; m_assessmentRunCount = value; } /** *The number of existing assessment runs associated with this assessment * template. This value can be zero or a positive integer.
*/ inline AssessmentTemplate& WithAssessmentRunCount(int value) { SetAssessmentRunCount(value); return *this;} /** *The time at which the assessment template is created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The time at which the assessment template is created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The time at which the assessment template is created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The time at which the assessment template is created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The time at which the assessment template is created.
*/ inline AssessmentTemplate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The time at which the assessment template is created.
*/ inline AssessmentTemplate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_assessmentTargetArn; bool m_assessmentTargetArnHasBeenSet = false; int m_durationInSeconds; bool m_durationInSecondsHasBeenSet = false; Aws::Vector