AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLevelConfigurations(const Aws::Vector<HierarchicalChunkingLevelConfiguration>& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations = value; }
55 inline void SetLevelConfigurations(Aws::Vector<HierarchicalChunkingLevelConfiguration>&& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations = std::move(value); }
58 inline HierarchicalChunkingConfiguration& AddLevelConfigurations(const HierarchicalChunkingLevelConfiguration& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations.push_back(value); return *this; }
59 inline HierarchicalChunkingConfiguration& AddLevelConfigurations(HierarchicalChunkingLevelConfiguration&& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations.push_back(std::move(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;
77 bool m_overlapTokensHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BedrockAgent
82} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
HierarchicalChunkingConfiguration & AddLevelConfigurations(const HierarchicalChunkingLevelConfiguration &value)
HierarchicalChunkingConfiguration & WithLevelConfigurations(Aws::Vector< HierarchicalChunkingLevelConfiguration > &&value)
void SetLevelConfigurations(const Aws::Vector< HierarchicalChunkingLevelConfiguration > &value)
AWS_BEDROCKAGENT_API HierarchicalChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API HierarchicalChunkingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
HierarchicalChunkingConfiguration & AddLevelConfigurations(HierarchicalChunkingLevelConfiguration &&value)
void SetLevelConfigurations(Aws::Vector< HierarchicalChunkingLevelConfiguration > &&value)
HierarchicalChunkingConfiguration & WithLevelConfigurations(const Aws::Vector< HierarchicalChunkingLevelConfiguration > &value)
const Aws::Vector< HierarchicalChunkingLevelConfiguration > & GetLevelConfigurations() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue