AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CodeReviewSummary.h
Go to the documentation of this file.
1
6#pragma once
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CodeGuruReviewer
28{
29namespace Model
30{
31
39 {
40 public:
45
46
50 inline const Aws::String& GetName() const{ return m_name; }
51
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71
75 inline CodeReviewSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
76
80 inline CodeReviewSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81
85 inline CodeReviewSummary& WithName(const char* value) { SetName(value); return *this;}
86
87
93 inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
94
100 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
101
107 inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
108
114 inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
115
121 inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
122
128 inline CodeReviewSummary& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
129
135 inline CodeReviewSummary& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
136
142 inline CodeReviewSummary& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
143
144
148 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
149
153 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
154
158 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
159
163 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
164
168 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
169
173 inline CodeReviewSummary& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
174
178 inline CodeReviewSummary& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
179
183 inline CodeReviewSummary& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
184
185
193 inline const Aws::String& GetOwner() const{ return m_owner; }
194
202 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
203
211 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
212
220 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
221
229 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
230
238 inline CodeReviewSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
239
247 inline CodeReviewSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
248
256 inline CodeReviewSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
257
258
262 inline const ProviderType& GetProviderType() const{ return m_providerType; }
263
267 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
268
272 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
273
277 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
278
282 inline CodeReviewSummary& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
283
287 inline CodeReviewSummary& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
288
289
298 inline const JobState& GetState() const{ return m_state; }
299
308 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
309
318 inline void SetState(const JobState& value) { m_stateHasBeenSet = true; m_state = value; }
319
328 inline void SetState(JobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
329
338 inline CodeReviewSummary& WithState(const JobState& value) { SetState(value); return *this;}
339
348 inline CodeReviewSummary& WithState(JobState&& value) { SetState(std::move(value)); return *this;}
349
350
355 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
356
361 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
362
367 inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
368
373 inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
374
380
385 inline CodeReviewSummary& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
386
387
392 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
393
398 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
399
404 inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
405
410 inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
411
417
423
424
428 inline const Type& GetType() const{ return m_type; }
429
433 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
434
438 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
439
443 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
444
448 inline CodeReviewSummary& WithType(const Type& value) { SetType(value); return *this;}
449
453 inline CodeReviewSummary& WithType(Type&& value) { SetType(std::move(value)); return *this;}
454
455
459 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
460
464 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
465
469 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
470
474 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
475
479 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
480
484 inline CodeReviewSummary& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
485
489 inline CodeReviewSummary& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
490
494 inline CodeReviewSummary& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
495
496
500 inline const MetricsSummary& GetMetricsSummary() const{ return m_metricsSummary; }
501
505 inline bool MetricsSummaryHasBeenSet() const { return m_metricsSummaryHasBeenSet; }
506
510 inline void SetMetricsSummary(const MetricsSummary& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = value; }
511
515 inline void SetMetricsSummary(MetricsSummary&& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = std::move(value); }
516
520 inline CodeReviewSummary& WithMetricsSummary(const MetricsSummary& value) { SetMetricsSummary(value); return *this;}
521
525 inline CodeReviewSummary& WithMetricsSummary(MetricsSummary&& value) { SetMetricsSummary(std::move(value)); return *this;}
526
527
528
529 inline const SourceCodeType& GetSourceCodeType() const{ return m_sourceCodeType; }
530
531
532 inline bool SourceCodeTypeHasBeenSet() const { return m_sourceCodeTypeHasBeenSet; }
533
534
535 inline void SetSourceCodeType(const SourceCodeType& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = value; }
536
537
538 inline void SetSourceCodeType(SourceCodeType&& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = std::move(value); }
539
540
541 inline CodeReviewSummary& WithSourceCodeType(const SourceCodeType& value) { SetSourceCodeType(value); return *this;}
542
543
544 inline CodeReviewSummary& WithSourceCodeType(SourceCodeType&& value) { SetSourceCodeType(std::move(value)); return *this;}
545
546 private:
547
548 Aws::String m_name;
549 bool m_nameHasBeenSet = false;
550
551 Aws::String m_codeReviewArn;
552 bool m_codeReviewArnHasBeenSet = false;
553
554 Aws::String m_repositoryName;
555 bool m_repositoryNameHasBeenSet = false;
556
557 Aws::String m_owner;
558 bool m_ownerHasBeenSet = false;
559
560 ProviderType m_providerType;
561 bool m_providerTypeHasBeenSet = false;
562
563 JobState m_state;
564 bool m_stateHasBeenSet = false;
565
566 Aws::Utils::DateTime m_createdTimeStamp;
567 bool m_createdTimeStampHasBeenSet = false;
568
569 Aws::Utils::DateTime m_lastUpdatedTimeStamp;
570 bool m_lastUpdatedTimeStampHasBeenSet = false;
571
572 Type m_type;
573 bool m_typeHasBeenSet = false;
574
575 Aws::String m_pullRequestId;
576 bool m_pullRequestIdHasBeenSet = false;
577
578 MetricsSummary m_metricsSummary;
579 bool m_metricsSummaryHasBeenSet = false;
580
581 SourceCodeType m_sourceCodeType;
582 bool m_sourceCodeTypeHasBeenSet = false;
583 };
584
585} // namespace Model
586} // namespace CodeGuruReviewer
587} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
CodeReviewSummary & WithCodeReviewArn(const char *value)
CodeReviewSummary & WithOwner(const char *value)
const SourceCodeType & GetSourceCodeType() const
CodeReviewSummary & WithRepositoryName(Aws::String &&value)
void SetSourceCodeType(const SourceCodeType &value)
CodeReviewSummary & WithRepositoryName(const char *value)
void SetCodeReviewArn(const Aws::String &value)
AWS_CODEGURUREVIEWER_API CodeReviewSummary()
void SetRepositoryName(const Aws::String &value)
void SetCreatedTimeStamp(const Aws::Utils::DateTime &value)
CodeReviewSummary & WithMetricsSummary(MetricsSummary &&value)
CodeReviewSummary & WithPullRequestId(const Aws::String &value)
CodeReviewSummary & WithType(Type &&value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
CodeReviewSummary & WithSourceCodeType(const SourceCodeType &value)
AWS_CODEGURUREVIEWER_API CodeReviewSummary(Aws::Utils::Json::JsonView jsonValue)
CodeReviewSummary & WithCodeReviewArn(const Aws::String &value)
CodeReviewSummary & WithProviderType(ProviderType &&value)
const Aws::Utils::DateTime & GetCreatedTimeStamp() const
CodeReviewSummary & WithLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
CodeReviewSummary & WithProviderType(const ProviderType &value)
void SetMetricsSummary(const MetricsSummary &value)
CodeReviewSummary & WithName(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedTimeStamp() const
CodeReviewSummary & WithState(const JobState &value)
CodeReviewSummary & WithCreatedTimeStamp(const Aws::Utils::DateTime &value)
CodeReviewSummary & WithName(const char *value)
void SetCreatedTimeStamp(Aws::Utils::DateTime &&value)
CodeReviewSummary & WithLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
CodeReviewSummary & WithCreatedTimeStamp(Aws::Utils::DateTime &&value)
const MetricsSummary & GetMetricsSummary() const
AWS_CODEGURUREVIEWER_API CodeReviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeReviewSummary & WithSourceCodeType(SourceCodeType &&value)
void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime &value)
CodeReviewSummary & WithOwner(Aws::String &&value)
CodeReviewSummary & WithRepositoryName(const Aws::String &value)
void SetProviderType(const ProviderType &value)
CodeReviewSummary & WithName(Aws::String &&value)
CodeReviewSummary & WithState(JobState &&value)
CodeReviewSummary & WithOwner(const Aws::String &value)
void SetLastUpdatedTimeStamp(Aws::Utils::DateTime &&value)
CodeReviewSummary & WithPullRequestId(Aws::String &&value)
CodeReviewSummary & WithType(const Type &value)
void SetPullRequestId(const Aws::String &value)
CodeReviewSummary & WithCodeReviewArn(Aws::String &&value)
CodeReviewSummary & WithMetricsSummary(const MetricsSummary &value)
CodeReviewSummary & WithPullRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String