AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCwes(const Aws::Vector<Aws::String>& value) { m_cwesHasBeenSet = true; m_cwes = value; }
51 inline void SetCwes(Aws::Vector<Aws::String>&& value) { m_cwesHasBeenSet = true; m_cwes = std::move(value); }
52 inline CodeVulnerabilityDetails& WithCwes(const Aws::Vector<Aws::String>& value) { SetCwes(value); return *this;}
53 inline CodeVulnerabilityDetails& WithCwes(Aws::Vector<Aws::String>&& value) { SetCwes(std::move(value)); return *this;}
54 inline CodeVulnerabilityDetails& AddCwes(const Aws::String& value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
55 inline CodeVulnerabilityDetails& AddCwes(Aws::String&& value) { m_cwesHasBeenSet = true; m_cwes.push_back(std::move(value)); return *this; }
56 inline CodeVulnerabilityDetails& AddCwes(const char* value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
58
60
66 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
67 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
68 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
69 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
70 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
71 inline CodeVulnerabilityDetails& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
72 inline CodeVulnerabilityDetails& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
73 inline CodeVulnerabilityDetails& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
75
77
83 inline const Aws::String& GetDetectorName() const{ return m_detectorName; }
84 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
85 inline void SetDetectorName(const Aws::String& value) { m_detectorNameHasBeenSet = true; m_detectorName = value; }
86 inline void SetDetectorName(Aws::String&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::move(value); }
87 inline void SetDetectorName(const char* value) { m_detectorNameHasBeenSet = true; m_detectorName.assign(value); }
88 inline CodeVulnerabilityDetails& WithDetectorName(const Aws::String& value) { SetDetectorName(value); return *this;}
89 inline CodeVulnerabilityDetails& WithDetectorName(Aws::String&& value) { SetDetectorName(std::move(value)); return *this;}
90 inline CodeVulnerabilityDetails& WithDetectorName(const char* value) { SetDetectorName(value); return *this;}
92
94
103 inline const Aws::Vector<Aws::String>& GetDetectorTags() const{ return m_detectorTags; }
104 inline bool DetectorTagsHasBeenSet() const { return m_detectorTagsHasBeenSet; }
105 inline void SetDetectorTags(const Aws::Vector<Aws::String>& value) { m_detectorTagsHasBeenSet = true; m_detectorTags = value; }
106 inline void SetDetectorTags(Aws::Vector<Aws::String>&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags = std::move(value); }
108 inline CodeVulnerabilityDetails& WithDetectorTags(Aws::Vector<Aws::String>&& value) { SetDetectorTags(std::move(value)); return *this;}
109 inline CodeVulnerabilityDetails& AddDetectorTags(const Aws::String& value) { m_detectorTagsHasBeenSet = true; m_detectorTags.push_back(value); return *this; }
110 inline CodeVulnerabilityDetails& AddDetectorTags(Aws::String&& value) { m_detectorTagsHasBeenSet = true; m_detectorTags.push_back(std::move(value)); return *this; }
111 inline CodeVulnerabilityDetails& AddDetectorTags(const char* value) { m_detectorTagsHasBeenSet = true; m_detectorTags.push_back(value); return *this; }
113
115
119 inline const CodeFilePath& GetFilePath() const{ return m_filePath; }
120 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
121 inline void SetFilePath(const CodeFilePath& value) { m_filePathHasBeenSet = true; m_filePath = value; }
122 inline void SetFilePath(CodeFilePath&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
123 inline CodeVulnerabilityDetails& WithFilePath(const CodeFilePath& value) { SetFilePath(value); return *this;}
124 inline CodeVulnerabilityDetails& WithFilePath(CodeFilePath&& value) { SetFilePath(std::move(value)); return *this;}
126
128
132 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const{ return m_referenceUrls; }
133 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
134 inline void SetReferenceUrls(const Aws::Vector<Aws::String>& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; }
135 inline void SetReferenceUrls(Aws::Vector<Aws::String>&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); }
137 inline CodeVulnerabilityDetails& WithReferenceUrls(Aws::Vector<Aws::String>&& value) { SetReferenceUrls(std::move(value)); return *this;}
138 inline CodeVulnerabilityDetails& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
139 inline CodeVulnerabilityDetails& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; }
140 inline CodeVulnerabilityDetails& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
142
144
147 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
148 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
149 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
150 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
151 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
152 inline CodeVulnerabilityDetails& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
153 inline CodeVulnerabilityDetails& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
154 inline CodeVulnerabilityDetails& WithRuleId(const char* value) { SetRuleId(value); return *this;}
156
158
162 inline const Aws::String& GetSourceLambdaLayerArn() const{ return m_sourceLambdaLayerArn; }
163 inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; }
164 inline void SetSourceLambdaLayerArn(const Aws::String& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = value; }
165 inline void SetSourceLambdaLayerArn(Aws::String&& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = std::move(value); }
166 inline void SetSourceLambdaLayerArn(const char* value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn.assign(value); }
169 inline CodeVulnerabilityDetails& WithSourceLambdaLayerArn(const char* value) { SetSourceLambdaLayerArn(value); return *this;}
171 private:
172
174 bool m_cwesHasBeenSet = false;
175
176 Aws::String m_detectorId;
177 bool m_detectorIdHasBeenSet = false;
178
179 Aws::String m_detectorName;
180 bool m_detectorNameHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_detectorTags;
183 bool m_detectorTagsHasBeenSet = false;
184
185 CodeFilePath m_filePath;
186 bool m_filePathHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_referenceUrls;
189 bool m_referenceUrlsHasBeenSet = false;
190
191 Aws::String m_ruleId;
192 bool m_ruleIdHasBeenSet = false;
193
194 Aws::String m_sourceLambdaLayerArn;
195 bool m_sourceLambdaLayerArnHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace Inspector2
200} // namespace Aws
void SetDetectorTags(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetCwes() const
CodeVulnerabilityDetails & AddReferenceUrls(const char *value)
void SetCwes(const Aws::Vector< Aws::String > &value)
CodeVulnerabilityDetails & WithCwes(const Aws::Vector< Aws::String > &value)
CodeVulnerabilityDetails & WithDetectorId(Aws::String &&value)
AWS_INSPECTOR2_API CodeVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API CodeVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
CodeVulnerabilityDetails & AddDetectorTags(const char *value)
void SetReferenceUrls(const Aws::Vector< Aws::String > &value)
CodeVulnerabilityDetails & WithDetectorTags(const Aws::Vector< Aws::String > &value)
CodeVulnerabilityDetails & WithCwes(Aws::Vector< Aws::String > &&value)
CodeVulnerabilityDetails & WithDetectorName(const Aws::String &value)
CodeVulnerabilityDetails & WithDetectorName(Aws::String &&value)
CodeVulnerabilityDetails & AddDetectorTags(Aws::String &&value)
CodeVulnerabilityDetails & WithFilePath(const CodeFilePath &value)
CodeVulnerabilityDetails & WithRuleId(const Aws::String &value)
CodeVulnerabilityDetails & WithDetectorName(const char *value)
CodeVulnerabilityDetails & AddCwes(const char *value)
CodeVulnerabilityDetails & WithDetectorId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
CodeVulnerabilityDetails & WithReferenceUrls(Aws::Vector< Aws::String > &&value)
CodeVulnerabilityDetails & WithDetectorTags(Aws::Vector< Aws::String > &&value)
CodeVulnerabilityDetails & WithReferenceUrls(const Aws::Vector< Aws::String > &value)
CodeVulnerabilityDetails & WithRuleId(Aws::String &&value)
CodeVulnerabilityDetails & AddReferenceUrls(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDetectorTags() const
void SetCwes(Aws::Vector< Aws::String > &&value)
void SetDetectorTags(const Aws::Vector< Aws::String > &value)
CodeVulnerabilityDetails & WithSourceLambdaLayerArn(const char *value)
CodeVulnerabilityDetails & WithSourceLambdaLayerArn(Aws::String &&value)
CodeVulnerabilityDetails & WithFilePath(CodeFilePath &&value)
CodeVulnerabilityDetails & AddDetectorTags(const Aws::String &value)
CodeVulnerabilityDetails & WithDetectorId(const char *value)
CodeVulnerabilityDetails & WithSourceLambdaLayerArn(const Aws::String &value)
CodeVulnerabilityDetails & AddReferenceUrls(Aws::String &&value)
CodeVulnerabilityDetails & AddCwes(Aws::String &&value)
void SetReferenceUrls(Aws::Vector< Aws::String > &&value)
CodeVulnerabilityDetails & AddCwes(const Aws::String &value)
CodeVulnerabilityDetails & WithRuleId(const char *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