AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CodeReviewSummary.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/MetricsSummary.h>
14#include <aws/codeguru-reviewer/model/SourceCodeType.h>
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:
41 AWS_CODEGURUREVIEWER_API CodeReviewSummary();
42 AWS_CODEGURUREVIEWER_API CodeReviewSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEGURUREVIEWER_API CodeReviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline CodeReviewSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline CodeReviewSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline CodeReviewSummary& WithName(const char* value) { SetName(value); return *this;}
60
62
67 inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
68 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
69 inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
70 inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
71 inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
72 inline CodeReviewSummary& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
73 inline CodeReviewSummary& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
74 inline CodeReviewSummary& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
76
78
81 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
82 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
83 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
84 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
85 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
86 inline CodeReviewSummary& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
87 inline CodeReviewSummary& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
88 inline CodeReviewSummary& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
90
92
99 inline const Aws::String& GetOwner() const{ return m_owner; }
100 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
101 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
102 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
103 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
104 inline CodeReviewSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
105 inline CodeReviewSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
106 inline CodeReviewSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
108
110
113 inline const ProviderType& GetProviderType() const{ return m_providerType; }
114 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
115 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
116 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
117 inline CodeReviewSummary& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
118 inline CodeReviewSummary& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
120
122
130 inline const JobState& GetState() const{ return m_state; }
131 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
132 inline void SetState(const JobState& value) { m_stateHasBeenSet = true; m_state = value; }
133 inline void SetState(JobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
134 inline CodeReviewSummary& WithState(const JobState& value) { SetState(value); return *this;}
135 inline CodeReviewSummary& WithState(JobState&& value) { SetState(std::move(value)); return *this;}
137
139
143 inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
144 inline bool CreatedTimeStampHasBeenSet() const { return m_createdTimeStampHasBeenSet; }
145 inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = value; }
146 inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStampHasBeenSet = true; m_createdTimeStamp = std::move(value); }
148 inline CodeReviewSummary& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
150
152
156 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const{ return m_lastUpdatedTimeStamp; }
157 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
158 inline void SetLastUpdatedTimeStamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = value; }
159 inline void SetLastUpdatedTimeStamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::move(value); }
163
165
168 inline const Type& GetType() const{ return m_type; }
169 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
170 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
171 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
172 inline CodeReviewSummary& WithType(const Type& value) { SetType(value); return *this;}
173 inline CodeReviewSummary& WithType(Type&& value) { SetType(std::move(value)); return *this;}
175
177
180 inline const Aws::String& GetPullRequestId() const{ return m_pullRequestId; }
181 inline bool PullRequestIdHasBeenSet() const { return m_pullRequestIdHasBeenSet; }
182 inline void SetPullRequestId(const Aws::String& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = value; }
183 inline void SetPullRequestId(Aws::String&& value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId = std::move(value); }
184 inline void SetPullRequestId(const char* value) { m_pullRequestIdHasBeenSet = true; m_pullRequestId.assign(value); }
185 inline CodeReviewSummary& WithPullRequestId(const Aws::String& value) { SetPullRequestId(value); return *this;}
186 inline CodeReviewSummary& WithPullRequestId(Aws::String&& value) { SetPullRequestId(std::move(value)); return *this;}
187 inline CodeReviewSummary& WithPullRequestId(const char* value) { SetPullRequestId(value); return *this;}
189
191
194 inline const MetricsSummary& GetMetricsSummary() const{ return m_metricsSummary; }
195 inline bool MetricsSummaryHasBeenSet() const { return m_metricsSummaryHasBeenSet; }
196 inline void SetMetricsSummary(const MetricsSummary& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = value; }
197 inline void SetMetricsSummary(MetricsSummary&& value) { m_metricsSummaryHasBeenSet = true; m_metricsSummary = std::move(value); }
198 inline CodeReviewSummary& WithMetricsSummary(const MetricsSummary& value) { SetMetricsSummary(value); return *this;}
199 inline CodeReviewSummary& WithMetricsSummary(MetricsSummary&& value) { SetMetricsSummary(std::move(value)); return *this;}
201
203
204 inline const SourceCodeType& GetSourceCodeType() const{ return m_sourceCodeType; }
205 inline bool SourceCodeTypeHasBeenSet() const { return m_sourceCodeTypeHasBeenSet; }
206 inline void SetSourceCodeType(const SourceCodeType& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = value; }
207 inline void SetSourceCodeType(SourceCodeType&& value) { m_sourceCodeTypeHasBeenSet = true; m_sourceCodeType = std::move(value); }
208 inline CodeReviewSummary& WithSourceCodeType(const SourceCodeType& value) { SetSourceCodeType(value); return *this;}
209 inline CodeReviewSummary& WithSourceCodeType(SourceCodeType&& value) { SetSourceCodeType(std::move(value)); return *this;}
211 private:
212
213 Aws::String m_name;
214 bool m_nameHasBeenSet = false;
215
216 Aws::String m_codeReviewArn;
217 bool m_codeReviewArnHasBeenSet = false;
218
219 Aws::String m_repositoryName;
220 bool m_repositoryNameHasBeenSet = false;
221
222 Aws::String m_owner;
223 bool m_ownerHasBeenSet = false;
224
225 ProviderType m_providerType;
226 bool m_providerTypeHasBeenSet = false;
227
228 JobState m_state;
229 bool m_stateHasBeenSet = false;
230
231 Aws::Utils::DateTime m_createdTimeStamp;
232 bool m_createdTimeStampHasBeenSet = false;
233
234 Aws::Utils::DateTime m_lastUpdatedTimeStamp;
235 bool m_lastUpdatedTimeStampHasBeenSet = false;
236
237 Type m_type;
238 bool m_typeHasBeenSet = false;
239
240 Aws::String m_pullRequestId;
241 bool m_pullRequestIdHasBeenSet = false;
242
243 MetricsSummary m_metricsSummary;
244 bool m_metricsSummaryHasBeenSet = false;
245
246 SourceCodeType m_sourceCodeType;
247 bool m_sourceCodeTypeHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace CodeGuruReviewer
252} // namespace Aws
CodeReviewSummary & WithCodeReviewArn(const char *value)
CodeReviewSummary & WithOwner(const char *value)
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)
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)
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)
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
Aws::Utils::Json::JsonValue JsonValue