AWS SDK for C++

AWS SDK for C++ Version 1.11.906

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
90 inline Aws::Utils::DocumentView GetModelConfiguration() const { return m_modelConfiguration; }
91 inline bool ModelConfigurationHasBeenSet() const { return m_modelConfigurationHasBeenSet; }
92 template <typename ModelConfigurationT = Aws::Utils::Document>
94 m_modelConfigurationHasBeenSet = true;
95 m_modelConfiguration = std::forward<ModelConfigurationT>(value);
96 }
97 template <typename ModelConfigurationT = Aws::Utils::Document>
99 SetModelConfiguration(std::forward<ModelConfigurationT>(value));
100 return *this;
101 }
103 private:
104 int m_dimensions{0};
105
107
108 Aws::Utils::Document m_modelConfiguration;
109 bool m_dimensionsHasBeenSet = false;
110 bool m_embeddingDataTypeHasBeenSet = false;
111 bool m_modelConfigurationHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace BedrockAgent
116} // 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