AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
58 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
59 inline Report& WithArn(const Aws::String& value) { SetArn(value); return *this;}
60 inline Report& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
61 inline Report& WithArn(const char* value) { SetArn(value); return *this;}
63
65
70 inline const ReportType& GetType() const{ return m_type; }
71 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
72 inline void SetType(const ReportType& value) { m_typeHasBeenSet = true; m_type = value; }
73 inline void SetType(ReportType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
74 inline Report& WithType(const ReportType& value) { SetType(value); return *this;}
75 inline Report& WithType(ReportType&& value) { SetType(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetName() const{ return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
85 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
86 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
87 inline Report& WithName(const Aws::String& value) { SetName(value); return *this;}
88 inline Report& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 inline Report& WithName(const char* value) { SetName(value); return *this;}
91
93
96 inline const Aws::String& GetReportGroupArn() const{ return m_reportGroupArn; }
97 inline bool ReportGroupArnHasBeenSet() const { return m_reportGroupArnHasBeenSet; }
98 inline void SetReportGroupArn(const Aws::String& value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn = value; }
99 inline void SetReportGroupArn(Aws::String&& value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn = std::move(value); }
100 inline void SetReportGroupArn(const char* value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn.assign(value); }
101 inline Report& WithReportGroupArn(const Aws::String& value) { SetReportGroupArn(value); return *this;}
102 inline Report& WithReportGroupArn(Aws::String&& value) { SetReportGroupArn(std::move(value)); return *this;}
103 inline Report& WithReportGroupArn(const char* value) { SetReportGroupArn(value); return *this;}
105
107
110 inline const Aws::String& GetExecutionId() const{ return m_executionId; }
111 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
112 inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; }
113 inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); }
114 inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); }
115 inline Report& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;}
116 inline Report& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;}
117 inline Report& WithExecutionId(const char* value) { SetExecutionId(value); return *this;}
119
121
124 inline const ReportStatusType& GetStatus() const{ return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 inline void SetStatus(const ReportStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
127 inline void SetStatus(ReportStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
128 inline Report& WithStatus(const ReportStatusType& value) { SetStatus(value); return *this;}
129 inline Report& WithStatus(ReportStatusType&& value) { SetStatus(std::move(value)); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
137 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
138 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
139 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
140 inline Report& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
141 inline Report& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
143
145
149 inline const Aws::Utils::DateTime& GetExpired() const{ return m_expired; }
150 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
151 inline void SetExpired(const Aws::Utils::DateTime& value) { m_expiredHasBeenSet = true; m_expired = value; }
152 inline void SetExpired(Aws::Utils::DateTime&& value) { m_expiredHasBeenSet = true; m_expired = std::move(value); }
153 inline Report& WithExpired(const Aws::Utils::DateTime& value) { SetExpired(value); return *this;}
154 inline Report& WithExpired(Aws::Utils::DateTime&& value) { SetExpired(std::move(value)); return *this;}
156
158
162 inline const ReportExportConfig& GetExportConfig() const{ return m_exportConfig; }
163 inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; }
164 inline void SetExportConfig(const ReportExportConfig& value) { m_exportConfigHasBeenSet = true; m_exportConfig = value; }
165 inline void SetExportConfig(ReportExportConfig&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::move(value); }
166 inline Report& WithExportConfig(const ReportExportConfig& value) { SetExportConfig(value); return *this;}
167 inline Report& WithExportConfig(ReportExportConfig&& value) { SetExportConfig(std::move(value)); return *this;}
169
171
175 inline bool GetTruncated() const{ return m_truncated; }
176 inline bool TruncatedHasBeenSet() const { return m_truncatedHasBeenSet; }
177 inline void SetTruncated(bool value) { m_truncatedHasBeenSet = true; m_truncated = value; }
178 inline Report& WithTruncated(bool value) { SetTruncated(value); return *this;}
180
182
186 inline const TestReportSummary& GetTestSummary() const{ return m_testSummary; }
187 inline bool TestSummaryHasBeenSet() const { return m_testSummaryHasBeenSet; }
188 inline void SetTestSummary(const TestReportSummary& value) { m_testSummaryHasBeenSet = true; m_testSummary = value; }
189 inline void SetTestSummary(TestReportSummary&& value) { m_testSummaryHasBeenSet = true; m_testSummary = std::move(value); }
190 inline Report& WithTestSummary(const TestReportSummary& value) { SetTestSummary(value); return *this;}
191 inline Report& WithTestSummary(TestReportSummary&& value) { SetTestSummary(std::move(value)); return *this;}
193
195
199 inline const CodeCoverageReportSummary& GetCodeCoverageSummary() const{ return m_codeCoverageSummary; }
200 inline bool CodeCoverageSummaryHasBeenSet() const { return m_codeCoverageSummaryHasBeenSet; }
201 inline void SetCodeCoverageSummary(const CodeCoverageReportSummary& value) { m_codeCoverageSummaryHasBeenSet = true; m_codeCoverageSummary = value; }
202 inline void SetCodeCoverageSummary(CodeCoverageReportSummary&& value) { m_codeCoverageSummaryHasBeenSet = true; m_codeCoverageSummary = std::move(value); }
204 inline Report& WithCodeCoverageSummary(CodeCoverageReportSummary&& value) { SetCodeCoverageSummary(std::move(value)); return *this;}
206 private:
207
208 Aws::String m_arn;
209 bool m_arnHasBeenSet = false;
210
211 ReportType m_type;
212 bool m_typeHasBeenSet = false;
213
214 Aws::String m_name;
215 bool m_nameHasBeenSet = false;
216
217 Aws::String m_reportGroupArn;
218 bool m_reportGroupArnHasBeenSet = false;
219
220 Aws::String m_executionId;
221 bool m_executionIdHasBeenSet = false;
222
223 ReportStatusType m_status;
224 bool m_statusHasBeenSet = false;
225
226 Aws::Utils::DateTime m_created;
227 bool m_createdHasBeenSet = false;
228
229 Aws::Utils::DateTime m_expired;
230 bool m_expiredHasBeenSet = false;
231
232 ReportExportConfig m_exportConfig;
233 bool m_exportConfigHasBeenSet = false;
234
235 bool m_truncated;
236 bool m_truncatedHasBeenSet = false;
237
238 TestReportSummary m_testSummary;
239 bool m_testSummaryHasBeenSet = false;
240
241 CodeCoverageReportSummary m_codeCoverageSummary;
242 bool m_codeCoverageSummaryHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace CodeBuild
247} // namespace Aws
void SetStatus(ReportStatusType &&value)
Definition Report.h:127
const ReportExportConfig & GetExportConfig() const
Definition Report.h:162
AWS_CODEBUILD_API Report()
bool ArnHasBeenSet() const
Definition Report.h:55
void SetType(const ReportType &value)
Definition Report.h:72
Report & WithExportConfig(ReportExportConfig &&value)
Definition Report.h:167
const ReportType & GetType() const
Definition Report.h:70
bool ExpiredHasBeenSet() const
Definition Report.h:150
Report & WithExpired(Aws::Utils::DateTime &&value)
Definition Report.h:154
AWS_CODEBUILD_API Report(Aws::Utils::Json::JsonView jsonValue)
Report & WithName(Aws::String &&value)
Definition Report.h:88
Report & WithTruncated(bool value)
Definition Report.h:178
const Aws::String & GetName() const
Definition Report.h:82
Report & WithName(const char *value)
Definition Report.h:89
bool TruncatedHasBeenSet() const
Definition Report.h:176
const Aws::String & GetArn() const
Definition Report.h:54
Report & WithExecutionId(Aws::String &&value)
Definition Report.h:116
void SetExportConfig(const ReportExportConfig &value)
Definition Report.h:164
const CodeCoverageReportSummary & GetCodeCoverageSummary() const
Definition Report.h:199
Report & WithArn(Aws::String &&value)
Definition Report.h:60
Report & WithCodeCoverageSummary(CodeCoverageReportSummary &&value)
Definition Report.h:204
Report & WithCodeCoverageSummary(const CodeCoverageReportSummary &value)
Definition Report.h:203
Report & WithStatus(ReportStatusType &&value)
Definition Report.h:129
Report & WithCreated(Aws::Utils::DateTime &&value)
Definition Report.h:141
const TestReportSummary & GetTestSummary() const
Definition Report.h:186
void SetStatus(const ReportStatusType &value)
Definition Report.h:126
void SetCreated(const Aws::Utils::DateTime &value)
Definition Report.h:138
void SetName(Aws::String &&value)
Definition Report.h:85
void SetArn(const Aws::String &value)
Definition Report.h:56
void SetExecutionId(const char *value)
Definition Report.h:114
void SetName(const Aws::String &value)
Definition Report.h:84
void SetExportConfig(ReportExportConfig &&value)
Definition Report.h:165
Report & WithExecutionId(const Aws::String &value)
Definition Report.h:115
const Aws::Utils::DateTime & GetExpired() const
Definition Report.h:149
bool ExportConfigHasBeenSet() const
Definition Report.h:163
const Aws::Utils::DateTime & GetCreated() const
Definition Report.h:136
Report & WithTestSummary(TestReportSummary &&value)
Definition Report.h:191
bool TestSummaryHasBeenSet() const
Definition Report.h:187
bool ReportGroupArnHasBeenSet() const
Definition Report.h:97
void SetCreated(Aws::Utils::DateTime &&value)
Definition Report.h:139
Report & WithExportConfig(const ReportExportConfig &value)
Definition Report.h:166
void SetTestSummary(const TestReportSummary &value)
Definition Report.h:188
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
Report & WithType(ReportType &&value)
Definition Report.h:75
bool CreatedHasBeenSet() const
Definition Report.h:137
Report & WithReportGroupArn(const Aws::String &value)
Definition Report.h:101
Report & WithCreated(const Aws::Utils::DateTime &value)
Definition Report.h:140
void SetArn(const char *value)
Definition Report.h:58
void SetCodeCoverageSummary(const CodeCoverageReportSummary &value)
Definition Report.h:201
bool NameHasBeenSet() const
Definition Report.h:83
Report & WithExpired(const Aws::Utils::DateTime &value)
Definition Report.h:153
void SetTestSummary(TestReportSummary &&value)
Definition Report.h:189
const ReportStatusType & GetStatus() const
Definition Report.h:124
Report & WithArn(const Aws::String &value)
Definition Report.h:59
void SetReportGroupArn(const Aws::String &value)
Definition Report.h:98
Report & WithReportGroupArn(Aws::String &&value)
Definition Report.h:102
Report & WithExecutionId(const char *value)
Definition Report.h:117
Report & WithTestSummary(const TestReportSummary &value)
Definition Report.h:190
void SetExpired(Aws::Utils::DateTime &&value)
Definition Report.h:152
void SetCodeCoverageSummary(CodeCoverageReportSummary &&value)
Definition Report.h:202
const Aws::String & GetExecutionId() const
Definition Report.h:110
void SetExecutionId(Aws::String &&value)
Definition Report.h:113
Report & WithStatus(const ReportStatusType &value)
Definition Report.h:128
bool ExecutionIdHasBeenSet() const
Definition Report.h:111
bool StatusHasBeenSet() const
Definition Report.h:125
void SetName(const char *value)
Definition Report.h:86
Report & WithArn(const char *value)
Definition Report.h:61
AWS_CODEBUILD_API Report & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(Aws::String &&value)
Definition Report.h:57
Report & WithType(const ReportType &value)
Definition Report.h:74
Report & WithName(const Aws::String &value)
Definition Report.h:87
void SetType(ReportType &&value)
Definition Report.h:73
void SetExpired(const Aws::Utils::DateTime &value)
Definition Report.h:151
void SetExecutionId(const Aws::String &value)
Definition Report.h:112
void SetReportGroupArn(Aws::String &&value)
Definition Report.h:99
Report & WithReportGroupArn(const char *value)
Definition Report.h:103
bool TypeHasBeenSet() const
Definition Report.h:71
bool CodeCoverageSummaryHasBeenSet() const
Definition Report.h:200
void SetReportGroupArn(const char *value)
Definition Report.h:100
void SetTruncated(bool value)
Definition Report.h:177
const Aws::String & GetReportGroupArn() const
Definition Report.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue