AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
CreatePromptRouterRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/PromptRouterTargetModel.h>
10#include <aws/bedrock/model/RoutingCriteria.h>
11#include <aws/bedrock/model/Tag.h>
12#include <aws/core/utils/UUID.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 Bedrock {
20namespace Model {
21
25 public:
26 AWS_BEDROCK_API CreatePromptRouterRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePromptRouter"; }
33
34 AWS_BEDROCK_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
43 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
44 template <typename ClientRequestTokenT = Aws::String>
45 void SetClientRequestToken(ClientRequestTokenT&& value) {
46 m_clientRequestTokenHasBeenSet = true;
47 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
48 }
49 template <typename ClientRequestTokenT = Aws::String>
50 CreatePromptRouterRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
51 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetPromptRouterName() const { return m_promptRouterName; }
62 inline bool PromptRouterNameHasBeenSet() const { return m_promptRouterNameHasBeenSet; }
63 template <typename PromptRouterNameT = Aws::String>
64 void SetPromptRouterName(PromptRouterNameT&& value) {
65 m_promptRouterNameHasBeenSet = true;
66 m_promptRouterName = std::forward<PromptRouterNameT>(value);
67 }
68 template <typename PromptRouterNameT = Aws::String>
69 CreatePromptRouterRequest& WithPromptRouterName(PromptRouterNameT&& value) {
70 SetPromptRouterName(std::forward<PromptRouterNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<PromptRouterTargetModel>& GetModels() const { return m_models; }
81 inline bool ModelsHasBeenSet() const { return m_modelsHasBeenSet; }
82 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
83 void SetModels(ModelsT&& value) {
84 m_modelsHasBeenSet = true;
85 m_models = std::forward<ModelsT>(value);
86 }
87 template <typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
89 SetModels(std::forward<ModelsT>(value));
90 return *this;
91 }
92 template <typename ModelsT = PromptRouterTargetModel>
94 m_modelsHasBeenSet = true;
95 m_models.emplace_back(std::forward<ModelsT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
124 inline const RoutingCriteria& GetRoutingCriteria() const { return m_routingCriteria; }
125 inline bool RoutingCriteriaHasBeenSet() const { return m_routingCriteriaHasBeenSet; }
126 template <typename RoutingCriteriaT = RoutingCriteria>
127 void SetRoutingCriteria(RoutingCriteriaT&& value) {
128 m_routingCriteriaHasBeenSet = true;
129 m_routingCriteria = std::forward<RoutingCriteriaT>(value);
130 }
131 template <typename RoutingCriteriaT = RoutingCriteria>
133 SetRoutingCriteria(std::forward<RoutingCriteriaT>(value));
134 return *this;
135 }
137
139
142 inline const PromptRouterTargetModel& GetFallbackModel() const { return m_fallbackModel; }
143 inline bool FallbackModelHasBeenSet() const { return m_fallbackModelHasBeenSet; }
144 template <typename FallbackModelT = PromptRouterTargetModel>
145 void SetFallbackModel(FallbackModelT&& value) {
146 m_fallbackModelHasBeenSet = true;
147 m_fallbackModel = std::forward<FallbackModelT>(value);
148 }
149 template <typename FallbackModelT = PromptRouterTargetModel>
151 SetFallbackModel(std::forward<FallbackModelT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Vector<Tag>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Vector<Tag>>
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsT = Tag>
175 m_tagsHasBeenSet = true;
176 m_tags.emplace_back(std::forward<TagsT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
182 bool m_clientRequestTokenHasBeenSet = true;
183
184 Aws::String m_promptRouterName;
185 bool m_promptRouterNameHasBeenSet = false;
186
188 bool m_modelsHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 RoutingCriteria m_routingCriteria;
194 bool m_routingCriteriaHasBeenSet = false;
195
196 PromptRouterTargetModel m_fallbackModel;
197 bool m_fallbackModelHasBeenSet = false;
198
199 Aws::Vector<Tag> m_tags;
200 bool m_tagsHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Bedrock
205} // namespace Aws
AWS_BEDROCK_API CreatePromptRouterRequest()=default
CreatePromptRouterRequest & AddTags(TagsT &&value)
CreatePromptRouterRequest & WithModels(ModelsT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
const Aws::Vector< PromptRouterTargetModel > & GetModels() const
CreatePromptRouterRequest & WithPromptRouterName(PromptRouterNameT &&value)
CreatePromptRouterRequest & WithTags(TagsT &&value)
CreatePromptRouterRequest & WithDescription(DescriptionT &&value)
CreatePromptRouterRequest & WithRoutingCriteria(RoutingCriteriaT &&value)
CreatePromptRouterRequest & WithFallbackModel(FallbackModelT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreatePromptRouterRequest & AddModels(ModelsT &&value)
const PromptRouterTargetModel & GetFallbackModel() const
CreatePromptRouterRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector