AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Report.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codebuild/model/ReportType.h>
10#include <aws/codebuild/model/ReportStatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/codebuild/model/ReportExportConfig.h>
13#include <aws/codebuild/model/TestReportSummary.h>
14#include <aws/codebuild/model/CodeCoverageReportSummary.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 CodeBuild
28{
29namespace Model
30{
31
41 class Report
42 {
43 public:
44 AWS_CODEBUILD_API Report() = default;
45 AWS_CODEBUILD_API Report(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CODEBUILD_API Report& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
56 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 Report& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
61
63
68 inline ReportType GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 inline void SetType(ReportType value) { m_typeHasBeenSet = true; m_type = value; }
71 inline Report& WithType(ReportType value) { SetType(value); return *this;}
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template<typename NameT = Aws::String>
81 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
82 template<typename NameT = Aws::String>
83 Report& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
85
87
90 inline const Aws::String& GetReportGroupArn() const { return m_reportGroupArn; }
91 inline bool ReportGroupArnHasBeenSet() const { return m_reportGroupArnHasBeenSet; }
92 template<typename ReportGroupArnT = Aws::String>
93 void SetReportGroupArn(ReportGroupArnT&& value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn = std::forward<ReportGroupArnT>(value); }
94 template<typename ReportGroupArnT = Aws::String>
95 Report& WithReportGroupArn(ReportGroupArnT&& value) { SetReportGroupArn(std::forward<ReportGroupArnT>(value)); return *this;}
97
99
102 inline const Aws::String& GetExecutionId() const { return m_executionId; }
103 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
104 template<typename ExecutionIdT = Aws::String>
105 void SetExecutionId(ExecutionIdT&& value) { m_executionIdHasBeenSet = true; m_executionId = std::forward<ExecutionIdT>(value); }
106 template<typename ExecutionIdT = Aws::String>
107 Report& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
109
111
114 inline ReportStatusType GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(ReportStatusType value) { m_statusHasBeenSet = true; m_status = value; }
117 inline Report& WithStatus(ReportStatusType value) { SetStatus(value); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
125 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
126 template<typename CreatedT = Aws::Utils::DateTime>
127 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
128 template<typename CreatedT = Aws::Utils::DateTime>
129 Report& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
131
133
137 inline const Aws::Utils::DateTime& GetExpired() const { return m_expired; }
138 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
139 template<typename ExpiredT = Aws::Utils::DateTime>
140 void SetExpired(ExpiredT&& value) { m_expiredHasBeenSet = true; m_expired = std::forward<ExpiredT>(value); }
141 template<typename ExpiredT = Aws::Utils::DateTime>
142 Report& WithExpired(ExpiredT&& value) { SetExpired(std::forward<ExpiredT>(value)); return *this;}
144
146
150 inline const ReportExportConfig& GetExportConfig() const { return m_exportConfig; }
151 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
152 template<typename ExportConfigT = ReportExportConfig>
153 void SetExportConfig(ExportConfigT&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::forward<ExportConfigT>(value); }
154 template<typename ExportConfigT = ReportExportConfig>
155 Report& WithExportConfig(ExportConfigT&& value) { SetExportConfig(std::forward<ExportConfigT>(value)); return *this;}
157
159
163 inline bool GetTruncated() const { return m_truncated; }
164 inline bool TruncatedHasBeenSet() const { return m_truncatedHasBeenSet; }
165 inline void SetTruncated(bool value) { m_truncatedHasBeenSet = true; m_truncated = value; }
166 inline Report& WithTruncated(bool value) { SetTruncated(value); return *this;}
168
170
174 inline const TestReportSummary& GetTestSummary() const { return m_testSummary; }
175 inline bool TestSummaryHasBeenSet() const { return m_testSummaryHasBeenSet; }
176 template<typename TestSummaryT = TestReportSummary>
177 void SetTestSummary(TestSummaryT&& value) { m_testSummaryHasBeenSet = true; m_testSummary = std::forward<TestSummaryT>(value); }
178 template<typename TestSummaryT = TestReportSummary>
179 Report& WithTestSummary(TestSummaryT&& value) { SetTestSummary(std::forward<TestSummaryT>(value)); return *this;}
181
183
187 inline const CodeCoverageReportSummary& GetCodeCoverageSummary() const { return m_codeCoverageSummary; }
188 inline bool CodeCoverageSummaryHasBeenSet() const { return m_codeCoverageSummaryHasBeenSet; }
189 template<typename CodeCoverageSummaryT = CodeCoverageReportSummary>
190 void SetCodeCoverageSummary(CodeCoverageSummaryT&& value) { m_codeCoverageSummaryHasBeenSet = true; m_codeCoverageSummary = std::forward<CodeCoverageSummaryT>(value); }
191 template<typename CodeCoverageSummaryT = CodeCoverageReportSummary>
192 Report& WithCodeCoverageSummary(CodeCoverageSummaryT&& value) { SetCodeCoverageSummary(std::forward<CodeCoverageSummaryT>(value)); return *this;}
194 private:
195
196 Aws::String m_arn;
197 bool m_arnHasBeenSet = false;
198
200 bool m_typeHasBeenSet = false;
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 Aws::String m_reportGroupArn;
206 bool m_reportGroupArnHasBeenSet = false;
207
208 Aws::String m_executionId;
209 bool m_executionIdHasBeenSet = false;
210
212 bool m_statusHasBeenSet = false;
213
214 Aws::Utils::DateTime m_created{};
215 bool m_createdHasBeenSet = false;
216
217 Aws::Utils::DateTime m_expired{};
218 bool m_expiredHasBeenSet = false;
219
220 ReportExportConfig m_exportConfig;
221 bool m_exportConfigHasBeenSet = false;
222
223 bool m_truncated{false};
224 bool m_truncatedHasBeenSet = false;
225
226 TestReportSummary m_testSummary;
227 bool m_testSummaryHasBeenSet = false;
228
229 CodeCoverageReportSummary m_codeCoverageSummary;
230 bool m_codeCoverageSummaryHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace CodeBuild
235} // namespace Aws
const ReportExportConfig & GetExportConfig() const
Definition Report.h:150
bool ArnHasBeenSet() const
Definition Report.h:55
void SetExecutionId(ExecutionIdT &&value)
Definition Report.h:105
bool ExpiredHasBeenSet() const
Definition Report.h:138
AWS_CODEBUILD_API Report(Aws::Utils::Json::JsonView jsonValue)
Report & WithTruncated(bool value)
Definition Report.h:166
void SetCodeCoverageSummary(CodeCoverageSummaryT &&value)
Definition Report.h:190
const Aws::String & GetName() const
Definition Report.h:78
bool TruncatedHasBeenSet() const
Definition Report.h:164
Report & WithExpired(ExpiredT &&value)
Definition Report.h:142
void SetExpired(ExpiredT &&value)
Definition Report.h:140
const Aws::String & GetArn() const
Definition Report.h:54
void SetReportGroupArn(ReportGroupArnT &&value)
Definition Report.h:93
Report & WithStatus(ReportStatusType value)
Definition Report.h:117
Report & WithReportGroupArn(ReportGroupArnT &&value)
Definition Report.h:95
const CodeCoverageReportSummary & GetCodeCoverageSummary() const
Definition Report.h:187
AWS_CODEBUILD_API Report()=default
Report & WithCodeCoverageSummary(CodeCoverageSummaryT &&value)
Definition Report.h:192
Report & WithExecutionId(ExecutionIdT &&value)
Definition Report.h:107
Report & WithType(ReportType value)
Definition Report.h:71
Report & WithExportConfig(ExportConfigT &&value)
Definition Report.h:155
const TestReportSummary & GetTestSummary() const
Definition Report.h:174
const Aws::Utils::DateTime & GetExpired() const
Definition Report.h:137
bool ExportConfigHasBeenSet() const
Definition Report.h:151
const Aws::Utils::DateTime & GetCreated() const
Definition Report.h:124
void SetArn(ArnT &&value)
Definition Report.h:57
void SetType(ReportType value)
Definition Report.h:70
bool TestSummaryHasBeenSet() const
Definition Report.h:175
void SetExportConfig(ExportConfigT &&value)
Definition Report.h:153
bool ReportGroupArnHasBeenSet() const
Definition Report.h:91
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedHasBeenSet() const
Definition Report.h:125
Report & WithTestSummary(TestSummaryT &&value)
Definition Report.h:179
void SetCreated(CreatedT &&value)
Definition Report.h:127
bool NameHasBeenSet() const
Definition Report.h:79
Report & WithCreated(CreatedT &&value)
Definition Report.h:129
ReportStatusType GetStatus() const
Definition Report.h:114
ReportType GetType() const
Definition Report.h:68
void SetStatus(ReportStatusType value)
Definition Report.h:116
const Aws::String & GetExecutionId() const
Definition Report.h:102
void SetTestSummary(TestSummaryT &&value)
Definition Report.h:177
bool ExecutionIdHasBeenSet() const
Definition Report.h:103
bool StatusHasBeenSet() const
Definition Report.h:115
Report & WithName(NameT &&value)
Definition Report.h:83
AWS_CODEBUILD_API Report & operator=(Aws::Utils::Json::JsonView jsonValue)
Report & WithArn(ArnT &&value)
Definition Report.h:59
bool TypeHasBeenSet() const
Definition Report.h:69
bool CodeCoverageSummaryHasBeenSet() const
Definition Report.h:188
void SetTruncated(bool value)
Definition Report.h:165
void SetName(NameT &&value)
Definition Report.h:81
const Aws::String & GetReportGroupArn() const
Definition Report.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue