AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
FoundationModelSummary.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 FoundationModelSummary() = 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 FoundationModelSummary& 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 FoundationModelSummary& 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 FoundationModelSummary& 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 FoundationModelSummary& 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 FoundationModelSummary& WithInputModalities(InputModalitiesT&& value) { SetInputModalities(std::forward<InputModalitiesT>(value)); return *this;}
103 inline FoundationModelSummary& 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 FoundationModelSummary& WithOutputModalities(OutputModalitiesT&& value) { SetOutputModalities(std::forward<OutputModalitiesT>(value)); return *this;}
116 inline FoundationModelSummary& 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 FoundationModelSummary& WithCustomizationsSupported(CustomizationsSupportedT&& value) { SetCustomizationsSupported(std::forward<CustomizationsSupportedT>(value)); return *this;}
139 inline FoundationModelSummary& 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 FoundationModelSummary& WithInferenceTypesSupported(InferenceTypesSupportedT&& value) { SetInferenceTypesSupported(std::forward<InferenceTypesSupportedT>(value)); return *this;}
152 inline FoundationModelSummary& AddInferenceTypesSupported(InferenceType value) { m_inferenceTypesSupportedHasBeenSet = true; m_inferenceTypesSupported.push_back(value); return *this; }
154
156
160 inline const FoundationModelLifecycle& GetModelLifecycle() const { return m_modelLifecycle; }
161 inline bool ModelLifecycleHasBeenSet() const { return m_modelLifecycleHasBeenSet; }
162 template<typename ModelLifecycleT = FoundationModelLifecycle>
163 void SetModelLifecycle(ModelLifecycleT&& value) { m_modelLifecycleHasBeenSet = true; m_modelLifecycle = std::forward<ModelLifecycleT>(value); }
164 template<typename ModelLifecycleT = FoundationModelLifecycle>
165 FoundationModelSummary& WithModelLifecycle(ModelLifecycleT&& value) { SetModelLifecycle(std::forward<ModelLifecycleT>(value)); return *this;}
167 private:
168
169 Aws::String m_modelArn;
170 bool m_modelArnHasBeenSet = false;
171
172 Aws::String m_modelId;
173 bool m_modelIdHasBeenSet = false;
174
175 Aws::String m_modelName;
176 bool m_modelNameHasBeenSet = false;
177
178 Aws::String m_providerName;
179 bool m_providerNameHasBeenSet = false;
180
181 Aws::Vector<ModelModality> m_inputModalities;
182 bool m_inputModalitiesHasBeenSet = false;
183
184 Aws::Vector<ModelModality> m_outputModalities;
185 bool m_outputModalitiesHasBeenSet = false;
186
187 bool m_responseStreamingSupported{false};
188 bool m_responseStreamingSupportedHasBeenSet = false;
189
190 Aws::Vector<ModelCustomization> m_customizationsSupported;
191 bool m_customizationsSupportedHasBeenSet = false;
192
193 Aws::Vector<InferenceType> m_inferenceTypesSupported;
194 bool m_inferenceTypesSupportedHasBeenSet = false;
195
196 FoundationModelLifecycle m_modelLifecycle;
197 bool m_modelLifecycleHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace Bedrock
202} // namespace Aws
FoundationModelSummary & WithOutputModalities(OutputModalitiesT &&value)
FoundationModelSummary & WithProviderName(ProviderNameT &&value)
AWS_BEDROCK_API FoundationModelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
FoundationModelSummary & WithInputModalities(InputModalitiesT &&value)
AWS_BEDROCK_API FoundationModelSummary()=default
void SetInferenceTypesSupported(InferenceTypesSupportedT &&value)
AWS_BEDROCK_API FoundationModelSummary(Aws::Utils::Json::JsonView jsonValue)
FoundationModelSummary & WithModelName(ModelNameT &&value)
FoundationModelSummary & AddInputModalities(ModelModality value)
FoundationModelSummary & AddCustomizationsSupported(ModelCustomization value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
FoundationModelSummary & WithInferenceTypesSupported(InferenceTypesSupportedT &&value)
FoundationModelSummary & AddOutputModalities(ModelModality value)
FoundationModelSummary & WithResponseStreamingSupported(bool value)
const Aws::Vector< InferenceType > & GetInferenceTypesSupported() const
FoundationModelSummary & WithCustomizationsSupported(CustomizationsSupportedT &&value)
const FoundationModelLifecycle & GetModelLifecycle() const
FoundationModelSummary & WithModelArn(ModelArnT &&value)
FoundationModelSummary & AddInferenceTypesSupported(InferenceType value)
FoundationModelSummary & WithModelLifecycle(ModelLifecycleT &&value)
FoundationModelSummary & WithModelId(ModelIdT &&value)
void SetCustomizationsSupported(CustomizationsSupportedT &&value)
const Aws::Vector< ModelModality > & GetInputModalities() const
void SetOutputModalities(OutputModalitiesT &&value)
const Aws::Vector< ModelModality > & GetOutputModalities() const
const Aws::Vector< ModelCustomization > & GetCustomizationsSupported() 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