AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
UpdateTestCaseRequest.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/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API UpdateTestCaseRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateTestCase"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
41 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
42 template <typename InstanceIdT = Aws::String>
43 void SetInstanceId(InstanceIdT&& value) {
44 m_instanceIdHasBeenSet = true;
45 m_instanceId = std::forward<InstanceIdT>(value);
46 }
47 template <typename InstanceIdT = Aws::String>
48 UpdateTestCaseRequest& WithInstanceId(InstanceIdT&& value) {
49 SetInstanceId(std::forward<InstanceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTestCaseId() const { return m_testCaseId; }
59 inline bool TestCaseIdHasBeenSet() const { return m_testCaseIdHasBeenSet; }
60 template <typename TestCaseIdT = Aws::String>
61 void SetTestCaseId(TestCaseIdT&& value) {
62 m_testCaseIdHasBeenSet = true;
63 m_testCaseId = std::forward<TestCaseIdT>(value);
64 }
65 template <typename TestCaseIdT = Aws::String>
66 UpdateTestCaseRequest& WithTestCaseId(TestCaseIdT&& value) {
67 SetTestCaseId(std::forward<TestCaseIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetContent() const { return m_content; }
77 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
78 template <typename ContentT = Aws::String>
79 void SetContent(ContentT&& value) {
80 m_contentHasBeenSet = true;
81 m_content = std::forward<ContentT>(value);
82 }
83 template <typename ContentT = Aws::String>
85 SetContent(std::forward<ContentT>(value));
86 return *this;
87 }
89
91
94 inline const TestCaseEntryPoint& GetEntryPoint() const { return m_entryPoint; }
95 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
96 template <typename EntryPointT = TestCaseEntryPoint>
97 void SetEntryPoint(EntryPointT&& value) {
98 m_entryPointHasBeenSet = true;
99 m_entryPoint = std::forward<EntryPointT>(value);
100 }
101 template <typename EntryPointT = TestCaseEntryPoint>
102 UpdateTestCaseRequest& WithEntryPoint(EntryPointT&& value) {
103 SetEntryPoint(std::forward<EntryPointT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetInitializationData() const { return m_initializationData; }
113 inline bool InitializationDataHasBeenSet() const { return m_initializationDataHasBeenSet; }
114 template <typename InitializationDataT = Aws::String>
115 void SetInitializationData(InitializationDataT&& value) {
116 m_initializationDataHasBeenSet = true;
117 m_initializationData = std::forward<InitializationDataT>(value);
118 }
119 template <typename InitializationDataT = Aws::String>
120 UpdateTestCaseRequest& WithInitializationData(InitializationDataT&& value) {
121 SetInitializationData(std::forward<InitializationDataT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetName() const { return m_name; }
131 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
132 template <typename NameT = Aws::String>
133 void SetName(NameT&& value) {
134 m_nameHasBeenSet = true;
135 m_name = std::forward<NameT>(value);
136 }
137 template <typename NameT = Aws::String>
139 SetName(std::forward<NameT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDescription() const { return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 template <typename DescriptionT = Aws::String>
151 void SetDescription(DescriptionT&& value) {
152 m_descriptionHasBeenSet = true;
153 m_description = std::forward<DescriptionT>(value);
154 }
155 template <typename DescriptionT = Aws::String>
156 UpdateTestCaseRequest& WithDescription(DescriptionT&& value) {
157 SetDescription(std::forward<DescriptionT>(value));
158 return *this;
159 }
161
163
168 inline TestCaseStatus GetStatus() const { return m_status; }
169 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
170 inline void SetStatus(TestCaseStatus value) {
171 m_statusHasBeenSet = true;
172 m_status = value;
173 }
175 SetStatus(value);
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
185 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
186 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
187 void SetLastModifiedTime(LastModifiedTimeT&& value) {
188 m_lastModifiedTimeHasBeenSet = true;
189 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
190 }
191 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
192 UpdateTestCaseRequest& WithLastModifiedTime(LastModifiedTimeT&& value) {
193 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
203 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
204 template <typename LastModifiedRegionT = Aws::String>
205 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
206 m_lastModifiedRegionHasBeenSet = true;
207 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
208 }
209 template <typename LastModifiedRegionT = Aws::String>
210 UpdateTestCaseRequest& WithLastModifiedRegion(LastModifiedRegionT&& value) {
211 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_instanceId;
217
218 Aws::String m_testCaseId;
219
220 Aws::String m_content;
221
222 TestCaseEntryPoint m_entryPoint;
223
224 Aws::String m_initializationData;
225
226 Aws::String m_name;
227
228 Aws::String m_description;
229
231
232 Aws::Utils::DateTime m_lastModifiedTime{};
233
234 Aws::String m_lastModifiedRegion;
235 bool m_instanceIdHasBeenSet = false;
236 bool m_testCaseIdHasBeenSet = false;
237 bool m_contentHasBeenSet = false;
238 bool m_entryPointHasBeenSet = false;
239 bool m_initializationDataHasBeenSet = false;
240 bool m_nameHasBeenSet = false;
241 bool m_descriptionHasBeenSet = false;
242 bool m_statusHasBeenSet = false;
243 bool m_lastModifiedTimeHasBeenSet = false;
244 bool m_lastModifiedRegionHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace Connect
249} // namespace Aws
AWS_CONNECT_API UpdateTestCaseRequest()=default
UpdateTestCaseRequest & WithInstanceId(InstanceIdT &&value)
UpdateTestCaseRequest & WithStatus(TestCaseStatus value)
AWS_CONNECT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateTestCaseRequest & WithDescription(DescriptionT &&value)
void SetInitializationData(InitializationDataT &&value)
UpdateTestCaseRequest & WithLastModifiedRegion(LastModifiedRegionT &&value)
AWS_CONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTestCaseRequest & WithTestCaseId(TestCaseIdT &&value)
UpdateTestCaseRequest & WithInitializationData(InitializationDataT &&value)
UpdateTestCaseRequest & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
UpdateTestCaseRequest & WithContent(ContentT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
UpdateTestCaseRequest & WithName(NameT &&value)
UpdateTestCaseRequest & WithEntryPoint(EntryPointT &&value)
const TestCaseEntryPoint & GetEntryPoint() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String