AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
BedrockEmbeddingModelConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/EmbeddingDataType.h>
9#include <aws/core/utils/Document.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENT_API BedrockEmbeddingModelConfiguration() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetDimensions() const { return m_dimensions; }
42 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
43 inline void SetDimensions(int value) {
44 m_dimensionsHasBeenSet = true;
45 m_dimensions = value;
46 }
48 SetDimensions(value);
49 return *this;
50 }
52
54
63 inline EmbeddingDataType GetEmbeddingDataType() const { return m_embeddingDataType; }
64 inline bool EmbeddingDataTypeHasBeenSet() const { return m_embeddingDataTypeHasBeenSet; }
66 m_embeddingDataTypeHasBeenSet = true;
67 m_embeddingDataType = value;
68 }
71 return *this;
72 }
74
76
84 inline Aws::Utils::DocumentView GetModelConfiguration() const { return m_modelConfiguration; }
85 inline bool ModelConfigurationHasBeenSet() const { return m_modelConfigurationHasBeenSet; }
86 template <typename ModelConfigurationT = Aws::Utils::Document>
88 m_modelConfigurationHasBeenSet = true;
89 m_modelConfiguration = std::forward<ModelConfigurationT>(value);
90 }
91 template <typename ModelConfigurationT = Aws::Utils::Document>
93 SetModelConfiguration(std::forward<ModelConfigurationT>(value));
94 return *this;
95 }
97 private:
98 int m_dimensions{0};
99
101
102 Aws::Utils::Document m_modelConfiguration;
103 bool m_dimensionsHasBeenSet = false;
104 bool m_embeddingDataTypeHasBeenSet = false;
105 bool m_modelConfigurationHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace BedrockAgent
110} // namespace Aws
AWS_BEDROCKAGENT_API BedrockEmbeddingModelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API BedrockEmbeddingModelConfiguration(Aws::Utils::Json::JsonView jsonValue)
BedrockEmbeddingModelConfiguration & WithModelConfiguration(ModelConfigurationT &&value)
AWS_BEDROCKAGENT_API BedrockEmbeddingModelConfiguration()=default
BedrockEmbeddingModelConfiguration & WithEmbeddingDataType(EmbeddingDataType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue