AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
FoundationModelDetails.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock/model/FoundationModelLifecycle.h>
11#include <aws/bedrock/model/ModelModality.h>
12#include <aws/bedrock/model/ModelCustomization.h>
13#include <aws/bedrock/model/InferenceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Bedrock
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_BEDROCK_API FoundationModelDetails() = default;
42 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetModelArn() const { return m_modelArn; }
50 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
51 template<typename ModelArnT = Aws::String>
52 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
53 template<typename ModelArnT = Aws::String>
54 FoundationModelDetails& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
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) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
65 template<typename ModelIdT = Aws::String>
66 FoundationModelDetails& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetModelName() const { return m_modelName; }
74 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
75 template<typename ModelNameT = Aws::String>
76 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
77 template<typename ModelNameT = Aws::String>
78 FoundationModelDetails& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
80
82
85 inline const Aws::String& GetProviderName() const { return m_providerName; }
86 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
87 template<typename ProviderNameT = Aws::String>
88 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet = true; m_providerName = std::forward<ProviderNameT>(value); }
89 template<typename ProviderNameT = Aws::String>
90 FoundationModelDetails& WithProviderName(ProviderNameT&& value) { SetProviderName(std::forward<ProviderNameT>(value)); return *this;}
92
94
97 inline const Aws::Vector<ModelModality>& GetInputModalities() const { return m_inputModalities; }
98 inline bool InputModalitiesHasBeenSet() const { return m_inputModalitiesHasBeenSet; }
99 template<typename InputModalitiesT = Aws::Vector<ModelModality>>
100 void SetInputModalities(InputModalitiesT&& value) { m_inputModalitiesHasBeenSet = true; m_inputModalities = std::forward<InputModalitiesT>(value); }
101 template<typename InputModalitiesT = Aws::Vector<ModelModality>>
102 FoundationModelDetails& WithInputModalities(InputModalitiesT&& value) { SetInputModalities(std::forward<InputModalitiesT>(value)); return *this;}
103 inline FoundationModelDetails& AddInputModalities(ModelModality value) { m_inputModalitiesHasBeenSet = true; m_inputModalities.push_back(value); return *this; }
105
107
110 inline const Aws::Vector<ModelModality>& GetOutputModalities() const { return m_outputModalities; }
111 inline bool OutputModalitiesHasBeenSet() const { return m_outputModalitiesHasBeenSet; }
112 template<typename OutputModalitiesT = Aws::Vector<ModelModality>>
113 void SetOutputModalities(OutputModalitiesT&& value) { m_outputModalitiesHasBeenSet = true; m_outputModalities = std::forward<OutputModalitiesT>(value); }
114 template<typename OutputModalitiesT = Aws::Vector<ModelModality>>
115 FoundationModelDetails& WithOutputModalities(OutputModalitiesT&& value) { SetOutputModalities(std::forward<OutputModalitiesT>(value)); return *this;}
116 inline FoundationModelDetails& AddOutputModalities(ModelModality value) { m_outputModalitiesHasBeenSet = true; m_outputModalities.push_back(value); return *this; }
118
120
123 inline bool GetResponseStreamingSupported() const { return m_responseStreamingSupported; }
124 inline bool ResponseStreamingSupportedHasBeenSet() const { return m_responseStreamingSupportedHasBeenSet; }
125 inline void SetResponseStreamingSupported(bool value) { m_responseStreamingSupportedHasBeenSet = true; m_responseStreamingSupported = value; }
128
130
133 inline const Aws::Vector<ModelCustomization>& GetCustomizationsSupported() const { return m_customizationsSupported; }
134 inline bool CustomizationsSupportedHasBeenSet() const { return m_customizationsSupportedHasBeenSet; }
135 template<typename CustomizationsSupportedT = Aws::Vector<ModelCustomization>>
136 void SetCustomizationsSupported(CustomizationsSupportedT&& value) { m_customizationsSupportedHasBeenSet = true; m_customizationsSupported = std::forward<CustomizationsSupportedT>(value); }
137 template<typename CustomizationsSupportedT = Aws::Vector<ModelCustomization>>
138 FoundationModelDetails& WithCustomizationsSupported(CustomizationsSupportedT&& value) { SetCustomizationsSupported(std::forward<CustomizationsSupportedT>(value)); return *this;}
139 inline FoundationModelDetails& AddCustomizationsSupported(ModelCustomization value) { m_customizationsSupportedHasBeenSet = true; m_customizationsSupported.push_back(value); return *this; }
141
143
146 inline const Aws::Vector<InferenceType>& GetInferenceTypesSupported() const { return m_inferenceTypesSupported; }
147 inline bool InferenceTypesSupportedHasBeenSet() const { return m_inferenceTypesSupportedHasBeenSet; }
148 template<typename InferenceTypesSupportedT = Aws::Vector<InferenceType>>
149 void SetInferenceTypesSupported(InferenceTypesSupportedT&& value) { m_inferenceTypesSupportedHasBeenSet = true; m_inferenceTypesSupported = std::forward<InferenceTypesSupportedT>(value); }
150 template<typename InferenceTypesSupportedT = Aws::Vector<InferenceType>>
151 FoundationModelDetails& WithInferenceTypesSupported(InferenceTypesSupportedT&& value) { SetInferenceTypesSupported(std::forward<InferenceTypesSupportedT>(value)); return *this;}
152 inline FoundationModelDetails& AddInferenceTypesSupported(InferenceType value) { m_inferenceTypesSupportedHasBeenSet = true; m_inferenceTypesSupported.push_back(value); return *this; }
154
156
159 inline const FoundationModelLifecycle& GetModelLifecycle() const { return m_modelLifecycle; }
160 inline bool ModelLifecycleHasBeenSet() const { return m_modelLifecycleHasBeenSet; }
161 template<typename ModelLifecycleT = FoundationModelLifecycle>
162 void SetModelLifecycle(ModelLifecycleT&& value) { m_modelLifecycleHasBeenSet = true; m_modelLifecycle = std::forward<ModelLifecycleT>(value); }
163 template<typename ModelLifecycleT = FoundationModelLifecycle>
164 FoundationModelDetails& WithModelLifecycle(ModelLifecycleT&& value) { SetModelLifecycle(std::forward<ModelLifecycleT>(value)); return *this;}
166 private:
167
168 Aws::String m_modelArn;
169 bool m_modelArnHasBeenSet = false;
170
171 Aws::String m_modelId;
172 bool m_modelIdHasBeenSet = false;
173
174 Aws::String m_modelName;
175 bool m_modelNameHasBeenSet = false;
176
177 Aws::String m_providerName;
178 bool m_providerNameHasBeenSet = false;
179
180 Aws::Vector<ModelModality> m_inputModalities;
181 bool m_inputModalitiesHasBeenSet = false;
182
183 Aws::Vector<ModelModality> m_outputModalities;
184 bool m_outputModalitiesHasBeenSet = false;
185
186 bool m_responseStreamingSupported{false};
187 bool m_responseStreamingSupportedHasBeenSet = false;
188
189 Aws::Vector<ModelCustomization> m_customizationsSupported;
190 bool m_customizationsSupportedHasBeenSet = false;
191
192 Aws::Vector<InferenceType> m_inferenceTypesSupported;
193 bool m_inferenceTypesSupportedHasBeenSet = false;
194
195 FoundationModelLifecycle m_modelLifecycle;
196 bool m_modelLifecycleHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace Bedrock
201} // 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