AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
FoundationModelDetails.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/FoundationModelLifecycle.h>
9#include <aws/bedrock/model/InferenceType.h>
10#include <aws/bedrock/model/ModelCustomization.h>
11#include <aws/bedrock/model/ModelModality.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Bedrock {
25namespace Model {
26
33 public:
34 AWS_BEDROCK_API FoundationModelDetails() = default;
37 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetModelArn() const { return m_modelArn; }
44 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
45 template <typename ModelArnT = Aws::String>
46 void SetModelArn(ModelArnT&& value) {
47 m_modelArnHasBeenSet = true;
48 m_modelArn = std::forward<ModelArnT>(value);
49 }
50 template <typename ModelArnT = Aws::String>
52 SetModelArn(std::forward<ModelArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetModelId() const { return m_modelId; }
62 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
63 template <typename ModelIdT = Aws::String>
64 void SetModelId(ModelIdT&& value) {
65 m_modelIdHasBeenSet = true;
66 m_modelId = std::forward<ModelIdT>(value);
67 }
68 template <typename ModelIdT = Aws::String>
70 SetModelId(std::forward<ModelIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetModelName() const { return m_modelName; }
80 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
81 template <typename ModelNameT = Aws::String>
82 void SetModelName(ModelNameT&& value) {
83 m_modelNameHasBeenSet = true;
84 m_modelName = std::forward<ModelNameT>(value);
85 }
86 template <typename ModelNameT = Aws::String>
88 SetModelName(std::forward<ModelNameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetProviderName() const { return m_providerName; }
98 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
99 template <typename ProviderNameT = Aws::String>
100 void SetProviderName(ProviderNameT&& value) {
101 m_providerNameHasBeenSet = true;
102 m_providerName = std::forward<ProviderNameT>(value);
103 }
104 template <typename ProviderNameT = Aws::String>
105 FoundationModelDetails& WithProviderName(ProviderNameT&& value) {
106 SetProviderName(std::forward<ProviderNameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<ModelModality>& GetInputModalities() const { return m_inputModalities; }
116 inline bool InputModalitiesHasBeenSet() const { return m_inputModalitiesHasBeenSet; }
117 template <typename InputModalitiesT = Aws::Vector<ModelModality>>
118 void SetInputModalities(InputModalitiesT&& value) {
119 m_inputModalitiesHasBeenSet = true;
120 m_inputModalities = std::forward<InputModalitiesT>(value);
121 }
122 template <typename InputModalitiesT = Aws::Vector<ModelModality>>
123 FoundationModelDetails& WithInputModalities(InputModalitiesT&& value) {
124 SetInputModalities(std::forward<InputModalitiesT>(value));
125 return *this;
126 }
128 m_inputModalitiesHasBeenSet = true;
129 m_inputModalities.push_back(value);
130 return *this;
131 }
133
135
138 inline const Aws::Vector<ModelModality>& GetOutputModalities() const { return m_outputModalities; }
139 inline bool OutputModalitiesHasBeenSet() const { return m_outputModalitiesHasBeenSet; }
140 template <typename OutputModalitiesT = Aws::Vector<ModelModality>>
141 void SetOutputModalities(OutputModalitiesT&& value) {
142 m_outputModalitiesHasBeenSet = true;
143 m_outputModalities = std::forward<OutputModalitiesT>(value);
144 }
145 template <typename OutputModalitiesT = Aws::Vector<ModelModality>>
146 FoundationModelDetails& WithOutputModalities(OutputModalitiesT&& value) {
147 SetOutputModalities(std::forward<OutputModalitiesT>(value));
148 return *this;
149 }
151 m_outputModalitiesHasBeenSet = true;
152 m_outputModalities.push_back(value);
153 return *this;
154 }
156
158
161 inline bool GetResponseStreamingSupported() const { return m_responseStreamingSupported; }
162 inline bool ResponseStreamingSupportedHasBeenSet() const { return m_responseStreamingSupportedHasBeenSet; }
163 inline void SetResponseStreamingSupported(bool value) {
164 m_responseStreamingSupportedHasBeenSet = true;
165 m_responseStreamingSupported = value;
166 }
169 return *this;
170 }
172
174
177 inline const Aws::Vector<ModelCustomization>& GetCustomizationsSupported() const { return m_customizationsSupported; }
178 inline bool CustomizationsSupportedHasBeenSet() const { return m_customizationsSupportedHasBeenSet; }
179 template <typename CustomizationsSupportedT = Aws::Vector<ModelCustomization>>
180 void SetCustomizationsSupported(CustomizationsSupportedT&& value) {
181 m_customizationsSupportedHasBeenSet = true;
182 m_customizationsSupported = std::forward<CustomizationsSupportedT>(value);
183 }
184 template <typename CustomizationsSupportedT = Aws::Vector<ModelCustomization>>
185 FoundationModelDetails& WithCustomizationsSupported(CustomizationsSupportedT&& value) {
186 SetCustomizationsSupported(std::forward<CustomizationsSupportedT>(value));
187 return *this;
188 }
190 m_customizationsSupportedHasBeenSet = true;
191 m_customizationsSupported.push_back(value);
192 return *this;
193 }
195
197
200 inline const Aws::Vector<InferenceType>& GetInferenceTypesSupported() const { return m_inferenceTypesSupported; }
201 inline bool InferenceTypesSupportedHasBeenSet() const { return m_inferenceTypesSupportedHasBeenSet; }
202 template <typename InferenceTypesSupportedT = Aws::Vector<InferenceType>>
203 void SetInferenceTypesSupported(InferenceTypesSupportedT&& value) {
204 m_inferenceTypesSupportedHasBeenSet = true;
205 m_inferenceTypesSupported = std::forward<InferenceTypesSupportedT>(value);
206 }
207 template <typename InferenceTypesSupportedT = Aws::Vector<InferenceType>>
208 FoundationModelDetails& WithInferenceTypesSupported(InferenceTypesSupportedT&& value) {
209 SetInferenceTypesSupported(std::forward<InferenceTypesSupportedT>(value));
210 return *this;
211 }
213 m_inferenceTypesSupportedHasBeenSet = true;
214 m_inferenceTypesSupported.push_back(value);
215 return *this;
216 }
218
220
223 inline const FoundationModelLifecycle& GetModelLifecycle() const { return m_modelLifecycle; }
224 inline bool ModelLifecycleHasBeenSet() const { return m_modelLifecycleHasBeenSet; }
225 template <typename ModelLifecycleT = FoundationModelLifecycle>
226 void SetModelLifecycle(ModelLifecycleT&& value) {
227 m_modelLifecycleHasBeenSet = true;
228 m_modelLifecycle = std::forward<ModelLifecycleT>(value);
229 }
230 template <typename ModelLifecycleT = FoundationModelLifecycle>
231 FoundationModelDetails& WithModelLifecycle(ModelLifecycleT&& value) {
232 SetModelLifecycle(std::forward<ModelLifecycleT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_modelArn;
238 bool m_modelArnHasBeenSet = false;
239
240 Aws::String m_modelId;
241 bool m_modelIdHasBeenSet = false;
242
243 Aws::String m_modelName;
244 bool m_modelNameHasBeenSet = false;
245
246 Aws::String m_providerName;
247 bool m_providerNameHasBeenSet = false;
248
249 Aws::Vector<ModelModality> m_inputModalities;
250 bool m_inputModalitiesHasBeenSet = false;
251
252 Aws::Vector<ModelModality> m_outputModalities;
253 bool m_outputModalitiesHasBeenSet = false;
254
255 bool m_responseStreamingSupported{false};
256 bool m_responseStreamingSupportedHasBeenSet = false;
257
258 Aws::Vector<ModelCustomization> m_customizationsSupported;
259 bool m_customizationsSupportedHasBeenSet = false;
260
261 Aws::Vector<InferenceType> m_inferenceTypesSupported;
262 bool m_inferenceTypesSupportedHasBeenSet = false;
263
264 FoundationModelLifecycle m_modelLifecycle;
265 bool m_modelLifecycleHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Bedrock
270} // namespace Aws
void SetInferenceTypesSupported(InferenceTypesSupportedT &&value)
const FoundationModelLifecycle & GetModelLifecycle() const
FoundationModelDetails & WithModelLifecycle(ModelLifecycleT &&value)
void SetCustomizationsSupported(CustomizationsSupportedT &&value)
AWS_BEDROCK_API FoundationModelDetails()=default
FoundationModelDetails & WithModelId(ModelIdT &&value)
FoundationModelDetails & WithInputModalities(InputModalitiesT &&value)
void SetOutputModalities(OutputModalitiesT &&value)
const Aws::Vector< ModelModality > & GetInputModalities() const
const Aws::Vector< ModelCustomization > & GetCustomizationsSupported() const
AWS_BEDROCK_API FoundationModelDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
FoundationModelDetails & WithInferenceTypesSupported(InferenceTypesSupportedT &&value)
FoundationModelDetails & WithModelName(ModelNameT &&value)
FoundationModelDetails & WithCustomizationsSupported(CustomizationsSupportedT &&value)
FoundationModelDetails & AddInputModalities(ModelModality value)
FoundationModelDetails & WithResponseStreamingSupported(bool value)
const Aws::Vector< InferenceType > & GetInferenceTypesSupported() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
FoundationModelDetails & AddOutputModalities(ModelModality value)
const Aws::Vector< ModelModality > & GetOutputModalities() const
AWS_BEDROCK_API FoundationModelDetails(Aws::Utils::Json::JsonView jsonValue)
FoundationModelDetails & AddInferenceTypesSupported(InferenceType value)
FoundationModelDetails & WithOutputModalities(OutputModalitiesT &&value)
FoundationModelDetails & WithProviderName(ProviderNameT &&value)
FoundationModelDetails & WithModelArn(ModelArnT &&value)
FoundationModelDetails & AddCustomizationsSupported(ModelCustomization value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue