AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetPromptRouterResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/PromptRouterStatus.h>
9#include <aws/bedrock/model/PromptRouterTargetModel.h>
10#include <aws/bedrock/model/PromptRouterType.h>
11#include <aws/bedrock/model/RoutingCriteria.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Bedrock {
29namespace Model {
31 public:
32 AWS_BEDROCK_API GetPromptRouterResult() = default;
35
37
40 inline const Aws::String& GetPromptRouterName() const { return m_promptRouterName; }
41 template <typename PromptRouterNameT = Aws::String>
43 m_promptRouterNameHasBeenSet = true;
44 m_promptRouterName = std::forward<PromptRouterNameT>(value);
45 }
46 template <typename PromptRouterNameT = Aws::String>
48 SetPromptRouterName(std::forward<PromptRouterNameT>(value));
49 return *this;
50 }
52
54
57 inline const RoutingCriteria& GetRoutingCriteria() const { return m_routingCriteria; }
58 template <typename RoutingCriteriaT = RoutingCriteria>
60 m_routingCriteriaHasBeenSet = true;
61 m_routingCriteria = std::forward<RoutingCriteriaT>(value);
62 }
63 template <typename RoutingCriteriaT = RoutingCriteria>
65 SetRoutingCriteria(std::forward<RoutingCriteriaT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
93 void SetCreatedAt(CreatedAtT&& value) {
94 m_createdAtHasBeenSet = true;
95 m_createdAt = std::forward<CreatedAtT>(value);
96 }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
99 SetCreatedAt(std::forward<CreatedAtT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
109 template <typename UpdatedAtT = Aws::Utils::DateTime>
110 void SetUpdatedAt(UpdatedAtT&& value) {
111 m_updatedAtHasBeenSet = true;
112 m_updatedAt = std::forward<UpdatedAtT>(value);
113 }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
116 SetUpdatedAt(std::forward<UpdatedAtT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetPromptRouterArn() const { return m_promptRouterArn; }
126 template <typename PromptRouterArnT = Aws::String>
128 m_promptRouterArnHasBeenSet = true;
129 m_promptRouterArn = std::forward<PromptRouterArnT>(value);
130 }
131 template <typename PromptRouterArnT = Aws::String>
133 SetPromptRouterArn(std::forward<PromptRouterArnT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<PromptRouterTargetModel>& GetModels() const { return m_models; }
143 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
144 void SetModels(ModelsT&& value) {
145 m_modelsHasBeenSet = true;
146 m_models = std::forward<ModelsT>(value);
147 }
148 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
150 SetModels(std::forward<ModelsT>(value));
151 return *this;
152 }
153 template <typename ModelsT = PromptRouterTargetModel>
155 m_modelsHasBeenSet = true;
156 m_models.emplace_back(std::forward<ModelsT>(value));
157 return *this;
158 }
160
162
165 inline const PromptRouterTargetModel& GetFallbackModel() const { return m_fallbackModel; }
166 template <typename FallbackModelT = PromptRouterTargetModel>
168 m_fallbackModelHasBeenSet = true;
169 m_fallbackModel = std::forward<FallbackModelT>(value);
170 }
171 template <typename FallbackModelT = PromptRouterTargetModel>
173 SetFallbackModel(std::forward<FallbackModelT>(value));
174 return *this;
175 }
177
179
182 inline PromptRouterStatus GetStatus() const { return m_status; }
183 inline void SetStatus(PromptRouterStatus value) {
184 m_statusHasBeenSet = true;
185 m_status = value;
186 }
188 SetStatus(value);
189 return *this;
190 }
192
194
197 inline PromptRouterType GetType() const { return m_type; }
198 inline void SetType(PromptRouterType value) {
199 m_typeHasBeenSet = true;
200 m_type = value;
201 }
203 SetType(value);
204 return *this;
205 }
207
209
210 inline const Aws::String& GetRequestId() const { return m_requestId; }
211 template <typename RequestIdT = Aws::String>
212 void SetRequestId(RequestIdT&& value) {
213 m_requestIdHasBeenSet = true;
214 m_requestId = std::forward<RequestIdT>(value);
215 }
216 template <typename RequestIdT = Aws::String>
218 SetRequestId(std::forward<RequestIdT>(value));
219 return *this;
220 }
222 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
223
224 private:
225 Aws::String m_promptRouterName;
226
227 RoutingCriteria m_routingCriteria;
228
229 Aws::String m_description;
230
231 Aws::Utils::DateTime m_createdAt{};
232
233 Aws::Utils::DateTime m_updatedAt{};
234
235 Aws::String m_promptRouterArn;
236
238
239 PromptRouterTargetModel m_fallbackModel;
240
242
244
245 Aws::String m_requestId;
246 Aws::Http::HttpResponseCode m_HttpResponseCode;
247 bool m_promptRouterNameHasBeenSet = false;
248 bool m_routingCriteriaHasBeenSet = false;
249 bool m_descriptionHasBeenSet = false;
250 bool m_createdAtHasBeenSet = false;
251 bool m_updatedAtHasBeenSet = false;
252 bool m_promptRouterArnHasBeenSet = false;
253 bool m_modelsHasBeenSet = false;
254 bool m_fallbackModelHasBeenSet = false;
255 bool m_statusHasBeenSet = false;
256 bool m_typeHasBeenSet = false;
257 bool m_requestIdHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace Bedrock
262} // namespace Aws
GetPromptRouterResult & WithRequestId(RequestIdT &&value)
GetPromptRouterResult & WithRoutingCriteria(RoutingCriteriaT &&value)
GetPromptRouterResult & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetPromptRouterResult & WithPromptRouterName(PromptRouterNameT &&value)
AWS_BEDROCK_API GetPromptRouterResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPromptRouterName(PromptRouterNameT &&value)
GetPromptRouterResult & WithStatus(PromptRouterStatus value)
AWS_BEDROCK_API GetPromptRouterResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
const PromptRouterTargetModel & GetFallbackModel() const
GetPromptRouterResult & WithUpdatedAt(UpdatedAtT &&value)
GetPromptRouterResult & WithFallbackModel(FallbackModelT &&value)
GetPromptRouterResult & WithPromptRouterArn(PromptRouterArnT &&value)
AWS_BEDROCK_API GetPromptRouterResult()=default
void SetRoutingCriteria(RoutingCriteriaT &&value)
GetPromptRouterResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< PromptRouterTargetModel > & GetModels() const
GetPromptRouterResult & AddModels(ModelsT &&value)
GetPromptRouterResult & WithModels(ModelsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetPromptRouterArn(PromptRouterArnT &&value)
GetPromptRouterResult & WithType(PromptRouterType value)
const RoutingCriteria & GetRoutingCriteria() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue