AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TestCase.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
30class TestCase {
31 public:
32 AWS_CODEBUILD_API TestCase() = default;
33 AWS_CODEBUILD_API TestCase(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEBUILD_API TestCase& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetReportArn() const { return m_reportArn; }
42 inline bool ReportArnHasBeenSet() const { return m_reportArnHasBeenSet; }
43 template <typename ReportArnT = Aws::String>
44 void SetReportArn(ReportArnT&& value) {
45 m_reportArnHasBeenSet = true;
46 m_reportArn = std::forward<ReportArnT>(value);
47 }
48 template <typename ReportArnT = Aws::String>
49 TestCase& WithReportArn(ReportArnT&& value) {
50 SetReportArn(std::forward<ReportArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTestRawDataPath() const { return m_testRawDataPath; }
60 inline bool TestRawDataPathHasBeenSet() const { return m_testRawDataPathHasBeenSet; }
61 template <typename TestRawDataPathT = Aws::String>
62 void SetTestRawDataPath(TestRawDataPathT&& value) {
63 m_testRawDataPathHasBeenSet = true;
64 m_testRawDataPath = std::forward<TestRawDataPathT>(value);
65 }
66 template <typename TestRawDataPathT = Aws::String>
67 TestCase& WithTestRawDataPath(TestRawDataPathT&& value) {
68 SetTestRawDataPath(std::forward<TestRawDataPathT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetPrefix() const { return m_prefix; }
80 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
81 template <typename PrefixT = Aws::String>
82 void SetPrefix(PrefixT&& value) {
83 m_prefixHasBeenSet = true;
84 m_prefix = std::forward<PrefixT>(value);
85 }
86 template <typename PrefixT = Aws::String>
87 TestCase& WithPrefix(PrefixT&& value) {
88 SetPrefix(std::forward<PrefixT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetName() const { return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 template <typename NameT = Aws::String>
100 void SetName(NameT&& value) {
101 m_nameHasBeenSet = true;
102 m_name = std::forward<NameT>(value);
103 }
104 template <typename NameT = Aws::String>
105 TestCase& WithName(NameT&& value) {
106 SetName(std::forward<NameT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 template <typename StatusT = Aws::String>
120 void SetStatus(StatusT&& value) {
121 m_statusHasBeenSet = true;
122 m_status = std::forward<StatusT>(value);
123 }
124 template <typename StatusT = Aws::String>
125 TestCase& WithStatus(StatusT&& value) {
126 SetStatus(std::forward<StatusT>(value));
127 return *this;
128 }
130
132
135 inline long long GetDurationInNanoSeconds() const { return m_durationInNanoSeconds; }
136 inline bool DurationInNanoSecondsHasBeenSet() const { return m_durationInNanoSecondsHasBeenSet; }
137 inline void SetDurationInNanoSeconds(long long value) {
138 m_durationInNanoSecondsHasBeenSet = true;
139 m_durationInNanoSeconds = value;
140 }
141 inline TestCase& WithDurationInNanoSeconds(long long value) {
143 return *this;
144 }
146
148
152 inline const Aws::String& GetMessage() const { return m_message; }
153 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
154 template <typename MessageT = Aws::String>
155 void SetMessage(MessageT&& value) {
156 m_messageHasBeenSet = true;
157 m_message = std::forward<MessageT>(value);
158 }
159 template <typename MessageT = Aws::String>
160 TestCase& WithMessage(MessageT&& value) {
161 SetMessage(std::forward<MessageT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::Utils::DateTime& GetExpired() const { return m_expired; }
172 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
173 template <typename ExpiredT = Aws::Utils::DateTime>
174 void SetExpired(ExpiredT&& value) {
175 m_expiredHasBeenSet = true;
176 m_expired = std::forward<ExpiredT>(value);
177 }
178 template <typename ExpiredT = Aws::Utils::DateTime>
179 TestCase& WithExpired(ExpiredT&& value) {
180 SetExpired(std::forward<ExpiredT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetTestSuiteName() const { return m_testSuiteName; }
190 inline bool TestSuiteNameHasBeenSet() const { return m_testSuiteNameHasBeenSet; }
191 template <typename TestSuiteNameT = Aws::String>
192 void SetTestSuiteName(TestSuiteNameT&& value) {
193 m_testSuiteNameHasBeenSet = true;
194 m_testSuiteName = std::forward<TestSuiteNameT>(value);
195 }
196 template <typename TestSuiteNameT = Aws::String>
197 TestCase& WithTestSuiteName(TestSuiteNameT&& value) {
198 SetTestSuiteName(std::forward<TestSuiteNameT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_reportArn;
204
205 Aws::String m_testRawDataPath;
206
207 Aws::String m_prefix;
208
209 Aws::String m_name;
210
211 Aws::String m_status;
212
213 long long m_durationInNanoSeconds{0};
214
215 Aws::String m_message;
216
217 Aws::Utils::DateTime m_expired{};
218
219 Aws::String m_testSuiteName;
220 bool m_reportArnHasBeenSet = false;
221 bool m_testRawDataPathHasBeenSet = false;
222 bool m_prefixHasBeenSet = false;
223 bool m_nameHasBeenSet = false;
224 bool m_statusHasBeenSet = false;
225 bool m_durationInNanoSecondsHasBeenSet = false;
226 bool m_messageHasBeenSet = false;
227 bool m_expiredHasBeenSet = false;
228 bool m_testSuiteNameHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace CodeBuild
233} // namespace Aws
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API TestCase & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetReportArn() const
Definition TestCase.h:41
AWS_CODEBUILD_API TestCase(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
Definition TestCase.h:152
void SetTestRawDataPath(TestRawDataPathT &&value)
Definition TestCase.h:62
bool DurationInNanoSecondsHasBeenSet() const
Definition TestCase.h:136
const Aws::String & GetName() const
Definition TestCase.h:97
TestCase & WithStatus(StatusT &&value)
Definition TestCase.h:125
bool TestSuiteNameHasBeenSet() const
Definition TestCase.h:190
const Aws::String & GetStatus() const
Definition TestCase.h:117
TestCase & WithTestRawDataPath(TestRawDataPathT &&value)
Definition TestCase.h:67
void SetDurationInNanoSeconds(long long value)
Definition TestCase.h:137
void SetPrefix(PrefixT &&value)
Definition TestCase.h:82
TestCase & WithTestSuiteName(TestSuiteNameT &&value)
Definition TestCase.h:197
TestCase & WithMessage(MessageT &&value)
Definition TestCase.h:160
void SetTestSuiteName(TestSuiteNameT &&value)
Definition TestCase.h:192
long long GetDurationInNanoSeconds() const
Definition TestCase.h:135
void SetMessage(MessageT &&value)
Definition TestCase.h:155
const Aws::String & GetPrefix() const
Definition TestCase.h:79
TestCase & WithPrefix(PrefixT &&value)
Definition TestCase.h:87
const Aws::String & GetTestRawDataPath() const
Definition TestCase.h:59
AWS_CODEBUILD_API TestCase()=default
TestCase & WithReportArn(ReportArnT &&value)
Definition TestCase.h:49
void SetReportArn(ReportArnT &&value)
Definition TestCase.h:44
void SetExpired(ExpiredT &&value)
Definition TestCase.h:174
void SetName(NameT &&value)
Definition TestCase.h:100
bool TestRawDataPathHasBeenSet() const
Definition TestCase.h:60
TestCase & WithDurationInNanoSeconds(long long value)
Definition TestCase.h:141
const Aws::String & GetTestSuiteName() const
Definition TestCase.h:189
void SetStatus(StatusT &&value)
Definition TestCase.h:120
TestCase & WithName(NameT &&value)
Definition TestCase.h:105
const Aws::Utils::DateTime & GetExpired() const
Definition TestCase.h:171
TestCase & WithExpired(ExpiredT &&value)
Definition TestCase.h:179
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue