AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BedrockEmbeddingModelConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/AudioConfiguration.h>
9#include <aws/bedrock-agent/model/EmbeddingDataType.h>
10#include <aws/bedrock-agent/model/VideoConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
32 public:
33 AWS_BEDROCKAGENT_API BedrockEmbeddingModelConfiguration() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline int GetDimensions() const { return m_dimensions; }
44 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
45 inline void SetDimensions(int value) {
46 m_dimensionsHasBeenSet = true;
47 m_dimensions = value;
48 }
50 SetDimensions(value);
51 return *this;
52 }
54
56
65 inline EmbeddingDataType GetEmbeddingDataType() const { return m_embeddingDataType; }
66 inline bool EmbeddingDataTypeHasBeenSet() const { return m_embeddingDataTypeHasBeenSet; }
68 m_embeddingDataTypeHasBeenSet = true;
69 m_embeddingDataType = value;
70 }
73 return *this;
74 }
76
78
82 inline const Aws::Vector<AudioConfiguration>& GetAudio() const { return m_audio; }
83 inline bool AudioHasBeenSet() const { return m_audioHasBeenSet; }
84 template <typename AudioT = Aws::Vector<AudioConfiguration>>
85 void SetAudio(AudioT&& value) {
86 m_audioHasBeenSet = true;
87 m_audio = std::forward<AudioT>(value);
88 }
89 template <typename AudioT = Aws::Vector<AudioConfiguration>>
91 SetAudio(std::forward<AudioT>(value));
92 return *this;
93 }
94 template <typename AudioT = AudioConfiguration>
96 m_audioHasBeenSet = true;
97 m_audio.emplace_back(std::forward<AudioT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::Vector<VideoConfiguration>& GetVideo() const { return m_video; }
108 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
109 template <typename VideoT = Aws::Vector<VideoConfiguration>>
110 void SetVideo(VideoT&& value) {
111 m_videoHasBeenSet = true;
112 m_video = std::forward<VideoT>(value);
113 }
114 template <typename VideoT = Aws::Vector<VideoConfiguration>>
116 SetVideo(std::forward<VideoT>(value));
117 return *this;
118 }
119 template <typename VideoT = VideoConfiguration>
121 m_videoHasBeenSet = true;
122 m_video.emplace_back(std::forward<VideoT>(value));
123 return *this;
124 }
126 private:
127 int m_dimensions{0};
128
130
132
134 bool m_dimensionsHasBeenSet = false;
135 bool m_embeddingDataTypeHasBeenSet = false;
136 bool m_audioHasBeenSet = false;
137 bool m_videoHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace BedrockAgent
142} // 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)
AWS_BEDROCKAGENT_API BedrockEmbeddingModelConfiguration()=default
BedrockEmbeddingModelConfiguration & WithEmbeddingDataType(EmbeddingDataType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue