AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
HierarchicalChunkingConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/HierarchicalChunkingLevelConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
36 public:
37 AWS_BEDROCKAGENT_API HierarchicalChunkingConfiguration() = default;
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::Vector<HierarchicalChunkingLevelConfiguration>& GetLevelConfigurations() const { return m_levelConfigurations; }
47 inline bool LevelConfigurationsHasBeenSet() const { return m_levelConfigurationsHasBeenSet; }
48 template <typename LevelConfigurationsT = Aws::Vector<HierarchicalChunkingLevelConfiguration>>
50 m_levelConfigurationsHasBeenSet = true;
51 m_levelConfigurations = std::forward<LevelConfigurationsT>(value);
52 }
53 template <typename LevelConfigurationsT = Aws::Vector<HierarchicalChunkingLevelConfiguration>>
55 SetLevelConfigurations(std::forward<LevelConfigurationsT>(value));
56 return *this;
57 }
58 template <typename LevelConfigurationsT = HierarchicalChunkingLevelConfiguration>
60 m_levelConfigurationsHasBeenSet = true;
61 m_levelConfigurations.emplace_back(std::forward<LevelConfigurationsT>(value));
62 return *this;
63 }
65
67
70 inline int GetOverlapTokens() const { return m_overlapTokens; }
71 inline bool OverlapTokensHasBeenSet() const { return m_overlapTokensHasBeenSet; }
72 inline void SetOverlapTokens(int value) {
73 m_overlapTokensHasBeenSet = true;
74 m_overlapTokens = value;
75 }
77 SetOverlapTokens(value);
78 return *this;
79 }
81 private:
83
84 int m_overlapTokens{0};
85 bool m_levelConfigurationsHasBeenSet = false;
86 bool m_overlapTokensHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace BedrockAgent
91} // namespace Aws
HierarchicalChunkingConfiguration & AddLevelConfigurations(LevelConfigurationsT &&value)
HierarchicalChunkingConfiguration & WithLevelConfigurations(LevelConfigurationsT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API HierarchicalChunkingConfiguration()=default
AWS_BEDROCKAGENT_API HierarchicalChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API HierarchicalChunkingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< HierarchicalChunkingLevelConfiguration > & GetLevelConfigurations() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue