AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
StartTestExecutionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/TestExecutionApiMode.h>
12#include <aws/lexv2-models/model/TestExecutionModality.h>
13#include <aws/lexv2-models/model/TestExecutionTarget.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2 {
27namespace Model {
29 public:
30 AWS_LEXMODELSV2_API StartTestExecutionResult() = default;
33
35
38 inline const Aws::String& GetTestExecutionId() const { return m_testExecutionId; }
39 template <typename TestExecutionIdT = Aws::String>
40 void SetTestExecutionId(TestExecutionIdT&& value) {
41 m_testExecutionIdHasBeenSet = true;
42 m_testExecutionId = std::forward<TestExecutionIdT>(value);
43 }
44 template <typename TestExecutionIdT = Aws::String>
45 StartTestExecutionResult& WithTestExecutionId(TestExecutionIdT&& value) {
46 SetTestExecutionId(std::forward<TestExecutionIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
56 template <typename CreationDateTimeT = Aws::Utils::DateTime>
57 void SetCreationDateTime(CreationDateTimeT&& value) {
58 m_creationDateTimeHasBeenSet = true;
59 m_creationDateTime = std::forward<CreationDateTimeT>(value);
60 }
61 template <typename CreationDateTimeT = Aws::Utils::DateTime>
62 StartTestExecutionResult& WithCreationDateTime(CreationDateTimeT&& value) {
63 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetTestSetId() const { return m_testSetId; }
73 template <typename TestSetIdT = Aws::String>
74 void SetTestSetId(TestSetIdT&& value) {
75 m_testSetIdHasBeenSet = true;
76 m_testSetId = std::forward<TestSetIdT>(value);
77 }
78 template <typename TestSetIdT = Aws::String>
80 SetTestSetId(std::forward<TestSetIdT>(value));
81 return *this;
82 }
84
86
89 inline const TestExecutionTarget& GetTarget() const { return m_target; }
90 template <typename TargetT = TestExecutionTarget>
91 void SetTarget(TargetT&& value) {
92 m_targetHasBeenSet = true;
93 m_target = std::forward<TargetT>(value);
94 }
95 template <typename TargetT = TestExecutionTarget>
97 SetTarget(std::forward<TargetT>(value));
98 return *this;
99 }
101
103
109 inline TestExecutionApiMode GetApiMode() const { return m_apiMode; }
110 inline void SetApiMode(TestExecutionApiMode value) {
111 m_apiModeHasBeenSet = true;
112 m_apiMode = value;
113 }
115 SetApiMode(value);
116 return *this;
117 }
119
121
124 inline TestExecutionModality GetTestExecutionModality() const { return m_testExecutionModality; }
126 m_testExecutionModalityHasBeenSet = true;
127 m_testExecutionModality = value;
128 }
131 return *this;
132 }
134
136
137 inline const Aws::String& GetRequestId() const { return m_requestId; }
138 template <typename RequestIdT = Aws::String>
139 void SetRequestId(RequestIdT&& value) {
140 m_requestIdHasBeenSet = true;
141 m_requestId = std::forward<RequestIdT>(value);
142 }
143 template <typename RequestIdT = Aws::String>
145 SetRequestId(std::forward<RequestIdT>(value));
146 return *this;
147 }
149 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
150
151 private:
152 Aws::String m_testExecutionId;
153
154 Aws::Utils::DateTime m_creationDateTime{};
155
156 Aws::String m_testSetId;
157
158 TestExecutionTarget m_target;
159
161
163
164 Aws::String m_requestId;
165 Aws::Http::HttpResponseCode m_HttpResponseCode;
166 bool m_testExecutionIdHasBeenSet = false;
167 bool m_creationDateTimeHasBeenSet = false;
168 bool m_testSetIdHasBeenSet = false;
169 bool m_targetHasBeenSet = false;
170 bool m_apiModeHasBeenSet = false;
171 bool m_testExecutionModalityHasBeenSet = false;
172 bool m_requestIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace LexModelsV2
177} // namespace Aws
StartTestExecutionResult & WithTestSetId(TestSetIdT &&value)
StartTestExecutionResult & WithTestExecutionId(TestExecutionIdT &&value)
StartTestExecutionResult & WithCreationDateTime(CreationDateTimeT &&value)
StartTestExecutionResult & WithTestExecutionModality(TestExecutionModality value)
StartTestExecutionResult & WithTarget(TargetT &&value)
StartTestExecutionResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
AWS_LEXMODELSV2_API StartTestExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartTestExecutionResult & WithApiMode(TestExecutionApiMode value)
AWS_LEXMODELSV2_API StartTestExecutionResult()=default
AWS_LEXMODELSV2_API StartTestExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue