AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline CodeReview& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline CodeReview& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline CodeReview& WithName(const char* value) { SetName(value); return *this;}
63
65
70 inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
71 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
72 inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
73 inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
74 inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
75 inline CodeReview& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
76 inline CodeReview& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
77 inline CodeReview& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
79
81
84 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
85 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
86 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
87 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
88 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
89 inline CodeReview& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
90 inline CodeReview& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
91 inline CodeReview& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
93
95
102 inline const Aws::String& GetOwner() const{ return m_owner; }
103 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
104 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
105 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
106 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
107 inline CodeReview& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
108 inline CodeReview& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
109 inline CodeReview& WithOwner(const char* value) { SetOwner(value); return *this;}
111
113
117 inline const ProviderType& GetProviderType() const{ return m_providerType; }
118 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
119 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
120 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
121 inline CodeReview& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
122 inline CodeReview& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
124
126
133 inline const JobState& GetState() const{ return m_state; }
134 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
135 inline void SetState(const JobState& value) { m_stateHasBeenSet = true; m_state = value; }
136 inline void SetState(JobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
137 inline CodeReview& WithState(const JobState& value) { SetState(value); return *this;}
138 inline CodeReview& WithState(JobState&& value) { SetState(std::move(value)); return *this;}
140
142
145 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
146 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
147 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
148 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
149 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
150 inline CodeReview& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
151 inline CodeReview& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
152 inline CodeReview& WithStateReason(const char* value) { SetStateReason(value); return *this;}
154
156
160 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
161 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
162 inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
163 inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
164 inline CodeReview& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;}
165 inline CodeReview& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
167
169
173 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
174 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
175 inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
176 inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
178 inline CodeReview& WithLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimeStamp(std::move(value)); return *this;}
180
182
185 inline const Type& GetType() const{ return m_type; }
186 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
187 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
188 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
189 inline CodeReview& WithType(const Type& value) { SetType(value); return *this;}
190 inline CodeReview& WithType(Type&& value) { SetType(std::move(value)); return *this;}
192
194
197 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
198 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
199 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
200 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
201 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
202 inline CodeReview& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
203 inline CodeReview& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
204 inline CodeReview& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
206
208
211 inline const SourceCodeType& GetSourceCodeType() const{ return m_sourceCodeType; }
212 inline bool SourceCodeTypeHasBeenSet() const { return m_sourceCodeTypeHasBeenSet; }
213 inline void SetSourceCodeType(const SourceCodeType& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = value; }
214 inline void SetSourceCodeType(SourceCodeType&& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = std::move(value); }
215 inline CodeReview& WithSourceCodeType(const SourceCodeType& value) { SetSourceCodeType(value); return *this;}
216 inline CodeReview& WithSourceCodeType(SourceCodeType&& value) { SetSourceCodeType(std::move(value)); return *this;}
218
220
227 inline const Aws::String& GetAssociationArn() const{ return m_associationArn; }
228 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
229 inline void SetAssociationArn(const Aws::String& value) { m_associationArnHasBeenSet = true; m_associationArn = value; }
230 inline void SetAssociationArn(Aws::String&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::move(value); }
231 inline void SetAssociationArn(const char* value) { m_associationArnHasBeenSet = true; m_associationArn.assign(value); }
232 inline CodeReview& WithAssociationArn(const Aws::String& value) { SetAssociationArn(value); return *this;}
233 inline CodeReview& WithAssociationArn(Aws::String&& value) { SetAssociationArn(std::move(value)); return *this;}
234 inline CodeReview& WithAssociationArn(const char* value) { SetAssociationArn(value); return *this;}
236
238
241 inline const Metrics& GetMetrics() const{ return m_metrics; }
242 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
243 inline void SetMetrics(const Metrics& value) { m_metricsHasBeenSet = true; m_metrics = value; }
244 inline void SetMetrics(Metrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
245 inline CodeReview& WithMetrics(const Metrics& value) { SetMetrics(value); return *this;}
246 inline CodeReview& WithMetrics(Metrics&& value) { SetMetrics(std::move(value)); return *this;}
248
250
255 inline const Aws::Vector<AnalysisType>& GetAnalysisTypes() const{ return m_analysisTypes; }
256 inline bool AnalysisTypesHasBeenSet() const { return m_analysisTypesHasBeenSet; }
257 inline void SetAnalysisTypes(const Aws::Vector<AnalysisType>& value) { m_analysisTypesHasBeenSet = true; m_analysisTypes = value; }
258 inline void SetAnalysisTypes(Aws::Vector<AnalysisType>&& value) { m_analysisTypesHasBeenSet = true; m_analysisTypes = std::move(value); }
259 inline CodeReview& WithAnalysisTypes(const Aws::Vector<AnalysisType>& value) { SetAnalysisTypes(value); return *this;}
260 inline CodeReview& WithAnalysisTypes(Aws::Vector<AnalysisType>&& value) { SetAnalysisTypes(std::move(value)); return *this;}
261 inline CodeReview& AddAnalysisTypes(const AnalysisType& value) { m_analysisTypesHasBeenSet = true; m_analysisTypes.push_back(value); return *this; }
262 inline CodeReview& AddAnalysisTypes(AnalysisType&& value) { m_analysisTypesHasBeenSet = true; m_analysisTypes.push_back(std::move(value)); return *this; }
264
266
272 inline const ConfigFileState& GetConfigFileState() const{ return m_configFileState; }
273 inline bool ConfigFileStateHasBeenSet() const { return m_configFileStateHasBeenSet; }
274 inline void SetConfigFileState(const ConfigFileState& value) { m_configFileStateHasBeenSet = true; m_configFileState = value; }
275 inline void SetConfigFileState(ConfigFileState&& value) { m_configFileStateHasBeenSet = true; m_configFileState = std::move(value); }
276 inline CodeReview& WithConfigFileState(const ConfigFileState& value) { SetConfigFileState(value); return *this;}
277 inline CodeReview& WithConfigFileState(ConfigFileState&& value) { SetConfigFileState(std::move(value)); return *this;}
279 private:
280
281 Aws::String m_name;
282 bool m_nameHasBeenSet = false;
283
284 Aws::String m_codeReviewArn;
285 bool m_codeReviewArnHasBeenSet = false;
286
287 Aws::String m_repositoryName;
288 bool m_repositoryNameHasBeenSet = false;
289
290 Aws::String m_owner;
291 bool m_ownerHasBeenSet = false;
292
293 ProviderType m_providerType;
294 bool m_providerTypeHasBeenSet = false;
295
296 JobState m_state;
297 bool m_stateHasBeenSet = false;
298
299 Aws::String m_stateReason;
300 bool m_stateReasonHasBeenSet = false;
301
302 Aws::Utils::DateTime m_createdTimeStamp;
303 bool m_createdTimeStampHasBeenSet = false;
304
305 Aws::Utils::DateTime m_lastUpdatedTimeStamp;
306 bool m_lastUpdatedTimeStampHasBeenSet = false;
307
308 Type m_type;
309 bool m_typeHasBeenSet = false;
310
311 Aws::String m_pullRequestId;
312 bool m_pullRequestIdHasBeenSet = false;
313
314 SourceCodeType m_sourceCodeType;
315 bool m_sourceCodeTypeHasBeenSet = false;
316
317 Aws::String m_associationArn;
318 bool m_associationArnHasBeenSet = false;
319
320 Metrics m_metrics;
321 bool m_metricsHasBeenSet = false;
322
323 Aws::Vector<AnalysisType> m_analysisTypes;
324 bool m_analysisTypesHasBeenSet = false;
325
326 ConfigFileState m_configFileState;
327 bool m_configFileStateHasBeenSet = false;
328 };
329
330} // namespace Model
331} // namespace CodeGuruReviewer
332} // namespace Aws
void SetAnalysisTypes(const Aws::Vector< AnalysisType > &value)
Definition CodeReview.h:257
void SetPullRequestId(const char *value)
Definition CodeReview.h:201
CodeReview & WithCreatedTimeStamp(Aws::Utils::DateTime &&value)
Definition CodeReview.h:165
CodeReview & WithAssociationArn(Aws::String &&value)
Definition CodeReview.h:233
void SetAnalysisTypes(Aws::Vector< AnalysisType > &&value)
Definition CodeReview.h:258
CodeReview & WithType(const Type &value)
Definition CodeReview.h:189
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
CodeReview & WithRepositoryName(const Aws::String &value)
Definition CodeReview.h:89
CodeReview & WithAnalysisTypes(const Aws::Vector< AnalysisType > &value)
Definition CodeReview.h:259
void SetStateReason(Aws::String &&value)
Definition CodeReview.h:148
void SetConfigFileState(ConfigFileState &&value)
Definition CodeReview.h:275
CodeReview & WithProviderType(const ProviderType &value)
Definition CodeReview.h:121
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
Definition CodeReview.h:173
void SetOwner(Aws::String &&value)
Definition CodeReview.h:105
CodeReview & WithCodeReviewArn(const Aws::String &value)
Definition CodeReview.h:75
const ConfigFileState & GetConfigFileState() const
Definition CodeReview.h:272
CodeReview & WithMetrics(Metrics &&value)
Definition CodeReview.h:246
CodeReview & WithLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
Definition CodeReview.h:178
void SetName(const Aws::String &value)
Definition CodeReview.h:56
CodeReview & AddAnalysisTypes(const AnalysisType &value)
Definition CodeReview.h:261
CodeReview & WithPullRequestId(const char *value)
Definition CodeReview.h:204
void SetRepositoryName(Aws::String &&value)
Definition CodeReview.h:87
CodeReview & WithCodeReviewArn(const char *value)
Definition CodeReview.h:77
const Aws::String & GetPullRequestId() const
Definition CodeReview.h:197
void SetPullRequestId(Aws::String &&value)
Definition CodeReview.h:200
const ProviderType & GetProviderType() const
Definition CodeReview.h:117
void SetCodeReviewArn(Aws::String &&value)
Definition CodeReview.h:73
CodeReview & WithRepositoryName(const char *value)
Definition CodeReview.h:91
void SetAssociationArn(const Aws::String &value)
Definition CodeReview.h:229
void SetPullRequestId(const Aws::String &value)
Definition CodeReview.h:199
CodeReview & WithConfigFileState(const ConfigFileState &value)
Definition CodeReview.h:276
void SetConfigFileState(const ConfigFileState &value)
Definition CodeReview.h:274
CodeReview & WithCodeReviewArn(Aws::String &&value)
Definition CodeReview.h:76
void SetAssociationArn(Aws::String &&value)
Definition CodeReview.h:230
void SetAssociationArn(const char *value)
Definition CodeReview.h:231
void SetCodeReviewArn(const Aws::String &value)
Definition CodeReview.h:72
CodeReview & WithRepositoryName(Aws::String &&value)
Definition CodeReview.h:90
void SetSourceCodeType(SourceCodeType &&value)
Definition CodeReview.h:214
CodeReview & WithLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
Definition CodeReview.h:177
CodeReview & WithSourceCodeType(SourceCodeType &&value)
Definition CodeReview.h:216
void SetOwner(const Aws::String &value)
Definition CodeReview.h:104
void SetSourceCodeType(const SourceCodeType &value)
Definition CodeReview.h:213
CodeReview & WithPullRequestId(const Aws::String &value)
Definition CodeReview.h:202
AWS_CODEGURUREVIEWER_API CodeReview()
const JobState & GetState() const
Definition CodeReview.h:133
void SetStateReason(const Aws::String &value)
Definition CodeReview.h:147
CodeReview & WithPullRequestId(Aws::String &&value)
Definition CodeReview.h:203
void SetCodeReviewArn(const char *value)
Definition CodeReview.h:74
const Aws::String & GetName() const
Definition CodeReview.h:54
void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
Definition CodeReview.h:175
void SetName(Aws::String &&value)
Definition CodeReview.h:57
void SetMetrics(const Metrics &value)
Definition CodeReview.h:243
CodeReview & WithStateReason(const Aws::String &value)
Definition CodeReview.h:150
void SetStateReason(const char *value)
Definition CodeReview.h:149
void SetRepositoryName(const Aws::String &value)
Definition CodeReview.h:86
const Aws::String & GetRepositoryName() const
Definition CodeReview.h:84
CodeReview & WithCreatedTimeStamp(const Aws::Utils::DateTime &value)
Definition CodeReview.h:164
const Aws::String & GetOwner() const
Definition CodeReview.h:102
CodeReview & WithAssociationArn(const Aws::String &value)
Definition CodeReview.h:232
CodeReview & WithConfigFileState(ConfigFileState &&value)
Definition CodeReview.h:277
CodeReview & WithState(JobState &&value)
Definition CodeReview.h:138
AWS_CODEGURUREVIEWER_API CodeReview & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeReview & WithName(const char *value)
Definition CodeReview.h:61
void SetCreatedTimeStamp(Aws::Utils::DateTime &&value)
Definition CodeReview.h:163
const Aws::String & GetCodeReviewArn() const
Definition CodeReview.h:70
CodeReview & WithName(const Aws::String &value)
Definition CodeReview.h:59
CodeReview & WithStateReason(Aws::String &&value)
Definition CodeReview.h:151
CodeReview & WithMetrics(const Metrics &value)
Definition CodeReview.h:245
CodeReview & WithOwner(const char *value)
Definition CodeReview.h:109
CodeReview & WithState(const JobState &value)
Definition CodeReview.h:137
CodeReview & WithOwner(const Aws::String &value)
Definition CodeReview.h:107
CodeReview & WithAnalysisTypes(Aws::Vector< AnalysisType > &&value)
Definition CodeReview.h:260
CodeReview & AddAnalysisTypes(AnalysisType &&value)
Definition CodeReview.h:262
CodeReview & WithOwner(Aws::String &&value)
Definition CodeReview.h:108
void SetState(const JobState &value)
Definition CodeReview.h:135
CodeReview & WithType(Type &&value)
Definition CodeReview.h:190
CodeReview & WithStateReason(const char *value)
Definition CodeReview.h:152
void SetProviderType(ProviderType &&value)
Definition CodeReview.h:120
const Aws::Vector< AnalysisType > & GetAnalysisTypes() const
Definition CodeReview.h:255
CodeReview & WithSourceCodeType(const SourceCodeType &value)
Definition CodeReview.h:215
const Aws::String & GetAssociationArn() const
Definition CodeReview.h:227
AWS_CODEGURUREVIEWER_API CodeReview(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTimeStamp() const
Definition CodeReview.h:160
void SetCreatedTimeStamp(const Aws::Utils::DateTime &value)
Definition CodeReview.h:162
CodeReview & WithProviderType(ProviderType &&value)
Definition CodeReview.h:122
CodeReview & WithAssociationArn(const char *value)
Definition CodeReview.h:234
const SourceCodeType & GetSourceCodeType() const
Definition CodeReview.h:211
void SetProviderType(const ProviderType &value)
Definition CodeReview.h:119
void SetRepositoryName(const char *value)
Definition CodeReview.h:88
const Aws::String & GetStateReason() const
Definition CodeReview.h:145
CodeReview & WithName(Aws::String &&value)
Definition CodeReview.h:60
void SetLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
Definition CodeReview.h:176
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue