AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateTestCaseRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/TestCaseEntryPoint.h>
10#include <aws/connect/model/TestCaseStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Connect {
19namespace Model {
20
24 public:
25 AWS_CONNECT_API CreateTestCaseRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateTestCase"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
49 CreateTestCaseRequest& WithInstanceId(InstanceIdT&& value) {
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 CreateTestCaseRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetContent() const { return m_content; }
96 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
97 template <typename ContentT = Aws::String>
98 void SetContent(ContentT&& value) {
99 m_contentHasBeenSet = true;
100 m_content = std::forward<ContentT>(value);
101 }
102 template <typename ContentT = Aws::String>
104 SetContent(std::forward<ContentT>(value));
105 return *this;
106 }
108
110
113 inline const TestCaseEntryPoint& GetEntryPoint() const { return m_entryPoint; }
114 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
115 template <typename EntryPointT = TestCaseEntryPoint>
116 void SetEntryPoint(EntryPointT&& value) {
117 m_entryPointHasBeenSet = true;
118 m_entryPoint = std::forward<EntryPointT>(value);
119 }
120 template <typename EntryPointT = TestCaseEntryPoint>
121 CreateTestCaseRequest& WithEntryPoint(EntryPointT&& value) {
122 SetEntryPoint(std::forward<EntryPointT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetInitializationData() const { return m_initializationData; }
132 inline bool InitializationDataHasBeenSet() const { return m_initializationDataHasBeenSet; }
133 template <typename InitializationDataT = Aws::String>
134 void SetInitializationData(InitializationDataT&& value) {
135 m_initializationDataHasBeenSet = true;
136 m_initializationData = std::forward<InitializationDataT>(value);
137 }
138 template <typename InitializationDataT = Aws::String>
139 CreateTestCaseRequest& WithInitializationData(InitializationDataT&& value) {
140 SetInitializationData(std::forward<InitializationDataT>(value));
141 return *this;
142 }
144
146
151 inline TestCaseStatus GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(TestCaseStatus value) {
154 m_statusHasBeenSet = true;
155 m_status = value;
156 }
158 SetStatus(value);
159 return *this;
160 }
162
164
168 inline const Aws::String& GetTestCaseId() const { return m_testCaseId; }
169 inline bool TestCaseIdHasBeenSet() const { return m_testCaseIdHasBeenSet; }
170 template <typename TestCaseIdT = Aws::String>
171 void SetTestCaseId(TestCaseIdT&& value) {
172 m_testCaseIdHasBeenSet = true;
173 m_testCaseId = std::forward<TestCaseIdT>(value);
174 }
175 template <typename TestCaseIdT = Aws::String>
176 CreateTestCaseRequest& WithTestCaseId(TestCaseIdT&& value) {
177 SetTestCaseId(std::forward<TestCaseIdT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags = std::forward<TagsT>(value);
192 }
193 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 SetTags(std::forward<TagsT>(value));
196 return *this;
197 }
198 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 CreateTestCaseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
211 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
212 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
213 void SetLastModifiedTime(LastModifiedTimeT&& value) {
214 m_lastModifiedTimeHasBeenSet = true;
215 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
216 }
217 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
218 CreateTestCaseRequest& WithLastModifiedTime(LastModifiedTimeT&& value) {
219 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
229 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
230 template <typename LastModifiedRegionT = Aws::String>
231 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
232 m_lastModifiedRegionHasBeenSet = true;
233 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
234 }
235 template <typename LastModifiedRegionT = Aws::String>
236 CreateTestCaseRequest& WithLastModifiedRegion(LastModifiedRegionT&& value) {
237 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_instanceId;
243
244 Aws::String m_name;
245
246 Aws::String m_description;
247
248 Aws::String m_content;
249
250 TestCaseEntryPoint m_entryPoint;
251
252 Aws::String m_initializationData;
253
255
256 Aws::String m_testCaseId;
257
259
260 Aws::Utils::DateTime m_lastModifiedTime{};
261
262 Aws::String m_lastModifiedRegion;
263 bool m_instanceIdHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_descriptionHasBeenSet = false;
266 bool m_contentHasBeenSet = false;
267 bool m_entryPointHasBeenSet = false;
268 bool m_initializationDataHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_testCaseIdHasBeenSet = false;
271 bool m_tagsHasBeenSet = false;
272 bool m_lastModifiedTimeHasBeenSet = false;
273 bool m_lastModifiedRegionHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace Connect
278} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
CreateTestCaseRequest & WithLastModifiedRegion(LastModifiedRegionT &&value)
CreateTestCaseRequest & WithEntryPoint(EntryPointT &&value)
AWS_CONNECT_API CreateTestCaseRequest()=default
void SetLastModifiedRegion(LastModifiedRegionT &&value)
CreateTestCaseRequest & WithDescription(DescriptionT &&value)
AWS_CONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTestCaseRequest & WithName(NameT &&value)
CreateTestCaseRequest & WithInitializationData(InitializationDataT &&value)
CreateTestCaseRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateTestCaseRequest & WithTestCaseId(TestCaseIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
CreateTestCaseRequest & WithStatus(TestCaseStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateTestCaseRequest & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetInitializationData(InitializationDataT &&value)
const TestCaseEntryPoint & GetEntryPoint() const
CreateTestCaseRequest & WithContent(ContentT &&value)
CreateTestCaseRequest & WithTags(TagsT &&value)
CreateTestCaseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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