AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeVulnerabilityDetails.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/CodeFilePath.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 Inspector2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR2_API CodeVulnerabilityDetails() = default;
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetCwes() const { return m_cwes; }
49 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
50 template<typename CwesT = Aws::Vector<Aws::String>>
51 void SetCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes = std::forward<CwesT>(value); }
52 template<typename CwesT = Aws::Vector<Aws::String>>
53 CodeVulnerabilityDetails& WithCwes(CwesT&& value) { SetCwes(std::forward<CwesT>(value)); return *this;}
54 template<typename CwesT = Aws::String>
55 CodeVulnerabilityDetails& AddCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes.emplace_back(std::forward<CwesT>(value)); return *this; }
57
59
65 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
66 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
67 template<typename DetectorIdT = Aws::String>
68 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
69 template<typename DetectorIdT = Aws::String>
70 CodeVulnerabilityDetails& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
72
74
80 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
81 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
82 template<typename DetectorNameT = Aws::String>
83 void SetDetectorName(DetectorNameT&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::forward<DetectorNameT>(value); }
84 template<typename DetectorNameT = Aws::String>
85 CodeVulnerabilityDetails& WithDetectorName(DetectorNameT&& value) { SetDetectorName(std::forward<DetectorNameT>(value)); return *this;}
87
89
98 inline const Aws::Vector<Aws::String>& GetDetectorTags() const { return m_detectorTags; }
99 inline bool DetectorTagsHasBeenSet() const { return m_detectorTagsHasBeenSet; }
100 template<typename DetectorTagsT = Aws::Vector<Aws::String>>
101 void SetDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags = std::forward<DetectorTagsT>(value); }
102 template<typename DetectorTagsT = Aws::Vector<Aws::String>>
103 CodeVulnerabilityDetails& WithDetectorTags(DetectorTagsT&& value) { SetDetectorTags(std::forward<DetectorTagsT>(value)); return *this;}
104 template<typename DetectorTagsT = Aws::String>
105 CodeVulnerabilityDetails& AddDetectorTags(DetectorTagsT&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags.emplace_back(std::forward<DetectorTagsT>(value)); return *this; }
107
109
113 inline const CodeFilePath& GetFilePath() const { return m_filePath; }
114 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
115 template<typename FilePathT = CodeFilePath>
116 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
117 template<typename FilePathT = CodeFilePath>
118 CodeVulnerabilityDetails& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
120
122
126 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const { return m_referenceUrls; }
127 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
128 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
129 void SetReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::forward<ReferenceUrlsT>(value); }
130 template<typename ReferenceUrlsT = Aws::Vector<Aws::String>>
131 CodeVulnerabilityDetails& WithReferenceUrls(ReferenceUrlsT&& value) { SetReferenceUrls(std::forward<ReferenceUrlsT>(value)); return *this;}
132 template<typename ReferenceUrlsT = Aws::String>
133 CodeVulnerabilityDetails& AddReferenceUrls(ReferenceUrlsT&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.emplace_back(std::forward<ReferenceUrlsT>(value)); return *this; }
135
137
140 inline const Aws::String& GetRuleId() const { return m_ruleId; }
141 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
142 template<typename RuleIdT = Aws::String>
143 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
144 template<typename RuleIdT = Aws::String>
145 CodeVulnerabilityDetails& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
147
149
153 inline const Aws::String& GetSourceLambdaLayerArn() const { return m_sourceLambdaLayerArn; }
154 inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; }
155 template<typename SourceLambdaLayerArnT = Aws::String>
156 void SetSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = std::forward<SourceLambdaLayerArnT>(value); }
157 template<typename SourceLambdaLayerArnT = Aws::String>
158 CodeVulnerabilityDetails& WithSourceLambdaLayerArn(SourceLambdaLayerArnT&& value) { SetSourceLambdaLayerArn(std::forward<SourceLambdaLayerArnT>(value)); return *this;}
160 private:
161
163 bool m_cwesHasBeenSet = false;
164
165 Aws::String m_detectorId;
166 bool m_detectorIdHasBeenSet = false;
167
168 Aws::String m_detectorName;
169 bool m_detectorNameHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_detectorTags;
172 bool m_detectorTagsHasBeenSet = false;
173
174 CodeFilePath m_filePath;
175 bool m_filePathHasBeenSet = false;
176
177 Aws::Vector<Aws::String> m_referenceUrls;
178 bool m_referenceUrlsHasBeenSet = false;
179
180 Aws::String m_ruleId;
181 bool m_ruleIdHasBeenSet = false;
182
183 Aws::String m_sourceLambdaLayerArn;
184 bool m_sourceLambdaLayerArnHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace Inspector2
189} // namespace Aws
CodeVulnerabilityDetails & WithReferenceUrls(ReferenceUrlsT &&value)
const Aws::Vector< Aws::String > & GetCwes() const
AWS_INSPECTOR2_API CodeVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API CodeVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
CodeVulnerabilityDetails & WithDetectorId(DetectorIdT &&value)
CodeVulnerabilityDetails & WithSourceLambdaLayerArn(SourceLambdaLayerArnT &&value)
CodeVulnerabilityDetails & AddCwes(CwesT &&value)
CodeVulnerabilityDetails & WithDetectorTags(DetectorTagsT &&value)
CodeVulnerabilityDetails & WithCwes(CwesT &&value)
CodeVulnerabilityDetails & AddReferenceUrls(ReferenceUrlsT &&value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
CodeVulnerabilityDetails & AddDetectorTags(DetectorTagsT &&value)
CodeVulnerabilityDetails & WithRuleId(RuleIdT &&value)
CodeVulnerabilityDetails & WithDetectorName(DetectorNameT &&value)
const Aws::Vector< Aws::String > & GetDetectorTags() const
CodeVulnerabilityDetails & WithFilePath(FilePathT &&value)
AWS_INSPECTOR2_API CodeVulnerabilityDetails()=default
void SetSourceLambdaLayerArn(SourceLambdaLayerArnT &&value)
AWS_INSPECTOR2_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