AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationSummary.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeguru-reviewer/model/RecommendationCategory.h>
10#include <aws/codeguru-reviewer/model/RuleMetadata.h>
11#include <aws/codeguru-reviewer/model/Severity.h>
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:
37 AWS_CODEGURUREVIEWER_API RecommendationSummary();
38 AWS_CODEGURUREVIEWER_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUREVIEWER_API RecommendationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFilePath() const{ return m_filePath; }
48 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
49 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
50 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
51 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
52 inline RecommendationSummary& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
53 inline RecommendationSummary& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
54 inline RecommendationSummary& WithFilePath(const char* value) { SetFilePath(value); return *this;}
56
58
62 inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; }
63 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
64 inline void SetRecommendationId(const Aws::String& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = value; }
65 inline void SetRecommendationId(Aws::String&& value) { m_recommendationIdHasBeenSet = true; m_recommendationId = std::move(value); }
66 inline void SetRecommendationId(const char* value) { m_recommendationIdHasBeenSet = true; m_recommendationId.assign(value); }
67 inline RecommendationSummary& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;}
68 inline RecommendationSummary& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;}
69 inline RecommendationSummary& WithRecommendationId(const char* value) { SetRecommendationId(value); return *this;}
71
73
77 inline int GetStartLine() const{ return m_startLine; }
78 inline bool StartLineHasBeenSet() const { return m_startLineHasBeenSet; }
79 inline void SetStartLine(int value) { m_startLineHasBeenSet = true; m_startLine = value; }
80 inline RecommendationSummary& WithStartLine(int value) { SetStartLine(value); return *this;}
82
84
89 inline int GetEndLine() const{ return m_endLine; }
90 inline bool EndLineHasBeenSet() const { return m_endLineHasBeenSet; }
91 inline void SetEndLine(int value) { m_endLineHasBeenSet = true; m_endLine = value; }
92 inline RecommendationSummary& WithEndLine(int value) { SetEndLine(value); return *this;}
94
96
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline RecommendationSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline RecommendationSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline RecommendationSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
114 inline const RecommendationCategory& GetRecommendationCategory() const{ return m_recommendationCategory; }
115 inline bool RecommendationCategoryHasBeenSet() const { return m_recommendationCategoryHasBeenSet; }
116 inline void SetRecommendationCategory(const RecommendationCategory& value) { m_recommendationCategoryHasBeenSet = true; m_recommendationCategory = value; }
117 inline void SetRecommendationCategory(RecommendationCategory&& value) { m_recommendationCategoryHasBeenSet = true; m_recommendationCategory = std::move(value); }
121
123
129 inline const RuleMetadata& GetRuleMetadata() const{ return m_ruleMetadata; }
130 inline bool RuleMetadataHasBeenSet() const { return m_ruleMetadataHasBeenSet; }
131 inline void SetRuleMetadata(const RuleMetadata& value) { m_ruleMetadataHasBeenSet = true; m_ruleMetadata = value; }
132 inline void SetRuleMetadata(RuleMetadata&& value) { m_ruleMetadataHasBeenSet = true; m_ruleMetadata = std::move(value); }
133 inline RecommendationSummary& WithRuleMetadata(const RuleMetadata& value) { SetRuleMetadata(value); return *this;}
134 inline RecommendationSummary& WithRuleMetadata(RuleMetadata&& value) { SetRuleMetadata(std::move(value)); return *this;}
136
138
141 inline const Severity& GetSeverity() const{ return m_severity; }
142 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
143 inline void SetSeverity(const Severity& value) { m_severityHasBeenSet = true; m_severity = value; }
144 inline void SetSeverity(Severity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
145 inline RecommendationSummary& WithSeverity(const Severity& value) { SetSeverity(value); return *this;}
146 inline RecommendationSummary& WithSeverity(Severity&& value) { SetSeverity(std::move(value)); return *this;}
148 private:
149
150 Aws::String m_filePath;
151 bool m_filePathHasBeenSet = false;
152
153 Aws::String m_recommendationId;
154 bool m_recommendationIdHasBeenSet = false;
155
156 int m_startLine;
157 bool m_startLineHasBeenSet = false;
158
159 int m_endLine;
160 bool m_endLineHasBeenSet = false;
161
162 Aws::String m_description;
163 bool m_descriptionHasBeenSet = false;
164
165 RecommendationCategory m_recommendationCategory;
166 bool m_recommendationCategoryHasBeenSet = false;
167
168 RuleMetadata m_ruleMetadata;
169 bool m_ruleMetadataHasBeenSet = false;
170
171 Severity m_severity;
172 bool m_severityHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace CodeGuruReviewer
177} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue