AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HierarchicalChunkingConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/model/HierarchicalChunkingLevelConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_BEDROCKAGENT_API HierarchicalChunkingConfiguration() = default;
45 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::Vector<HierarchicalChunkingLevelConfiguration>& GetLevelConfigurations() const { return m_levelConfigurations; }
53 inline bool LevelConfigurationsHasBeenSet() const { return m_levelConfigurationsHasBeenSet; }
54 template<typename LevelConfigurationsT = Aws::Vector<HierarchicalChunkingLevelConfiguration>>
55 void SetLevelConfigurations(LevelConfigurationsT&& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations = std::forward<LevelConfigurationsT>(value); }
56 template<typename LevelConfigurationsT = Aws::Vector<HierarchicalChunkingLevelConfiguration>>
57 HierarchicalChunkingConfiguration& WithLevelConfigurations(LevelConfigurationsT&& value) { SetLevelConfigurations(std::forward<LevelConfigurationsT>(value)); return *this;}
58 template<typename LevelConfigurationsT = HierarchicalChunkingLevelConfiguration>
59 HierarchicalChunkingConfiguration& AddLevelConfigurations(LevelConfigurationsT&& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations.emplace_back(std::forward<LevelConfigurationsT>(value)); return *this; }
61
63
66 inline int GetOverlapTokens() const { return m_overlapTokens; }
67 inline bool OverlapTokensHasBeenSet() const { return m_overlapTokensHasBeenSet; }
68 inline void SetOverlapTokens(int value) { m_overlapTokensHasBeenSet = true; m_overlapTokens = value; }
69 inline HierarchicalChunkingConfiguration& WithOverlapTokens(int value) { SetOverlapTokens(value); return *this;}
71 private:
72
74 bool m_levelConfigurationsHasBeenSet = false;
75
76 int m_overlapTokens{0};
77 bool m_overlapTokensHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BedrockAgent
82} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue