AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Vulnerability.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/FilePath.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruSecurity
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEGURUSECURITY_API Vulnerability() = default;
38 AWS_CODEGURUSECURITY_API Vulnerability(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUSECURITY_API Vulnerability& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const FilePath& GetFilePath() const { return m_filePath; }
49 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
50 template<typename FilePathT = FilePath>
51 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
52 template<typename FilePathT = FilePath>
53 Vulnerability& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template<typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 Vulnerability& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const { return m_referenceUrls; }
73 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
74 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
75 void SetReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::forward<ReferenceUrlsT>(value); }
76 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
77 Vulnerability& WithReferenceUrls(ReferenceUrlsT&& value) { SetReferenceUrls(std::forward<ReferenceUrlsT>(value)); return *this;}
78 template<typename ReferenceUrlsT = Aws::String>
79 Vulnerability& AddReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value)); return *this; }
81
83
87 inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const { return m_relatedVulnerabilities; }
88 inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
89 template<typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
90 void SetRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = std::forward<RelatedVulnerabilitiesT>(value); }
91 template<typename RelatedVulnerabilitiesT = Aws::Vector<Aws::String>>
92 Vulnerability& WithRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) { SetRelatedVulnerabilities(std::forward<RelatedVulnerabilitiesT>(value)); return *this;}
93 template<typename RelatedVulnerabilitiesT = Aws::String>
94 Vulnerability& AddRelatedVulnerabilities(RelatedVulnerabilitiesT&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.emplace_back(std::forward<RelatedVulnerabilitiesT>(value)); return *this; }
96 private:
97
98 FilePath m_filePath;
99 bool m_filePathHasBeenSet = false;
100
101 Aws::String m_id;
102 bool m_idHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_referenceUrls;
105 bool m_referenceUrlsHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_relatedVulnerabilities;
108 bool m_relatedVulnerabilitiesHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CodeGuruSecurity
113} // namespace Aws
Vulnerability & WithFilePath(FilePathT &&value)
void SetReferenceUrls(ReferenceUrlsT &&value)
Vulnerability & AddRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
AWS_CODEGURUSECURITY_API Vulnerability()=default
Vulnerability & WithReferenceUrls(ReferenceUrlsT &&value)
Vulnerability & WithId(IdT &&value)
AWS_CODEGURUSECURITY_API Vulnerability(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
AWS_CODEGURUSECURITY_API Vulnerability & operator=(Aws::Utils::Json::JsonView jsonValue)
Vulnerability & AddReferenceUrls(ReferenceUrlsT &&value)
Vulnerability & WithRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
void SetRelatedVulnerabilities(RelatedVulnerabilitiesT &&value)
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() 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