AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GetPromptRouterResult.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{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Bedrock
30{
31namespace Model
32{
34 {
35 public:
36 AWS_BEDROCK_API GetPromptRouterResult() = default;
39
40
42
45 inline const Aws::String& GetPromptRouterName() const { return m_promptRouterName; }
46 template<typename PromptRouterNameT = Aws::String>
47 void SetPromptRouterName(PromptRouterNameT&& value) { m_promptRouterNameHasBeenSet = true; m_promptRouterName = std::forward<PromptRouterNameT>(value); }
48 template<typename PromptRouterNameT = Aws::String>
49 GetPromptRouterResult& WithPromptRouterName(PromptRouterNameT&& value) { SetPromptRouterName(std::forward<PromptRouterNameT>(value)); return *this;}
51
53
56 inline const RoutingCriteria& GetRoutingCriteria() const { return m_routingCriteria; }
57 template<typename RoutingCriteriaT = RoutingCriteria>
58 void SetRoutingCriteria(RoutingCriteriaT&& value) { m_routingCriteriaHasBeenSet = true; m_routingCriteria = std::forward<RoutingCriteriaT>(value); }
59 template<typename RoutingCriteriaT = RoutingCriteria>
60 GetPromptRouterResult& WithRoutingCriteria(RoutingCriteriaT&& value) { SetRoutingCriteria(std::forward<RoutingCriteriaT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 GetPromptRouterResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
79 template<typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
81 template<typename CreatedAtT = Aws::Utils::DateTime>
82 GetPromptRouterResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
90 template<typename UpdatedAtT = Aws::Utils::DateTime>
91 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
92 template<typename UpdatedAtT = Aws::Utils::DateTime>
93 GetPromptRouterResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
95
97
100 inline const Aws::String& GetPromptRouterArn() const { return m_promptRouterArn; }
101 template<typename PromptRouterArnT = Aws::String>
102 void SetPromptRouterArn(PromptRouterArnT&& value) { m_promptRouterArnHasBeenSet = true; m_promptRouterArn = std::forward<PromptRouterArnT>(value); }
103 template<typename PromptRouterArnT = Aws::String>
104 GetPromptRouterResult& WithPromptRouterArn(PromptRouterArnT&& value) { SetPromptRouterArn(std::forward<PromptRouterArnT>(value)); return *this;}
106
108
111 inline const Aws::Vector<PromptRouterTargetModel>& GetModels() const { return m_models; }
112 template<typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
113 void SetModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models = std::forward<ModelsT>(value); }
114 template<typename ModelsT = Aws::Vector<PromptRouterTargetModel>>
115 GetPromptRouterResult& WithModels(ModelsT&& value) { SetModels(std::forward<ModelsT>(value)); return *this;}
116 template<typename ModelsT = PromptRouterTargetModel>
117 GetPromptRouterResult& AddModels(ModelsT&& value) { m_modelsHasBeenSet = true; m_models.emplace_back(std::forward<ModelsT>(value)); return *this; }
119
121
124 inline const PromptRouterTargetModel& GetFallbackModel() const { return m_fallbackModel; }
125 template<typename FallbackModelT = PromptRouterTargetModel>
126 void SetFallbackModel(FallbackModelT&& value) { m_fallbackModelHasBeenSet = true; m_fallbackModel = std::forward<FallbackModelT>(value); }
127 template<typename FallbackModelT = PromptRouterTargetModel>
128 GetPromptRouterResult& WithFallbackModel(FallbackModelT&& value) { SetFallbackModel(std::forward<FallbackModelT>(value)); return *this;}
130
132
135 inline PromptRouterStatus GetStatus() const { return m_status; }
136 inline void SetStatus(PromptRouterStatus value) { m_statusHasBeenSet = true; m_status = value; }
137 inline GetPromptRouterResult& WithStatus(PromptRouterStatus value) { SetStatus(value); return *this;}
139
141
144 inline PromptRouterType GetType() const { return m_type; }
145 inline void SetType(PromptRouterType value) { m_typeHasBeenSet = true; m_type = value; }
146 inline GetPromptRouterResult& WithType(PromptRouterType value) { SetType(value); return *this;}
148
150
151 inline const Aws::String& GetRequestId() const { return m_requestId; }
152 template<typename RequestIdT = Aws::String>
153 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
154 template<typename RequestIdT = Aws::String>
155 GetPromptRouterResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
157 private:
158
159 Aws::String m_promptRouterName;
160 bool m_promptRouterNameHasBeenSet = false;
161
162 RoutingCriteria m_routingCriteria;
163 bool m_routingCriteriaHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
168 Aws::Utils::DateTime m_createdAt{};
169 bool m_createdAtHasBeenSet = false;
170
171 Aws::Utils::DateTime m_updatedAt{};
172 bool m_updatedAtHasBeenSet = false;
173
174 Aws::String m_promptRouterArn;
175 bool m_promptRouterArnHasBeenSet = false;
176
178 bool m_modelsHasBeenSet = false;
179
180 PromptRouterTargetModel m_fallbackModel;
181 bool m_fallbackModelHasBeenSet = false;
182
184 bool m_statusHasBeenSet = false;
185
187 bool m_typeHasBeenSet = false;
188
189 Aws::String m_requestId;
190 bool m_requestIdHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Bedrock
195} // 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