AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TestCase.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CODEBUILD_API TestCase() = default;
38 AWS_CODEBUILD_API TestCase(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEBUILD_API TestCase& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetReportArn() const { return m_reportArn; }
48 inline bool ReportArnHasBeenSet() const { return m_reportArnHasBeenSet; }
49 template<typename ReportArnT = Aws::String>
50 void SetReportArn(ReportArnT&& value) { m_reportArnHasBeenSet = true; m_reportArn = std::forward<ReportArnT>(value); }
51 template<typename ReportArnT = Aws::String>
52 TestCase& WithReportArn(ReportArnT&& value) { SetReportArn(std::forward<ReportArnT>(value)); return *this;}
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) { m_testRawDataPathHasBeenSet = true; m_testRawDataPath = std::forward<TestRawDataPathT>(value); }
63 template<typename TestRawDataPathT = Aws::String>
64 TestCase& WithTestRawDataPath(TestRawDataPathT&& value) { SetTestRawDataPath(std::forward<TestRawDataPathT>(value)); return *this;}
66
68
73 inline const Aws::String& GetPrefix() const { return m_prefix; }
74 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
75 template<typename PrefixT = Aws::String>
76 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
77 template<typename PrefixT = Aws::String>
78 TestCase& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 TestCase& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
99 inline const Aws::String& GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 template<typename StatusT = Aws::String>
102 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
103 template<typename StatusT = Aws::String>
104 TestCase& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
106
108
111 inline long long GetDurationInNanoSeconds() const { return m_durationInNanoSeconds; }
112 inline bool DurationInNanoSecondsHasBeenSet() const { return m_durationInNanoSecondsHasBeenSet; }
113 inline void SetDurationInNanoSeconds(long long value) { m_durationInNanoSecondsHasBeenSet = true; m_durationInNanoSeconds = value; }
114 inline TestCase& WithDurationInNanoSeconds(long long value) { SetDurationInNanoSeconds(value); return *this;}
116
118
122 inline const Aws::String& GetMessage() const { return m_message; }
123 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
124 template<typename MessageT = Aws::String>
125 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
126 template<typename MessageT = Aws::String>
127 TestCase& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
129
131
135 inline const Aws::Utils::DateTime& GetExpired() const { return m_expired; }
136 inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
137 template<typename ExpiredT = Aws::Utils::DateTime>
138 void SetExpired(ExpiredT&& value) { m_expiredHasBeenSet = true; m_expired = std::forward<ExpiredT>(value); }
139 template<typename ExpiredT = Aws::Utils::DateTime>
140 TestCase& WithExpired(ExpiredT&& value) { SetExpired(std::forward<ExpiredT>(value)); return *this;}
142
144
147 inline const Aws::String& GetTestSuiteName() const { return m_testSuiteName; }
148 inline bool TestSuiteNameHasBeenSet() const { return m_testSuiteNameHasBeenSet; }
149 template<typename TestSuiteNameT = Aws::String>
150 void SetTestSuiteName(TestSuiteNameT&& value) { m_testSuiteNameHasBeenSet = true; m_testSuiteName = std::forward<TestSuiteNameT>(value); }
151 template<typename TestSuiteNameT = Aws::String>
152 TestCase& WithTestSuiteName(TestSuiteNameT&& value) { SetTestSuiteName(std::forward<TestSuiteNameT>(value)); return *this;}
154 private:
155
156 Aws::String m_reportArn;
157 bool m_reportArnHasBeenSet = false;
158
159 Aws::String m_testRawDataPath;
160 bool m_testRawDataPathHasBeenSet = false;
161
162 Aws::String m_prefix;
163 bool m_prefixHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_status;
169 bool m_statusHasBeenSet = false;
170
171 long long m_durationInNanoSeconds{0};
172 bool m_durationInNanoSecondsHasBeenSet = false;
173
174 Aws::String m_message;
175 bool m_messageHasBeenSet = false;
176
177 Aws::Utils::DateTime m_expired{};
178 bool m_expiredHasBeenSet = false;
179
180 Aws::String m_testSuiteName;
181 bool m_testSuiteNameHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace CodeBuild
186} // 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:47
AWS_CODEBUILD_API TestCase(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
Definition TestCase.h:122
void SetTestRawDataPath(TestRawDataPathT &&value)
Definition TestCase.h:62
bool DurationInNanoSecondsHasBeenSet() const
Definition TestCase.h:112
const Aws::String & GetName() const
Definition TestCase.h:85
TestCase & WithStatus(StatusT &&value)
Definition TestCase.h:104
bool TestSuiteNameHasBeenSet() const
Definition TestCase.h:148
const Aws::String & GetStatus() const
Definition TestCase.h:99
TestCase & WithTestRawDataPath(TestRawDataPathT &&value)
Definition TestCase.h:64
void SetDurationInNanoSeconds(long long value)
Definition TestCase.h:113
void SetPrefix(PrefixT &&value)
Definition TestCase.h:76
TestCase & WithTestSuiteName(TestSuiteNameT &&value)
Definition TestCase.h:152
TestCase & WithMessage(MessageT &&value)
Definition TestCase.h:127
void SetTestSuiteName(TestSuiteNameT &&value)
Definition TestCase.h:150
long long GetDurationInNanoSeconds() const
Definition TestCase.h:111
void SetMessage(MessageT &&value)
Definition TestCase.h:125
const Aws::String & GetPrefix() const
Definition TestCase.h:73
TestCase & WithPrefix(PrefixT &&value)
Definition TestCase.h:78
const Aws::String & GetTestRawDataPath() const
Definition TestCase.h:59
AWS_CODEBUILD_API TestCase()=default
TestCase & WithReportArn(ReportArnT &&value)
Definition TestCase.h:52
void SetReportArn(ReportArnT &&value)
Definition TestCase.h:50
void SetExpired(ExpiredT &&value)
Definition TestCase.h:138
void SetName(NameT &&value)
Definition TestCase.h:88
bool TestRawDataPathHasBeenSet() const
Definition TestCase.h:60
TestCase & WithDurationInNanoSeconds(long long value)
Definition TestCase.h:114
const Aws::String & GetTestSuiteName() const
Definition TestCase.h:147
void SetStatus(StatusT &&value)
Definition TestCase.h:102
TestCase & WithName(NameT &&value)
Definition TestCase.h:90
const Aws::Utils::DateTime & GetExpired() const
Definition TestCase.h:135
TestCase & WithExpired(ExpiredT &&value)
Definition TestCase.h:140
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue