AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TestCase.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/TestCaseEntryPoint.h>
9#include <aws/connect/model/TestCaseStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
31class TestCase {
32 public:
33 AWS_CONNECT_API TestCase() = default;
34 AWS_CONNECT_API TestCase(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API TestCase& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 TestCase& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 TestCase& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
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) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 TestCase& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetContent() const { return m_content; }
97 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
98 template <typename ContentT = Aws::String>
99 void SetContent(ContentT&& value) {
100 m_contentHasBeenSet = true;
101 m_content = std::forward<ContentT>(value);
102 }
103 template <typename ContentT = Aws::String>
104 TestCase& WithContent(ContentT&& value) {
105 SetContent(std::forward<ContentT>(value));
106 return *this;
107 }
109
111
115 inline const TestCaseEntryPoint& GetEntryPoint() const { return m_entryPoint; }
116 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
117 template <typename EntryPointT = TestCaseEntryPoint>
118 void SetEntryPoint(EntryPointT&& value) {
119 m_entryPointHasBeenSet = true;
120 m_entryPoint = std::forward<EntryPointT>(value);
121 }
122 template <typename EntryPointT = TestCaseEntryPoint>
123 TestCase& WithEntryPoint(EntryPointT&& value) {
124 SetEntryPoint(std::forward<EntryPointT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetInitializationData() const { return m_initializationData; }
134 inline bool InitializationDataHasBeenSet() const { return m_initializationDataHasBeenSet; }
135 template <typename InitializationDataT = Aws::String>
136 void SetInitializationData(InitializationDataT&& value) {
137 m_initializationDataHasBeenSet = true;
138 m_initializationData = std::forward<InitializationDataT>(value);
139 }
140 template <typename InitializationDataT = Aws::String>
141 TestCase& WithInitializationData(InitializationDataT&& value) {
142 SetInitializationData(std::forward<InitializationDataT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
159 TestCase& WithDescription(DescriptionT&& value) {
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164
166
169 inline TestCaseStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
171 inline void SetStatus(TestCaseStatus value) {
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
185 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
186 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
187 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
188 void SetLastModifiedTime(LastModifiedTimeT&& value) {
189 m_lastModifiedTimeHasBeenSet = true;
190 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
191 }
192 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
193 TestCase& WithLastModifiedTime(LastModifiedTimeT&& value) {
194 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
204 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
205 template <typename LastModifiedRegionT = Aws::String>
206 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
207 m_lastModifiedRegionHasBeenSet = true;
208 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
209 }
210 template <typename LastModifiedRegionT = Aws::String>
211 TestCase& WithLastModifiedRegion(LastModifiedRegionT&& value) {
212 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
222 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
223 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 void SetTags(TagsT&& value) {
225 m_tagsHasBeenSet = true;
226 m_tags = std::forward<TagsT>(value);
227 }
228 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
229 TestCase& WithTags(TagsT&& value) {
230 SetTags(std::forward<TagsT>(value));
231 return *this;
232 }
233 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
234 TestCase& AddTags(TagsKeyT&& key, TagsValueT&& value) {
235 m_tagsHasBeenSet = true;
236 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetTestCaseSha256() const { return m_testCaseSha256; }
246 inline bool TestCaseSha256HasBeenSet() const { return m_testCaseSha256HasBeenSet; }
247 template <typename TestCaseSha256T = Aws::String>
248 void SetTestCaseSha256(TestCaseSha256T&& value) {
249 m_testCaseSha256HasBeenSet = true;
250 m_testCaseSha256 = std::forward<TestCaseSha256T>(value);
251 }
252 template <typename TestCaseSha256T = Aws::String>
253 TestCase& WithTestCaseSha256(TestCaseSha256T&& value) {
254 SetTestCaseSha256(std::forward<TestCaseSha256T>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_arn;
260
261 Aws::String m_id;
262
263 Aws::String m_name;
264
265 Aws::String m_content;
266
267 TestCaseEntryPoint m_entryPoint;
268
269 Aws::String m_initializationData;
270
271 Aws::String m_description;
272
274
275 Aws::Utils::DateTime m_lastModifiedTime{};
276
277 Aws::String m_lastModifiedRegion;
278
280
281 Aws::String m_testCaseSha256;
282 bool m_arnHasBeenSet = false;
283 bool m_idHasBeenSet = false;
284 bool m_nameHasBeenSet = false;
285 bool m_contentHasBeenSet = false;
286 bool m_entryPointHasBeenSet = false;
287 bool m_initializationDataHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_statusHasBeenSet = false;
290 bool m_lastModifiedTimeHasBeenSet = false;
291 bool m_lastModifiedRegionHasBeenSet = false;
292 bool m_tagsHasBeenSet = false;
293 bool m_testCaseSha256HasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace Connect
298} // namespace Aws
const Aws::String & GetId() const
Definition TestCase.h:60
TestCase & WithLastModifiedRegion(LastModifiedRegionT &&value)
Definition TestCase.h:211
TestCase & WithId(IdT &&value)
Definition TestCase.h:68
void SetId(IdT &&value)
Definition TestCase.h:63
TestCase & WithTestCaseSha256(TestCaseSha256T &&value)
Definition TestCase.h:253
bool LastModifiedTimeHasBeenSet() const
Definition TestCase.h:186
void SetEntryPoint(EntryPointT &&value)
Definition TestCase.h:118
void SetName(NameT &&value)
Definition TestCase.h:81
TestCase & WithName(NameT &&value)
Definition TestCase.h:86
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition TestCase.h:221
bool InitializationDataHasBeenSet() const
Definition TestCase.h:134
bool EntryPointHasBeenSet() const
Definition TestCase.h:116
const Aws::String & GetDescription() const
Definition TestCase.h:151
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition TestCase.h:188
const Aws::String & GetLastModifiedRegion() const
Definition TestCase.h:203
void SetLastModifiedRegion(LastModifiedRegionT &&value)
Definition TestCase.h:206
AWS_CONNECT_API TestCase()=default
const Aws::String & GetContent() const
Definition TestCase.h:96
TestCase & WithStatus(TestCaseStatus value)
Definition TestCase.h:175
void SetInitializationData(InitializationDataT &&value)
Definition TestCase.h:136
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TestCase & WithDescription(DescriptionT &&value)
Definition TestCase.h:159
TestCase & WithArn(ArnT &&value)
Definition TestCase.h:50
bool ContentHasBeenSet() const
Definition TestCase.h:97
AWS_CONNECT_API TestCase & operator=(Aws::Utils::Json::JsonView jsonValue)
TestCase & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition TestCase.h:234
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition TestCase.h:185
AWS_CONNECT_API TestCase(Aws::Utils::Json::JsonView jsonValue)
void SetTestCaseSha256(TestCaseSha256T &&value)
Definition TestCase.h:248
void SetStatus(TestCaseStatus value)
Definition TestCase.h:171
bool LastModifiedRegionHasBeenSet() const
Definition TestCase.h:204
void SetContent(ContentT &&value)
Definition TestCase.h:99
bool TestCaseSha256HasBeenSet() const
Definition TestCase.h:246
TestCase & WithContent(ContentT &&value)
Definition TestCase.h:104
TestCase & WithEntryPoint(EntryPointT &&value)
Definition TestCase.h:123
void SetArn(ArnT &&value)
Definition TestCase.h:45
const Aws::String & GetArn() const
Definition TestCase.h:42
TestCaseStatus GetStatus() const
Definition TestCase.h:169
TestCase & WithInitializationData(InitializationDataT &&value)
Definition TestCase.h:141
const Aws::String & GetTestCaseSha256() const
Definition TestCase.h:245
const Aws::String & GetName() const
Definition TestCase.h:78
bool DescriptionHasBeenSet() const
Definition TestCase.h:152
const Aws::String & GetInitializationData() const
Definition TestCase.h:133
TestCase & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition TestCase.h:193
const TestCaseEntryPoint & GetEntryPoint() const
Definition TestCase.h:115
TestCase & WithTags(TagsT &&value)
Definition TestCase.h:229
void SetDescription(DescriptionT &&value)
Definition TestCase.h:154
void SetTags(TagsT &&value)
Definition TestCase.h:224
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue