AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CodeReviewSummary.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/model/JobState.h>
9#include <aws/codeguru-reviewer/model/MetricsSummary.h>
10#include <aws/codeguru-reviewer/model/ProviderType.h>
11#include <aws/codeguru-reviewer/model/SourceCodeType.h>
12#include <aws/codeguru-reviewer/model/Type.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeGuruReviewer {
26namespace Model {
27
35 public:
36 AWS_CODEGURUREVIEWER_API CodeReviewSummary() = default;
37 AWS_CODEGURUREVIEWER_API CodeReviewSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUREVIEWER_API CodeReviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 CodeReviewSummary& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetCodeReviewArn() const { return m_codeReviewArn; }
66 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
67 template <typename CodeReviewArnT = Aws::String>
68 void SetCodeReviewArn(CodeReviewArnT&& value) {
69 m_codeReviewArnHasBeenSet = true;
70 m_codeReviewArn = std::forward<CodeReviewArnT>(value);
71 }
72 template <typename CodeReviewArnT = Aws::String>
73 CodeReviewSummary& WithCodeReviewArn(CodeReviewArnT&& value) {
74 SetCodeReviewArn(std::forward<CodeReviewArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
84 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
85 template <typename RepositoryNameT = Aws::String>
86 void SetRepositoryName(RepositoryNameT&& value) {
87 m_repositoryNameHasBeenSet = true;
88 m_repositoryName = std::forward<RepositoryNameT>(value);
89 }
90 template <typename RepositoryNameT = Aws::String>
91 CodeReviewSummary& WithRepositoryName(RepositoryNameT&& value) {
92 SetRepositoryName(std::forward<RepositoryNameT>(value));
93 return *this;
94 }
96
98
105 inline const Aws::String& GetOwner() const { return m_owner; }
106 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
107 template <typename OwnerT = Aws::String>
108 void SetOwner(OwnerT&& value) {
109 m_ownerHasBeenSet = true;
110 m_owner = std::forward<OwnerT>(value);
111 }
112 template <typename OwnerT = Aws::String>
113 CodeReviewSummary& WithOwner(OwnerT&& value) {
114 SetOwner(std::forward<OwnerT>(value));
115 return *this;
116 }
118
120
123 inline ProviderType GetProviderType() const { return m_providerType; }
124 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
125 inline void SetProviderType(ProviderType value) {
126 m_providerTypeHasBeenSet = true;
127 m_providerType = value;
128 }
130 SetProviderType(value);
131 return *this;
132 }
134
136
144 inline JobState GetState() const { return m_state; }
145 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
146 inline void SetState(JobState value) {
147 m_stateHasBeenSet = true;
148 m_state = value;
149 }
151 SetState(value);
152 return *this;
153 }
155
157
161 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const { return m_createdTimeStamp; }
162 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
163 template <typename CreatedTimeStampT = Aws::Utils::DateTime>
164 void SetCreatedTimeStamp(CreatedTimeStampT&& value) {
165 m_createdTimeStampHasBeenSet = true;
166 m_createdTimeStamp = std::forward<CreatedTimeStampT>(value);
167 }
168 template <typename CreatedTimeStampT = Aws::Utils::DateTime>
169 CodeReviewSummary& WithCreatedTimeStamp(CreatedTimeStampT&& value) {
170 SetCreatedTimeStamp(std::forward<CreatedTimeStampT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
181 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
182 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
183 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) {
184 m_lastUpdatedTimeStampHasBeenSet = true;
185 m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value);
186 }
187 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
188 CodeReviewSummary& WithLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) {
189 SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value));
190 return *this;
191 }
193
195
198 inline Type GetType() const { return m_type; }
199 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
200 inline void SetType(Type value) {
201 m_typeHasBeenSet = true;
202 m_type = value;
203 }
205 SetType(value);
206 return *this;
207 }
209
211
214 inline const Aws::String& GetPullRequestId() const { return m_pullRequestId; }
215 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
216 template <typename PullRequestIdT = Aws::String>
217 void SetPullRequestId(PullRequestIdT&& value) {
218 m_pullRequestIdHasBeenSet = true;
219 m_pullRequestId = std::forward<PullRequestIdT>(value);
220 }
221 template <typename PullRequestIdT = Aws::String>
222 CodeReviewSummary& WithPullRequestId(PullRequestIdT&& value) {
223 SetPullRequestId(std::forward<PullRequestIdT>(value));
224 return *this;
225 }
227
229
232 inline const MetricsSummary& GetMetricsSummary() const { return m_metricsSummary; }
233 inline bool MetricsSummaryHasBeenSet() const { return m_metricsSummaryHasBeenSet; }
234 template <typename MetricsSummaryT = MetricsSummary>
235 void SetMetricsSummary(MetricsSummaryT&& value) {
236 m_metricsSummaryHasBeenSet = true;
237 m_metricsSummary = std::forward<MetricsSummaryT>(value);
238 }
239 template <typename MetricsSummaryT = MetricsSummary>
240 CodeReviewSummary& WithMetricsSummary(MetricsSummaryT&& value) {
241 SetMetricsSummary(std::forward<MetricsSummaryT>(value));
242 return *this;
243 }
245
247
248 inline const SourceCodeType& GetSourceCodeType() const { return m_sourceCodeType; }
249 inline bool SourceCodeTypeHasBeenSet() const { return m_sourceCodeTypeHasBeenSet; }
250 template <typename SourceCodeTypeT = SourceCodeType>
251 void SetSourceCodeType(SourceCodeTypeT&& value) {
252 m_sourceCodeTypeHasBeenSet = true;
253 m_sourceCodeType = std::forward<SourceCodeTypeT>(value);
254 }
255 template <typename SourceCodeTypeT = SourceCodeType>
256 CodeReviewSummary& WithSourceCodeType(SourceCodeTypeT&& value) {
257 SetSourceCodeType(std::forward<SourceCodeTypeT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_name;
263
264 Aws::String m_codeReviewArn;
265
266 Aws::String m_repositoryName;
267
268 Aws::String m_owner;
269
270 ProviderType m_providerType{ProviderType::NOT_SET};
271
273
274 Aws::Utils::DateTime m_createdTimeStamp{};
275
276 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
277
278 Type m_type{Type::NOT_SET};
279
280 Aws::String m_pullRequestId;
281
282 MetricsSummary m_metricsSummary;
283
284 SourceCodeType m_sourceCodeType;
285 bool m_nameHasBeenSet = false;
286 bool m_codeReviewArnHasBeenSet = false;
287 bool m_repositoryNameHasBeenSet = false;
288 bool m_ownerHasBeenSet = false;
289 bool m_providerTypeHasBeenSet = false;
290 bool m_stateHasBeenSet = false;
291 bool m_createdTimeStampHasBeenSet = false;
292 bool m_lastUpdatedTimeStampHasBeenSet = false;
293 bool m_typeHasBeenSet = false;
294 bool m_pullRequestIdHasBeenSet = false;
295 bool m_metricsSummaryHasBeenSet = false;
296 bool m_sourceCodeTypeHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace CodeGuruReviewer
301} // namespace Aws
CodeReviewSummary & WithOwner(OwnerT &&value)
CodeReviewSummary & WithMetricsSummary(MetricsSummaryT &&value)
AWS_CODEGURUREVIEWER_API CodeReviewSummary()=default
CodeReviewSummary & WithPullRequestId(PullRequestIdT &&value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
CodeReviewSummary & WithSourceCodeType(SourceCodeTypeT &&value)
AWS_CODEGURUREVIEWER_API CodeReviewSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedTimeStamp(CreatedTimeStampT &&value)
CodeReviewSummary & WithProviderType(ProviderType value)
const Aws::Utils::DateTime & GetCreatedTimeStamp() const
CodeReviewSummary & WithName(NameT &&value)
CodeReviewSummary & WithState(JobState value)
CodeReviewSummary & WithLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
CodeReviewSummary & WithRepositoryName(RepositoryNameT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
CodeReviewSummary & WithCreatedTimeStamp(CreatedTimeStampT &&value)
void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
AWS_CODEGURUREVIEWER_API CodeReviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeReviewSummary & WithCodeReviewArn(CodeReviewArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue