AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RecommendationSummary.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruReviewer
25{
26namespace Model
27{
28
35 {
36 public:
41
42
46 inline const Aws::String& GetFilePath() const{ return m_filePath; }
47
51 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
52
56 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
57
61 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
62
66 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
67
71 inline RecommendationSummary& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
72
76 inline RecommendationSummary& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
77
81 inline RecommendationSummary& WithFilePath(const char* value) { SetFilePath(value); return *this;}
82
83
88 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
89
94 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
95
100 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
101
106 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
107
112 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
113
118 inline RecommendationSummary& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
119
124 inline RecommendationSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
125
130 inline RecommendationSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
131
132
137 inline int GetStartLine() const{ return m_startLine; }
138
143 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
144
149 inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
150
155 inline RecommendationSummary& WithStartLine(int value) { SetStartLine(value); return *this;}
156
157
163 inline int GetEndLine() const{ return m_endLine; }
164
170 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
171
177 inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; }
178
184 inline RecommendationSummary& WithEndLine(int value) { SetEndLine(value); return *this;}
185
186
191 inline const Aws::String& GetDescription() const{ return m_description; }
192
197 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
198
203 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
204
209 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
210
215 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
216
221 inline RecommendationSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
222
227 inline RecommendationSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
228
233 inline RecommendationSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
234
235
239 inline const RecommendationCategory& GetRecommendationCategory() const{ return m_recommendationCategory; }
240
244 inline bool RecommendationCategoryHasBeenSet() const { return m_recommendationCategoryHasBeenSet; }
245
249 inline void SetRecommendationCategory(const RecommendationCategory& value) { m_recommendationCategoryHasBeenSet = true; m_recommendationCategory = value; }
250
254 inline void SetRecommendationCategory(RecommendationCategory&& value) { m_recommendationCategoryHasBeenSet = true; m_recommendationCategory = std::move(value); }
255
260
265
266
273 inline const RuleMetadata& GetRuleMetadata() const{ return m_ruleMetadata; }
274
281 inline bool RuleMetadataHasBeenSet() const { return m_ruleMetadataHasBeenSet; }
282
289 inline void SetRuleMetadata(const RuleMetadata& value) { m_ruleMetadataHasBeenSet = true; m_ruleMetadata = value; }
290
297 inline void SetRuleMetadata(RuleMetadata&& value) { m_ruleMetadataHasBeenSet = true; m_ruleMetadata = std::move(value); }
298
305 inline RecommendationSummary& WithRuleMetadata(const RuleMetadata& value) { SetRuleMetadata(value); return *this;}
306
313 inline RecommendationSummary& WithRuleMetadata(RuleMetadata&& value) { SetRuleMetadata(std::move(value)); return *this;}
314
315
319 inline const Severity& GetSeverity() const{ return m_severity; }
320
324 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
325
329 inline void SetSeverity(const Severity& value) { m_severityHasBeenSet = true; m_severity = value; }
330
334 inline void SetSeverity(Severity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
335
339 inline RecommendationSummary& WithSeverity(const Severity& value) { SetSeverity(value); return *this;}
340
344 inline RecommendationSummary& WithSeverity(Severity&& value) { SetSeverity(std::move(value)); return *this;}
345
346 private:
347
348 Aws::String m_filePath;
349 bool m_filePathHasBeenSet = false;
350
351 Aws::String m_recommendationId;
352 bool m_recommendationIdHasBeenSet = false;
353
354 int m_startLine;
355 bool m_startLineHasBeenSet = false;
356
357 int m_endLine;
358 bool m_endLineHasBeenSet = false;
359
360 Aws::String m_description;
361 bool m_descriptionHasBeenSet = false;
362
363 RecommendationCategory m_recommendationCategory;
364 bool m_recommendationCategoryHasBeenSet = false;
365
366 RuleMetadata m_ruleMetadata;
367 bool m_ruleMetadataHasBeenSet = false;
368
369 Severity m_severity;
370 bool m_severityHasBeenSet = false;
371 };
372
373} // namespace Model
374} // namespace CodeGuruReviewer
375} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
RecommendationSummary & WithFilePath(const char *value)
RecommendationSummary & WithRecommendationCategory(const RecommendationCategory &value)
void SetRecommendationCategory(const RecommendationCategory &value)
RecommendationSummary & WithRecommendationId(const char *value)
RecommendationSummary & WithSeverity(Severity &&value)
RecommendationSummary & WithFilePath(Aws::String &&value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUREVIEWER_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue)
RecommendationSummary & WithRecommendationId(Aws::String &&value)
RecommendationSummary & WithDescription(const Aws::String &value)
RecommendationSummary & WithRecommendationId(const Aws::String &value)
RecommendationSummary & WithSeverity(const Severity &value)
RecommendationSummary & WithDescription(const char *value)
RecommendationSummary & WithRuleMetadata(RuleMetadata &&value)
const RecommendationCategory & GetRecommendationCategory() const
void SetRecommendationCategory(RecommendationCategory &&value)
RecommendationSummary & WithFilePath(const Aws::String &value)
AWS_CODEGURUREVIEWER_API RecommendationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationSummary & WithRecommendationCategory(RecommendationCategory &&value)
RecommendationSummary & WithDescription(Aws::String &&value)
RecommendationSummary & WithRuleMetadata(const RuleMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String