AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeReview.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/ProviderType.h>
10#include <aws/codeguru-reviewer/model/JobState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/codeguru-reviewer/model/Type.h>
13#include <aws/codeguru-reviewer/model/SourceCodeType.h>
14#include <aws/codeguru-reviewer/model/Metrics.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/codeguru-reviewer/model/ConfigFileState.h>
17#include <aws/codeguru-reviewer/model/AnalysisType.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace CodeGuruReviewer
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_CODEGURUREVIEWER_API CodeReview() = default;
45 AWS_CODEGURUREVIEWER_API CodeReview(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CODEGURUREVIEWER_API CodeReview& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CodeReview& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
68 inline const Aws::String& GetCodeReviewArn() const { return m_codeReviewArn; }
69 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
70 template<typename CodeReviewArnT = Aws::String>
71 void SetCodeReviewArn(CodeReviewArnT&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::forward<CodeReviewArnT>(value); }
72 template<typename CodeReviewArnT = Aws::String>
73 CodeReview& WithCodeReviewArn(CodeReviewArnT&& value) { SetCodeReviewArn(std::forward<CodeReviewArnT>(value)); return *this;}
75
77
80 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
81 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
82 template<typename RepositoryNameT = Aws::String>
83 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
84 template<typename RepositoryNameT = Aws::String>
85 CodeReview& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
87
89
96 inline const Aws::String& GetOwner() const { return m_owner; }
97 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
98 template<typename OwnerT = Aws::String>
99 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
100 template<typename OwnerT = Aws::String>
101 CodeReview& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
103
105
109 inline ProviderType GetProviderType() const { return m_providerType; }
110 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
111 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
112 inline CodeReview& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
114
116
123 inline JobState GetState() const { return m_state; }
124 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
125 inline void SetState(JobState value) { m_stateHasBeenSet = true; m_state = value; }
126 inline CodeReview& WithState(JobState value) { SetState(value); return *this;}
128
130
133 inline const Aws::String& GetStateReason() const { return m_stateReason; }
134 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
135 template<typename StateReasonT = Aws::String>
136 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
137 template<typename StateReasonT = Aws::String>
138 CodeReview& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
140
142
146 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const { return m_createdTimeStamp; }
147 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
148 template<typename CreatedTimeStampT = Aws::Utils::DateTime>
149 void SetCreatedTimeStamp(CreatedTimeStampT&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::forward<CreatedTimeStampT>(value); }
150 template<typename CreatedTimeStampT = Aws::Utils::DateTime>
151 CodeReview& WithCreatedTimeStamp(CreatedTimeStampT&& value) { SetCreatedTimeStamp(std::forward<CreatedTimeStampT>(value)); return *this;}
153
155
159 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
160 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
161 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
162 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value); }
163 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
164 CodeReview& WithLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value)); return *this;}
166
168
171 inline Type GetType() const { return m_type; }
172 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
173 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
174 inline CodeReview& WithType(Type value) { SetType(value); return *this;}
176
178
181 inline const Aws::String& GetPullRequestId() const { return m_pullRequestId; }
182 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
183 template<typename PullRequestIdT = Aws::String>
184 void SetPullRequestId(PullRequestIdT&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::forward<PullRequestIdT>(value); }
185 template<typename PullRequestIdT = Aws::String>
186 CodeReview& WithPullRequestId(PullRequestIdT&& value) { SetPullRequestId(std::forward<PullRequestIdT>(value)); return *this;}
188
190
193 inline const SourceCodeType& GetSourceCodeType() const { return m_sourceCodeType; }
194 inline bool SourceCodeTypeHasBeenSet() const { return m_sourceCodeTypeHasBeenSet; }
195 template<typename SourceCodeTypeT = SourceCodeType>
196 void SetSourceCodeType(SourceCodeTypeT&& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = std::forward<SourceCodeTypeT>(value); }
197 template<typename SourceCodeTypeT = SourceCodeType>
198 CodeReview& WithSourceCodeType(SourceCodeTypeT&& value) { SetSourceCodeType(std::forward<SourceCodeTypeT>(value)); return *this;}
200
202
209 inline const Aws::String& GetAssociationArn() const { return m_associationArn; }
210 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
211 template<typename AssociationArnT = Aws::String>
212 void SetAssociationArn(AssociationArnT&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::forward<AssociationArnT>(value); }
213 template<typename AssociationArnT = Aws::String>
214 CodeReview& WithAssociationArn(AssociationArnT&& value) { SetAssociationArn(std::forward<AssociationArnT>(value)); return *this;}
216
218
221 inline const Metrics& GetMetrics() const { return m_metrics; }
222 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
223 template<typename MetricsT = Metrics>
224 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
225 template<typename MetricsT = Metrics>
226 CodeReview& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
228
230
235 inline const Aws::Vector<AnalysisType>& GetAnalysisTypes() const { return m_analysisTypes; }
236 inline bool AnalysisTypesHasBeenSet() const { return m_analysisTypesHasBeenSet; }
237 template<typename AnalysisTypesT = Aws::Vector<AnalysisType>>
238 void SetAnalysisTypes(AnalysisTypesT&& value) { m_analysisTypesHasBeenSet = true; m_analysisTypes = std::forward<AnalysisTypesT>(value); }
239 template<typename AnalysisTypesT = Aws::Vector<AnalysisType>>
240 CodeReview& WithAnalysisTypes(AnalysisTypesT&& value) { SetAnalysisTypes(std::forward<AnalysisTypesT>(value)); return *this;}
241 inline CodeReview& AddAnalysisTypes(AnalysisType value) { m_analysisTypesHasBeenSet = true; m_analysisTypes.push_back(value); return *this; }
243
245
251 inline ConfigFileState GetConfigFileState() const { return m_configFileState; }
252 inline bool ConfigFileStateHasBeenSet() const { return m_configFileStateHasBeenSet; }
253 inline void SetConfigFileState(ConfigFileState value) { m_configFileStateHasBeenSet = true; m_configFileState = value; }
254 inline CodeReview& WithConfigFileState(ConfigFileState value) { SetConfigFileState(value); return *this;}
256 private:
257
258 Aws::String m_name;
259 bool m_nameHasBeenSet = false;
260
261 Aws::String m_codeReviewArn;
262 bool m_codeReviewArnHasBeenSet = false;
263
264 Aws::String m_repositoryName;
265 bool m_repositoryNameHasBeenSet = false;
266
267 Aws::String m_owner;
268 bool m_ownerHasBeenSet = false;
269
270 ProviderType m_providerType{ProviderType::NOT_SET};
271 bool m_providerTypeHasBeenSet = false;
272
274 bool m_stateHasBeenSet = false;
275
276 Aws::String m_stateReason;
277 bool m_stateReasonHasBeenSet = false;
278
279 Aws::Utils::DateTime m_createdTimeStamp{};
280 bool m_createdTimeStampHasBeenSet = false;
281
282 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
283 bool m_lastUpdatedTimeStampHasBeenSet = false;
284
285 Type m_type{Type::NOT_SET};
286 bool m_typeHasBeenSet = false;
287
288 Aws::String m_pullRequestId;
289 bool m_pullRequestIdHasBeenSet = false;
290
291 SourceCodeType m_sourceCodeType;
292 bool m_sourceCodeTypeHasBeenSet = false;
293
294 Aws::String m_associationArn;
295 bool m_associationArnHasBeenSet = false;
296
297 Metrics m_metrics;
298 bool m_metricsHasBeenSet = false;
299
300 Aws::Vector<AnalysisType> m_analysisTypes;
301 bool m_analysisTypesHasBeenSet = false;
302
303 ConfigFileState m_configFileState{ConfigFileState::NOT_SET};
304 bool m_configFileStateHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace CodeGuruReviewer
309} // namespace Aws
CodeReview & WithName(NameT &&value)
Definition CodeReview.h:59
CodeReview & WithProviderType(ProviderType value)
Definition CodeReview.h:112
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceCodeType(SourceCodeTypeT &&value)
Definition CodeReview.h:196
CodeReview & AddAnalysisTypes(AnalysisType value)
Definition CodeReview.h:241
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
Definition CodeReview.h:159
void SetProviderType(ProviderType value)
Definition CodeReview.h:111
CodeReview & WithType(Type value)
Definition CodeReview.h:174
AWS_CODEGURUREVIEWER_API CodeReview()=default
const Aws::String & GetPullRequestId() const
Definition CodeReview.h:181
void SetCreatedTimeStamp(CreatedTimeStampT &&value)
Definition CodeReview.h:149
CodeReview & WithSourceCodeType(SourceCodeTypeT &&value)
Definition CodeReview.h:198
void SetConfigFileState(ConfigFileState value)
Definition CodeReview.h:253
void SetAssociationArn(AssociationArnT &&value)
Definition CodeReview.h:212
void SetCodeReviewArn(CodeReviewArnT &&value)
Definition CodeReview.h:71
CodeReview & WithStateReason(StateReasonT &&value)
Definition CodeReview.h:138
const Aws::String & GetName() const
Definition CodeReview.h:54
CodeReview & WithPullRequestId(PullRequestIdT &&value)
Definition CodeReview.h:186
CodeReview & WithAssociationArn(AssociationArnT &&value)
Definition CodeReview.h:214
const Aws::String & GetRepositoryName() const
Definition CodeReview.h:80
const Aws::String & GetOwner() const
Definition CodeReview.h:96
CodeReview & WithLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
Definition CodeReview.h:164
AWS_CODEGURUREVIEWER_API CodeReview & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCodeReviewArn() const
Definition CodeReview.h:68
CodeReview & WithConfigFileState(ConfigFileState value)
Definition CodeReview.h:254
CodeReview & WithCodeReviewArn(CodeReviewArnT &&value)
Definition CodeReview.h:73
CodeReview & WithMetrics(MetricsT &&value)
Definition CodeReview.h:226
CodeReview & WithCreatedTimeStamp(CreatedTimeStampT &&value)
Definition CodeReview.h:151
CodeReview & WithRepositoryName(RepositoryNameT &&value)
Definition CodeReview.h:85
CodeReview & WithOwner(OwnerT &&value)
Definition CodeReview.h:101
void SetStateReason(StateReasonT &&value)
Definition CodeReview.h:136
const Aws::Vector< AnalysisType > & GetAnalysisTypes() const
Definition CodeReview.h:235
const Aws::String & GetAssociationArn() const
Definition CodeReview.h:209
void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
Definition CodeReview.h:162
ConfigFileState GetConfigFileState() const
Definition CodeReview.h:251
AWS_CODEGURUREVIEWER_API CodeReview(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTimeStamp() const
Definition CodeReview.h:146
void SetAnalysisTypes(AnalysisTypesT &&value)
Definition CodeReview.h:238
CodeReview & WithState(JobState value)
Definition CodeReview.h:126
const SourceCodeType & GetSourceCodeType() const
Definition CodeReview.h:193
CodeReview & WithAnalysisTypes(AnalysisTypesT &&value)
Definition CodeReview.h:240
const Aws::String & GetStateReason() const
Definition CodeReview.h:133
void SetRepositoryName(RepositoryNameT &&value)
Definition CodeReview.h:83
void SetPullRequestId(PullRequestIdT &&value)
Definition CodeReview.h:184
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue