AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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
134 inline const Aws::String& GetInitializationData() const { return m_initializationData; }
135 inline bool InitializationDataHasBeenSet() const { return m_initializationDataHasBeenSet; }
136 template <typename InitializationDataT = Aws::String>
137 void SetInitializationData(InitializationDataT&& value) {
138 m_initializationDataHasBeenSet = true;
139 m_initializationData = std::forward<InitializationDataT>(value);
140 }
141 template <typename InitializationDataT = Aws::String>
142 TestCase& WithInitializationData(InitializationDataT&& value) {
143 SetInitializationData(std::forward<InitializationDataT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetDescription() const { return m_description; }
153 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
154 template <typename DescriptionT = Aws::String>
155 void SetDescription(DescriptionT&& value) {
156 m_descriptionHasBeenSet = true;
157 m_description = std::forward<DescriptionT>(value);
158 }
159 template <typename DescriptionT = Aws::String>
160 TestCase& WithDescription(DescriptionT&& value) {
161 SetDescription(std::forward<DescriptionT>(value));
162 return *this;
163 }
165
167
170 inline TestCaseStatus GetStatus() const { return m_status; }
171 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 inline void SetStatus(TestCaseStatus value) {
173 m_statusHasBeenSet = true;
174 m_status = value;
175 }
177 SetStatus(value);
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
187 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
188 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
189 void SetLastModifiedTime(LastModifiedTimeT&& value) {
190 m_lastModifiedTimeHasBeenSet = true;
191 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
192 }
193 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
194 TestCase& WithLastModifiedTime(LastModifiedTimeT&& value) {
195 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
205 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
206 template <typename LastModifiedRegionT = Aws::String>
207 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
208 m_lastModifiedRegionHasBeenSet = true;
209 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
210 }
211 template <typename LastModifiedRegionT = Aws::String>
212 TestCase& WithLastModifiedRegion(LastModifiedRegionT&& value) {
213 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
223 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 void SetTags(TagsT&& value) {
226 m_tagsHasBeenSet = true;
227 m_tags = std::forward<TagsT>(value);
228 }
229 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
230 TestCase& WithTags(TagsT&& value) {
231 SetTags(std::forward<TagsT>(value));
232 return *this;
233 }
234 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
235 TestCase& AddTags(TagsKeyT&& key, TagsValueT&& value) {
236 m_tagsHasBeenSet = true;
237 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetTestCaseSha256() const { return m_testCaseSha256; }
247 inline bool TestCaseSha256HasBeenSet() const { return m_testCaseSha256HasBeenSet; }
248 template <typename TestCaseSha256T = Aws::String>
249 void SetTestCaseSha256(TestCaseSha256T&& value) {
250 m_testCaseSha256HasBeenSet = true;
251 m_testCaseSha256 = std::forward<TestCaseSha256T>(value);
252 }
253 template <typename TestCaseSha256T = Aws::String>
254 TestCase& WithTestCaseSha256(TestCaseSha256T&& value) {
255 SetTestCaseSha256(std::forward<TestCaseSha256T>(value));
256 return *this;
257 }
259 private:
260 Aws::String m_arn;
261
262 Aws::String m_id;
263
264 Aws::String m_name;
265
266 Aws::String m_content;
267
268 TestCaseEntryPoint m_entryPoint;
269
270 Aws::String m_initializationData;
271
272 Aws::String m_description;
273
275
276 Aws::Utils::DateTime m_lastModifiedTime{};
277
278 Aws::String m_lastModifiedRegion;
279
281
282 Aws::String m_testCaseSha256;
283 bool m_arnHasBeenSet = false;
284 bool m_idHasBeenSet = false;
285 bool m_nameHasBeenSet = false;
286 bool m_contentHasBeenSet = false;
287 bool m_entryPointHasBeenSet = false;
288 bool m_initializationDataHasBeenSet = false;
289 bool m_descriptionHasBeenSet = false;
290 bool m_statusHasBeenSet = false;
291 bool m_lastModifiedTimeHasBeenSet = false;
292 bool m_lastModifiedRegionHasBeenSet = false;
293 bool m_tagsHasBeenSet = false;
294 bool m_testCaseSha256HasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace Connect
299} // namespace Aws
const Aws::String & GetId() const
Definition TestCase.h:60
TestCase & WithLastModifiedRegion(LastModifiedRegionT &&value)
Definition TestCase.h:212
TestCase & WithId(IdT &&value)
Definition TestCase.h:68
void SetId(IdT &&value)
Definition TestCase.h:63
TestCase & WithTestCaseSha256(TestCaseSha256T &&value)
Definition TestCase.h:254
bool LastModifiedTimeHasBeenSet() const
Definition TestCase.h:187
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:222
bool InitializationDataHasBeenSet() const
Definition TestCase.h:135
bool EntryPointHasBeenSet() const
Definition TestCase.h:116
const Aws::String & GetDescription() const
Definition TestCase.h:152
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition TestCase.h:189
const Aws::String & GetLastModifiedRegion() const
Definition TestCase.h:204
void SetLastModifiedRegion(LastModifiedRegionT &&value)
Definition TestCase.h:207
AWS_CONNECT_API TestCase()=default
const Aws::String & GetContent() const
Definition TestCase.h:96
TestCase & WithStatus(TestCaseStatus value)
Definition TestCase.h:176
void SetInitializationData(InitializationDataT &&value)
Definition TestCase.h:137
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
TestCase & WithDescription(DescriptionT &&value)
Definition TestCase.h:160
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:235
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition TestCase.h:186
AWS_CONNECT_API TestCase(Aws::Utils::Json::JsonView jsonValue)
void SetTestCaseSha256(TestCaseSha256T &&value)
Definition TestCase.h:249
void SetStatus(TestCaseStatus value)
Definition TestCase.h:172
bool LastModifiedRegionHasBeenSet() const
Definition TestCase.h:205
void SetContent(ContentT &&value)
Definition TestCase.h:99
bool TestCaseSha256HasBeenSet() const
Definition TestCase.h:247
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:170
TestCase & WithInitializationData(InitializationDataT &&value)
Definition TestCase.h:142
const Aws::String & GetTestCaseSha256() const
Definition TestCase.h:246
const Aws::String & GetName() const
Definition TestCase.h:78
bool DescriptionHasBeenSet() const
Definition TestCase.h:153
const Aws::String & GetInitializationData() const
Definition TestCase.h:134
TestCase & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition TestCase.h:194
const TestCaseEntryPoint & GetEntryPoint() const
Definition TestCase.h:115
TestCase & WithTags(TagsT &&value)
Definition TestCase.h:230
void SetDescription(DescriptionT &&value)
Definition TestCase.h:155
void SetTags(TagsT &&value)
Definition TestCase.h:225
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