7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeguru-security/model/Remediation.h>
12#include <aws/codeguru-security/model/Resource.h>
13#include <aws/codeguru-security/model/Severity.h>
14#include <aws/codeguru-security/model/Status.h>
15#include <aws/codeguru-security/model/Vulnerability.h>
28namespace CodeGuruSecurity
42 AWS_CODEGURUSECURITY_API
Finding() =
default;
54 template<
typename CreatedAtT = Aws::Utils::DateTime>
55 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
56 template<
typename CreatedAtT = Aws::Utils::DateTime>
66 template<
typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
68 template<
typename DescriptionT = Aws::String>
80 template<
typename DetectorIdT = Aws::String>
81 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet =
true; m_detectorId = std::forward<DetectorIdT>(value); }
82 template<
typename DetectorIdT = Aws::String>
93 template<
typename DetectorNameT = Aws::String>
94 void SetDetectorName(DetectorNameT&& value) { m_detectorNameHasBeenSet =
true; m_detectorName = std::forward<DetectorNameT>(value); }
95 template<
typename DetectorNameT = Aws::String>
107 template<
typename DetectorTagsT = Aws::Vector<Aws::String>>
108 void SetDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet =
true; m_detectorTags = std::forward<DetectorTagsT>(value); }
109 template<
typename DetectorTagsT = Aws::Vector<Aws::String>>
111 template<
typename DetectorTagsT = Aws::String>
112 Finding&
AddDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet =
true; m_detectorTags.emplace_back(std::forward<DetectorTagsT>(value));
return *
this; }
122 template<
typename GeneratorIdT = Aws::String>
123 void SetGeneratorId(GeneratorIdT&& value) { m_generatorIdHasBeenSet =
true; m_generatorId = std::forward<GeneratorIdT>(value); }
124 template<
typename GeneratorIdT = Aws::String>
134 template<
typename IdT = Aws::String>
135 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
136 template<
typename IdT = Aws::String>
146 template<
typename RemediationT = Remediation>
147 void SetRemediation(RemediationT&& value) { m_remediationHasBeenSet =
true; m_remediation = std::forward<RemediationT>(value); }
148 template<
typename RemediationT = Remediation>
158 template<
typename ResourceT = Resource>
159 void SetResource(ResourceT&& value) { m_resourceHasBeenSet =
true; m_resource = std::forward<ResourceT>(value); }
160 template<
typename ResourceT = Resource>
170 template<
typename RuleIdT = Aws::String>
171 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet =
true; m_ruleId = std::forward<RuleIdT>(value); }
172 template<
typename RuleIdT = Aws::String>
205 template<
typename TitleT = Aws::String>
206 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
207 template<
typename TitleT = Aws::String>
217 template<
typename TypeT = Aws::String>
218 void SetType(TypeT&& value) { m_typeHasBeenSet =
true; m_type = std::forward<TypeT>(value); }
219 template<
typename TypeT = Aws::String>
230 template<
typename UpdatedAtT = Aws::Utils::DateTime>
231 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
232 template<
typename UpdatedAtT = Aws::Utils::DateTime>
242 template<
typename VulnerabilityT = Vulnerability>
243 void SetVulnerability(VulnerabilityT&& value) { m_vulnerabilityHasBeenSet =
true; m_vulnerability = std::forward<VulnerabilityT>(value); }
244 template<
typename VulnerabilityT = Vulnerability>
250 bool m_createdAtHasBeenSet =
false;
253 bool m_descriptionHasBeenSet =
false;
256 bool m_detectorIdHasBeenSet =
false;
259 bool m_detectorNameHasBeenSet =
false;
262 bool m_detectorTagsHasBeenSet =
false;
265 bool m_generatorIdHasBeenSet =
false;
268 bool m_idHasBeenSet =
false;
270 Remediation m_remediation;
271 bool m_remediationHasBeenSet =
false;
274 bool m_resourceHasBeenSet =
false;
277 bool m_ruleIdHasBeenSet =
false;
280 bool m_severityHasBeenSet =
false;
283 bool m_statusHasBeenSet =
false;
286 bool m_titleHasBeenSet =
false;
289 bool m_typeHasBeenSet =
false;
292 bool m_updatedAtHasBeenSet =
false;
294 Vulnerability m_vulnerability;
295 bool m_vulnerabilityHasBeenSet =
false;
void SetRemediation(RemediationT &&value)
bool StatusHasBeenSet() const
Finding & WithDescription(DescriptionT &&value)
Finding & WithTitle(TitleT &&value)
bool RuleIdHasBeenSet() const
void SetVulnerability(VulnerabilityT &&value)
bool VulnerabilityHasBeenSet() const
AWS_CODEGURUSECURITY_API Finding()=default
Finding & WithStatus(Status value)
void SetDetectorTags(DetectorTagsT &&value)
void SetTitle(TitleT &&value)
bool RemediationHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetType() const
bool TitleHasBeenSet() const
bool ResourceHasBeenSet() const
const Aws::Vector< Aws::String > & GetDetectorTags() const
const Aws::String & GetRuleId() const
const Aws::String & GetDetectorId() const
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
bool IdHasBeenSet() const
bool DetectorIdHasBeenSet() const
void SetType(TypeT &&value)
Finding & WithVulnerability(VulnerabilityT &&value)
void SetSeverity(Severity value)
Finding & WithType(TypeT &&value)
bool DetectorTagsHasBeenSet() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetGeneratorId(GeneratorIdT &&value)
Finding & WithResource(ResourceT &&value)
Finding & WithRuleId(RuleIdT &&value)
bool UpdatedAtHasBeenSet() const
void SetStatus(Status value)
Finding & WithGeneratorId(GeneratorIdT &&value)
bool GeneratorIdHasBeenSet() const
Finding & WithId(IdT &&value)
const Aws::String & GetDetectorName() const
bool SeverityHasBeenSet() const
Finding & WithDetectorId(DetectorIdT &&value)
Severity GetSeverity() const
const Aws::String & GetGeneratorId() const
const Vulnerability & GetVulnerability() const
const Aws::String & GetId() const
const Aws::String & GetTitle() const
Finding & WithDetectorName(DetectorNameT &&value)
Finding & WithCreatedAt(CreatedAtT &&value)
bool TypeHasBeenSet() const
bool CreatedAtHasBeenSet() const
void SetRuleId(RuleIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
Finding & WithDetectorTags(DetectorTagsT &&value)
Finding & AddDetectorTags(DetectorTagsT &&value)
void SetDetectorName(DetectorNameT &&value)
void SetDetectorId(DetectorIdT &&value)
AWS_CODEGURUSECURITY_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & WithUpdatedAt(UpdatedAtT &&value)
const Remediation & GetRemediation() const
void SetUpdatedAt(UpdatedAtT &&value)
const Resource & GetResource() const
Finding & WithRemediation(RemediationT &&value)
AWS_CODEGURUSECURITY_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DescriptionHasBeenSet() const
void SetResource(ResourceT &&value)
bool DetectorNameHasBeenSet() const
Finding & WithSeverity(Severity value)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue