AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Report.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/CodeCoverageReportSummary.h>
9#include <aws/codebuild/model/ReportExportConfig.h>
10#include <aws/codebuild/model/ReportStatusType.h>
11#include <aws/codebuild/model/ReportType.h>
12#include <aws/codebuild/model/TestReportSummary.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 CodeBuild {
26namespace Model {
27
37class Report {
38 public:
39 AWS_CODEBUILD_API Report() = default;
40 AWS_CODEBUILD_API Report(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API Report& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template <typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) {
52 m_arnHasBeenSet = true;
53 m_arn = std::forward<ArnT>(value);
54 }
55 template <typename ArnT = Aws::String>
56 Report& WithArn(ArnT&& value) {
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
68 inline ReportType GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 inline void SetType(ReportType value) {
71 m_typeHasBeenSet = true;
72 m_type = value;
73 }
74 inline Report& WithType(ReportType value) {
75 SetType(value);
76 return *this;
77 }
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template <typename NameT = Aws::String>
87 void SetName(NameT&& value) {
88 m_nameHasBeenSet = true;
89 m_name = std::forward<NameT>(value);
90 }
91 template <typename NameT = Aws::String>
92 Report& WithName(NameT&& value) {
93 SetName(std::forward<NameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetReportGroupArn() const { return m_reportGroupArn; }
103 inline bool ReportGroupArnHasBeenSet() const { return m_reportGroupArnHasBeenSet; }
104 template <typename ReportGroupArnT = Aws::String>
105 void SetReportGroupArn(ReportGroupArnT&& value) {
106 m_reportGroupArnHasBeenSet = true;
107 m_reportGroupArn = std::forward<ReportGroupArnT>(value);
108 }
109 template <typename ReportGroupArnT = Aws::String>
110 Report& WithReportGroupArn(ReportGroupArnT&& value) {
111 SetReportGroupArn(std::forward<ReportGroupArnT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetExecutionId() const { return m_executionId; }
121 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
122 template <typename ExecutionIdT = Aws::String>
123 void SetExecutionId(ExecutionIdT&& value) {
124 m_executionIdHasBeenSet = true;
125 m_executionId = std::forward<ExecutionIdT>(value);
126 }
127 template <typename ExecutionIdT = Aws::String>
128 Report& WithExecutionId(ExecutionIdT&& value) {
129 SetExecutionId(std::forward<ExecutionIdT>(value));
130 return *this;
131 }
133
135
138 inline ReportStatusType GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(ReportStatusType value) {
141 m_statusHasBeenSet = true;
142 m_status = value;
143 }
145 SetStatus(value);
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
155 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
156 template <typename CreatedT = Aws::Utils::DateTime>
157 void SetCreated(CreatedT&& value) {
158 m_createdHasBeenSet = true;
159 m_created = std::forward<CreatedT>(value);
160 }
161 template <typename CreatedT = Aws::Utils::DateTime>
162 Report& WithCreated(CreatedT&& value) {
163 SetCreated(std::forward<CreatedT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Utils::DateTime& GetExpired() const { return m_expired; }
174 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
175 template <typename ExpiredT = Aws::Utils::DateTime>
176 void SetExpired(ExpiredT&& value) {
177 m_expiredHasBeenSet = true;
178 m_expired = std::forward<ExpiredT>(value);
179 }
180 template <typename ExpiredT = Aws::Utils::DateTime>
181 Report& WithExpired(ExpiredT&& value) {
182 SetExpired(std::forward<ExpiredT>(value));
183 return *this;
184 }
186
188
192 inline const ReportExportConfig& GetExportConfig() const { return m_exportConfig; }
193 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
194 template <typename ExportConfigT = ReportExportConfig>
195 void SetExportConfig(ExportConfigT&& value) {
196 m_exportConfigHasBeenSet = true;
197 m_exportConfig = std::forward<ExportConfigT>(value);
198 }
199 template <typename ExportConfigT = ReportExportConfig>
200 Report& WithExportConfig(ExportConfigT&& value) {
201 SetExportConfig(std::forward<ExportConfigT>(value));
202 return *this;
203 }
205
207
211 inline bool GetTruncated() const { return m_truncated; }
212 inline bool TruncatedHasBeenSet() const { return m_truncatedHasBeenSet; }
213 inline void SetTruncated(bool value) {
214 m_truncatedHasBeenSet = true;
215 m_truncated = value;
216 }
217 inline Report& WithTruncated(bool value) {
218 SetTruncated(value);
219 return *this;
220 }
222
224
228 inline const TestReportSummary& GetTestSummary() const { return m_testSummary; }
229 inline bool TestSummaryHasBeenSet() const { return m_testSummaryHasBeenSet; }
230 template <typename TestSummaryT = TestReportSummary>
231 void SetTestSummary(TestSummaryT&& value) {
232 m_testSummaryHasBeenSet = true;
233 m_testSummary = std::forward<TestSummaryT>(value);
234 }
235 template <typename TestSummaryT = TestReportSummary>
236 Report& WithTestSummary(TestSummaryT&& value) {
237 SetTestSummary(std::forward<TestSummaryT>(value));
238 return *this;
239 }
241
243
247 inline const CodeCoverageReportSummary& GetCodeCoverageSummary() const { return m_codeCoverageSummary; }
248 inline bool CodeCoverageSummaryHasBeenSet() const { return m_codeCoverageSummaryHasBeenSet; }
249 template <typename CodeCoverageSummaryT = CodeCoverageReportSummary>
250 void SetCodeCoverageSummary(CodeCoverageSummaryT&& value) {
251 m_codeCoverageSummaryHasBeenSet = true;
252 m_codeCoverageSummary = std::forward<CodeCoverageSummaryT>(value);
253 }
254 template <typename CodeCoverageSummaryT = CodeCoverageReportSummary>
255 Report& WithCodeCoverageSummary(CodeCoverageSummaryT&& value) {
256 SetCodeCoverageSummary(std::forward<CodeCoverageSummaryT>(value));
257 return *this;
258 }
260 private:
261 Aws::String m_arn;
262
264
265 Aws::String m_name;
266
267 Aws::String m_reportGroupArn;
268
269 Aws::String m_executionId;
270
272
273 Aws::Utils::DateTime m_created{};
274
275 Aws::Utils::DateTime m_expired{};
276
277 ReportExportConfig m_exportConfig;
278
279 bool m_truncated{false};
280
281 TestReportSummary m_testSummary;
282
283 CodeCoverageReportSummary m_codeCoverageSummary;
284 bool m_arnHasBeenSet = false;
285 bool m_typeHasBeenSet = false;
286 bool m_nameHasBeenSet = false;
287 bool m_reportGroupArnHasBeenSet = false;
288 bool m_executionIdHasBeenSet = false;
289 bool m_statusHasBeenSet = false;
290 bool m_createdHasBeenSet = false;
291 bool m_expiredHasBeenSet = false;
292 bool m_exportConfigHasBeenSet = false;
293 bool m_truncatedHasBeenSet = false;
294 bool m_testSummaryHasBeenSet = false;
295 bool m_codeCoverageSummaryHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace CodeBuild
300} // namespace Aws
const ReportExportConfig & GetExportConfig() const
Definition Report.h:192
bool ArnHasBeenSet() const
Definition Report.h:49
void SetExecutionId(ExecutionIdT &&value)
Definition Report.h:123
bool ExpiredHasBeenSet() const
Definition Report.h:174
AWS_CODEBUILD_API Report(Aws::Utils::Json::JsonView jsonValue)
Report & WithTruncated(bool value)
Definition Report.h:217
void SetCodeCoverageSummary(CodeCoverageSummaryT &&value)
Definition Report.h:250
const Aws::String & GetName() const
Definition Report.h:84
bool TruncatedHasBeenSet() const
Definition Report.h:212
Report & WithExpired(ExpiredT &&value)
Definition Report.h:181
void SetExpired(ExpiredT &&value)
Definition Report.h:176
const Aws::String & GetArn() const
Definition Report.h:48
void SetReportGroupArn(ReportGroupArnT &&value)
Definition Report.h:105
Report & WithStatus(ReportStatusType value)
Definition Report.h:144
Report & WithReportGroupArn(ReportGroupArnT &&value)
Definition Report.h:110
const CodeCoverageReportSummary & GetCodeCoverageSummary() const
Definition Report.h:247
AWS_CODEBUILD_API Report()=default
Report & WithCodeCoverageSummary(CodeCoverageSummaryT &&value)
Definition Report.h:255
Report & WithExecutionId(ExecutionIdT &&value)
Definition Report.h:128
Report & WithType(ReportType value)
Definition Report.h:74
Report & WithExportConfig(ExportConfigT &&value)
Definition Report.h:200
const TestReportSummary & GetTestSummary() const
Definition Report.h:228
const Aws::Utils::DateTime & GetExpired() const
Definition Report.h:173
bool ExportConfigHasBeenSet() const
Definition Report.h:193
const Aws::Utils::DateTime & GetCreated() const
Definition Report.h:154
void SetArn(ArnT &&value)
Definition Report.h:51
void SetType(ReportType value)
Definition Report.h:70
bool TestSummaryHasBeenSet() const
Definition Report.h:229
void SetExportConfig(ExportConfigT &&value)
Definition Report.h:195
bool ReportGroupArnHasBeenSet() const
Definition Report.h:103
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedHasBeenSet() const
Definition Report.h:155
Report & WithTestSummary(TestSummaryT &&value)
Definition Report.h:236
void SetCreated(CreatedT &&value)
Definition Report.h:157
bool NameHasBeenSet() const
Definition Report.h:85
Report & WithCreated(CreatedT &&value)
Definition Report.h:162
ReportStatusType GetStatus() const
Definition Report.h:138
ReportType GetType() const
Definition Report.h:68
void SetStatus(ReportStatusType value)
Definition Report.h:140
const Aws::String & GetExecutionId() const
Definition Report.h:120
void SetTestSummary(TestSummaryT &&value)
Definition Report.h:231
bool ExecutionIdHasBeenSet() const
Definition Report.h:121
bool StatusHasBeenSet() const
Definition Report.h:139
Report & WithName(NameT &&value)
Definition Report.h:92
AWS_CODEBUILD_API Report & operator=(Aws::Utils::Json::JsonView jsonValue)
Report & WithArn(ArnT &&value)
Definition Report.h:56
bool TypeHasBeenSet() const
Definition Report.h:69
bool CodeCoverageSummaryHasBeenSet() const
Definition Report.h:248
void SetTruncated(bool value)
Definition Report.h:213
void SetName(NameT &&value)
Definition Report.h:87
const Aws::String & GetReportGroupArn() const
Definition Report.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue