AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
PromptRouterSummary.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/RoutingCriteria.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock/model/PromptRouterTargetModel.h>
13#include <aws/bedrock/model/PromptRouterStatus.h>
14#include <aws/bedrock/model/PromptRouterType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Bedrock
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_BEDROCK_API PromptRouterSummary() = default;
43 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetPromptRouterName() const { return m_promptRouterName; }
51 inline bool PromptRouterNameHasBeenSet() const { return m_promptRouterNameHasBeenSet; }
52 template<typename PromptRouterNameT = Aws::String>
53 void SetPromptRouterName(PromptRouterNameT&& value) { m_promptRouterNameHasBeenSet = true; m_promptRouterName = std::forward<PromptRouterNameT>(value); }
54 template<typename PromptRouterNameT = Aws::String>
55 PromptRouterSummary& WithPromptRouterName(PromptRouterNameT&& value) { SetPromptRouterName(std::forward<PromptRouterNameT>(value)); return *this;}
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) { m_routingCriteriaHasBeenSet = true; m_routingCriteria = std::forward<RoutingCriteriaT>(value); }
66 template<typename RoutingCriteriaT = RoutingCriteria>
67 PromptRouterSummary& WithRoutingCriteria(RoutingCriteriaT&& value) { SetRoutingCriteria(std::forward<RoutingCriteriaT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 PromptRouterSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
87 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
88 template<typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
90 template<typename CreatedAtT = Aws::Utils::DateTime>
91 PromptRouterSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
99 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
100 template<typename UpdatedAtT = Aws::Utils::DateTime>
101 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
102 template<typename UpdatedAtT = Aws::Utils::DateTime>
103 PromptRouterSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
105
107
110 inline const Aws::String& GetPromptRouterArn() const { return m_promptRouterArn; }
111 inline bool PromptRouterArnHasBeenSet() const { return m_promptRouterArnHasBeenSet; }
112 template<typename PromptRouterArnT = Aws::String>
113 void SetPromptRouterArn(PromptRouterArnT&& value) { m_promptRouterArnHasBeenSet = true; m_promptRouterArn = std::forward<PromptRouterArnT>(value); }
114 template<typename PromptRouterArnT = Aws::String>
115 PromptRouterSummary& WithPromptRouterArn(PromptRouterArnT&& value) { SetPromptRouterArn(std::forward<PromptRouterArnT>(value)); return *this;}
117
119
122 inline const Aws::Vector<PromptRouterTargetModel>& GetModels() const { return m_models; }
123 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
124 template<typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
125 void SetModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models = std::forward<ModelsT>(value); }
126 template<typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
127 PromptRouterSummary& WithModels(ModelsT&& value) { SetModels(std::forward<ModelsT>(value)); return *this;}
128 template<typename ModelsT = PromptRouterTargetModel>
129 PromptRouterSummary& AddModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models.emplace_back(std::forward<ModelsT>(value)); return *this; }
131
133
136 inline const PromptRouterTargetModel& GetFallbackModel() const { return m_fallbackModel; }
137 inline bool FallbackModelHasBeenSet() const { return m_fallbackModelHasBeenSet; }
138 template<typename FallbackModelT = PromptRouterTargetModel>
139 void SetFallbackModel(FallbackModelT&& value) { m_fallbackModelHasBeenSet = true; m_fallbackModel = std::forward<FallbackModelT>(value); }
140 template<typename FallbackModelT = PromptRouterTargetModel>
141 PromptRouterSummary& WithFallbackModel(FallbackModelT&& value) { SetFallbackModel(std::forward<FallbackModelT>(value)); return *this;}
143
145
148 inline PromptRouterStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(PromptRouterStatus value) { m_statusHasBeenSet = true; m_status = value; }
151 inline PromptRouterSummary& WithStatus(PromptRouterStatus value) { SetStatus(value); return *this;}
153
155
158 inline PromptRouterType GetType() const { return m_type; }
159 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
160 inline void SetType(PromptRouterType value) { m_typeHasBeenSet = true; m_type = value; }
161 inline PromptRouterSummary& WithType(PromptRouterType value) { SetType(value); return *this;}
163 private:
164
165 Aws::String m_promptRouterName;
166 bool m_promptRouterNameHasBeenSet = false;
167
168 RoutingCriteria m_routingCriteria;
169 bool m_routingCriteriaHasBeenSet = false;
170
171 Aws::String m_description;
172 bool m_descriptionHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createdAt{};
175 bool m_createdAtHasBeenSet = false;
176
177 Aws::Utils::DateTime m_updatedAt{};
178 bool m_updatedAtHasBeenSet = false;
179
180 Aws::String m_promptRouterArn;
181 bool m_promptRouterArnHasBeenSet = false;
182
184 bool m_modelsHasBeenSet = false;
185
186 PromptRouterTargetModel m_fallbackModel;
187 bool m_fallbackModelHasBeenSet = false;
188
190 bool m_statusHasBeenSet = false;
191
193 bool m_typeHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace Bedrock
198} // 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