AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Bedrock {
28namespace Model {
30 public:
31 AWS_BEDROCK_API GetPromptRouterResult() = default;
34
36
39 inline const Aws::String& GetPromptRouterName() const { return m_promptRouterName; }
40 template <typename PromptRouterNameT = Aws::String>
41 void SetPromptRouterName(PromptRouterNameT&& value) {
42 m_promptRouterNameHasBeenSet = true;
43 m_promptRouterName = std::forward<PromptRouterNameT>(value);
44 }
45 template <typename PromptRouterNameT = Aws::String>
46 GetPromptRouterResult& WithPromptRouterName(PromptRouterNameT&& value) {
47 SetPromptRouterName(std::forward<PromptRouterNameT>(value));
48 return *this;
49 }
51
53
56 inline const RoutingCriteria& GetRoutingCriteria() const { return m_routingCriteria; }
57 template <typename RoutingCriteriaT = RoutingCriteria>
58 void SetRoutingCriteria(RoutingCriteriaT&& value) {
59 m_routingCriteriaHasBeenSet = true;
60 m_routingCriteria = std::forward<RoutingCriteriaT>(value);
61 }
62 template <typename RoutingCriteriaT = RoutingCriteria>
63 GetPromptRouterResult& WithRoutingCriteria(RoutingCriteriaT&& value) {
64 SetRoutingCriteria(std::forward<RoutingCriteriaT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 GetPromptRouterResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
91 template <typename CreatedAtT = Aws::Utils::DateTime>
92 void SetCreatedAt(CreatedAtT&& value) {
93 m_createdAtHasBeenSet = true;
94 m_createdAt = std::forward<CreatedAtT>(value);
95 }
96 template <typename CreatedAtT = Aws::Utils::DateTime>
97 GetPromptRouterResult& WithCreatedAt(CreatedAtT&& value) {
98 SetCreatedAt(std::forward<CreatedAtT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
108 template <typename UpdatedAtT = Aws::Utils::DateTime>
109 void SetUpdatedAt(UpdatedAtT&& value) {
110 m_updatedAtHasBeenSet = true;
111 m_updatedAt = std::forward<UpdatedAtT>(value);
112 }
113 template <typename UpdatedAtT = Aws::Utils::DateTime>
115 SetUpdatedAt(std::forward<UpdatedAtT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetPromptRouterArn() const { return m_promptRouterArn; }
125 template <typename PromptRouterArnT = Aws::String>
126 void SetPromptRouterArn(PromptRouterArnT&& value) {
127 m_promptRouterArnHasBeenSet = true;
128 m_promptRouterArn = std::forward<PromptRouterArnT>(value);
129 }
130 template <typename PromptRouterArnT = Aws::String>
131 GetPromptRouterResult& WithPromptRouterArn(PromptRouterArnT&& value) {
132 SetPromptRouterArn(std::forward<PromptRouterArnT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Vector<PromptRouterTargetModel>& GetModels() const { return m_models; }
142 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
143 void SetModels(ModelsT&& value) {
144 m_modelsHasBeenSet = true;
145 m_models = std::forward<ModelsT>(value);
146 }
147 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
149 SetModels(std::forward<ModelsT>(value));
150 return *this;
151 }
152 template <typename ModelsT = PromptRouterTargetModel>
154 m_modelsHasBeenSet = true;
155 m_models.emplace_back(std::forward<ModelsT>(value));
156 return *this;
157 }
159
161
164 inline const PromptRouterTargetModel& GetFallbackModel() const { return m_fallbackModel; }
165 template <typename FallbackModelT = PromptRouterTargetModel>
166 void SetFallbackModel(FallbackModelT&& value) {
167 m_fallbackModelHasBeenSet = true;
168 m_fallbackModel = std::forward<FallbackModelT>(value);
169 }
170 template <typename FallbackModelT = PromptRouterTargetModel>
171 GetPromptRouterResult& WithFallbackModel(FallbackModelT&& value) {
172 SetFallbackModel(std::forward<FallbackModelT>(value));
173 return *this;
174 }
176
178
181 inline PromptRouterStatus GetStatus() const { return m_status; }
182 inline void SetStatus(PromptRouterStatus value) {
183 m_statusHasBeenSet = true;
184 m_status = value;
185 }
187 SetStatus(value);
188 return *this;
189 }
191
193
196 inline PromptRouterType GetType() const { return m_type; }
197 inline void SetType(PromptRouterType value) {
198 m_typeHasBeenSet = true;
199 m_type = value;
200 }
202 SetType(value);
203 return *this;
204 }
206
208
209 inline const Aws::String& GetRequestId() const { return m_requestId; }
210 template <typename RequestIdT = Aws::String>
211 void SetRequestId(RequestIdT&& value) {
212 m_requestIdHasBeenSet = true;
213 m_requestId = std::forward<RequestIdT>(value);
214 }
215 template <typename RequestIdT = Aws::String>
217 SetRequestId(std::forward<RequestIdT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_promptRouterName;
223 bool m_promptRouterNameHasBeenSet = false;
224
225 RoutingCriteria m_routingCriteria;
226 bool m_routingCriteriaHasBeenSet = false;
227
228 Aws::String m_description;
229 bool m_descriptionHasBeenSet = false;
230
231 Aws::Utils::DateTime m_createdAt{};
232 bool m_createdAtHasBeenSet = false;
233
234 Aws::Utils::DateTime m_updatedAt{};
235 bool m_updatedAtHasBeenSet = false;
236
237 Aws::String m_promptRouterArn;
238 bool m_promptRouterArnHasBeenSet = false;
239
241 bool m_modelsHasBeenSet = false;
242
243 PromptRouterTargetModel m_fallbackModel;
244 bool m_fallbackModelHasBeenSet = false;
245
247 bool m_statusHasBeenSet = false;
248
250 bool m_typeHasBeenSet = false;
251
252 Aws::String m_requestId;
253 bool m_requestIdHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace Bedrock
258} // 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)
void SetPromptRouterArn(PromptRouterArnT &&value)
GetPromptRouterResult & WithType(PromptRouterType value)
const RoutingCriteria & GetRoutingCriteria() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue