AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PromptRouterSummary.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 {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Bedrock {
26namespace Model {
27
34 public:
35 AWS_BEDROCK_API PromptRouterSummary() = default;
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetPromptRouterName() const { return m_promptRouterName; }
45 inline bool PromptRouterNameHasBeenSet() const { return m_promptRouterNameHasBeenSet; }
46 template <typename PromptRouterNameT = Aws::String>
47 void SetPromptRouterName(PromptRouterNameT&& value) {
48 m_promptRouterNameHasBeenSet = true;
49 m_promptRouterName = std::forward<PromptRouterNameT>(value);
50 }
51 template <typename PromptRouterNameT = Aws::String>
52 PromptRouterSummary& WithPromptRouterName(PromptRouterNameT&& value) {
53 SetPromptRouterName(std::forward<PromptRouterNameT>(value));
54 return *this;
55 }
57
59
62 inline const RoutingCriteria& GetRoutingCriteria() const { return m_routingCriteria; }
63 inline bool RoutingCriteriaHasBeenSet() const { return m_routingCriteriaHasBeenSet; }
64 template <typename RoutingCriteriaT = RoutingCriteria>
65 void SetRoutingCriteria(RoutingCriteriaT&& value) {
66 m_routingCriteriaHasBeenSet = true;
67 m_routingCriteria = std::forward<RoutingCriteriaT>(value);
68 }
69 template <typename RoutingCriteriaT = RoutingCriteria>
70 PromptRouterSummary& WithRoutingCriteria(RoutingCriteriaT&& value) {
71 SetRoutingCriteria(std::forward<RoutingCriteriaT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 PromptRouterSummary& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) {
102 m_createdAtHasBeenSet = true;
103 m_createdAt = std::forward<CreatedAtT>(value);
104 }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 PromptRouterSummary& WithCreatedAt(CreatedAtT&& value) {
107 SetCreatedAt(std::forward<CreatedAtT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
117 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
118 template <typename UpdatedAtT = Aws::Utils::DateTime>
119 void SetUpdatedAt(UpdatedAtT&& value) {
120 m_updatedAtHasBeenSet = true;
121 m_updatedAt = std::forward<UpdatedAtT>(value);
122 }
123 template <typename UpdatedAtT = Aws::Utils::DateTime>
124 PromptRouterSummary& WithUpdatedAt(UpdatedAtT&& value) {
125 SetUpdatedAt(std::forward<UpdatedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetPromptRouterArn() const { return m_promptRouterArn; }
135 inline bool PromptRouterArnHasBeenSet() const { return m_promptRouterArnHasBeenSet; }
136 template <typename PromptRouterArnT = Aws::String>
137 void SetPromptRouterArn(PromptRouterArnT&& value) {
138 m_promptRouterArnHasBeenSet = true;
139 m_promptRouterArn = std::forward<PromptRouterArnT>(value);
140 }
141 template <typename PromptRouterArnT = Aws::String>
142 PromptRouterSummary& WithPromptRouterArn(PromptRouterArnT&& value) {
143 SetPromptRouterArn(std::forward<PromptRouterArnT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Vector<PromptRouterTargetModel>& GetModels() const { return m_models; }
153 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
154 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
155 void SetModels(ModelsT&& value) {
156 m_modelsHasBeenSet = true;
157 m_models = std::forward<ModelsT>(value);
158 }
159 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
160 PromptRouterSummary& WithModels(ModelsT&& value) {
161 SetModels(std::forward<ModelsT>(value));
162 return *this;
163 }
164 template <typename ModelsT = PromptRouterTargetModel>
165 PromptRouterSummary& AddModels(ModelsT&& value) {
166 m_modelsHasBeenSet = true;
167 m_models.emplace_back(std::forward<ModelsT>(value));
168 return *this;
169 }
171
173
176 inline const PromptRouterTargetModel& GetFallbackModel() const { return m_fallbackModel; }
177 inline bool FallbackModelHasBeenSet() const { return m_fallbackModelHasBeenSet; }
178 template <typename FallbackModelT = PromptRouterTargetModel>
179 void SetFallbackModel(FallbackModelT&& value) {
180 m_fallbackModelHasBeenSet = true;
181 m_fallbackModel = std::forward<FallbackModelT>(value);
182 }
183 template <typename FallbackModelT = PromptRouterTargetModel>
184 PromptRouterSummary& WithFallbackModel(FallbackModelT&& value) {
185 SetFallbackModel(std::forward<FallbackModelT>(value));
186 return *this;
187 }
189
191
194 inline PromptRouterStatus GetStatus() const { return m_status; }
195 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
196 inline void SetStatus(PromptRouterStatus value) {
197 m_statusHasBeenSet = true;
198 m_status = value;
199 }
201 SetStatus(value);
202 return *this;
203 }
205
207
210 inline PromptRouterType GetType() const { return m_type; }
211 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
212 inline void SetType(PromptRouterType value) {
213 m_typeHasBeenSet = true;
214 m_type = value;
215 }
217 SetType(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
253} // namespace Model
254} // namespace Bedrock
255} // namespace Aws
PromptRouterSummary & WithRoutingCriteria(RoutingCriteriaT &&value)
AWS_BEDROCK_API PromptRouterSummary(Aws::Utils::Json::JsonView jsonValue)
const RoutingCriteria & GetRoutingCriteria() const
PromptRouterSummary & AddModels(ModelsT &&value)
const PromptRouterTargetModel & GetFallbackModel() const
void SetPromptRouterName(PromptRouterNameT &&value)
PromptRouterSummary & WithDescription(DescriptionT &&value)
void SetStatus(PromptRouterStatus value)
void SetPromptRouterArn(PromptRouterArnT &&value)
PromptRouterSummary & WithType(PromptRouterType value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
PromptRouterSummary & WithPromptRouterArn(PromptRouterArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetPromptRouterName() const
void SetRoutingCriteria(RoutingCriteriaT &&value)
PromptRouterSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
PromptRouterSummary & WithFallbackModel(FallbackModelT &&value)
void SetFallbackModel(FallbackModelT &&value)
PromptRouterSummary & WithPromptRouterName(PromptRouterNameT &&value)
const Aws::String & GetPromptRouterArn() const
PromptRouterSummary & WithStatus(PromptRouterStatus value)
PromptRouterSummary & WithModels(ModelsT &&value)
const Aws::Vector< PromptRouterTargetModel > & GetModels() const
PromptRouterSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_BEDROCK_API PromptRouterSummary()=default
AWS_BEDROCK_API PromptRouterSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue