AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChunkingConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/ChunkingStrategy.h>
9#include <aws/bedrock-agent/model/FixedSizeChunkingConfiguration.h>
10#include <aws/bedrock-agent/model/HierarchicalChunkingConfiguration.h>
11#include <aws/bedrock-agent/model/SemanticChunkingConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgent
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_BEDROCKAGENT_API ChunkingConfiguration();
40 AWS_BEDROCKAGENT_API ChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
64 inline const ChunkingStrategy& GetChunkingStrategy() const{ return m_chunkingStrategy; }
65 inline bool ChunkingStrategyHasBeenSet() const { return m_chunkingStrategyHasBeenSet; }
66 inline void SetChunkingStrategy(const ChunkingStrategy& value) { m_chunkingStrategyHasBeenSet = true; m_chunkingStrategy = value; }
67 inline void SetChunkingStrategy(ChunkingStrategy&& value) { m_chunkingStrategyHasBeenSet = true; m_chunkingStrategy = std::move(value); }
69 inline ChunkingConfiguration& WithChunkingStrategy(ChunkingStrategy&& value) { SetChunkingStrategy(std::move(value)); return *this;}
71
73
77 inline const FixedSizeChunkingConfiguration& GetFixedSizeChunkingConfiguration() const{ return m_fixedSizeChunkingConfiguration; }
78 inline bool FixedSizeChunkingConfigurationHasBeenSet() const { return m_fixedSizeChunkingConfigurationHasBeenSet; }
79 inline void SetFixedSizeChunkingConfiguration(const FixedSizeChunkingConfiguration& value) { m_fixedSizeChunkingConfigurationHasBeenSet = true; m_fixedSizeChunkingConfiguration = value; }
80 inline void SetFixedSizeChunkingConfiguration(FixedSizeChunkingConfiguration&& value) { m_fixedSizeChunkingConfigurationHasBeenSet = true; m_fixedSizeChunkingConfiguration = std::move(value); }
84
86
92 inline const HierarchicalChunkingConfiguration& GetHierarchicalChunkingConfiguration() const{ return m_hierarchicalChunkingConfiguration; }
93 inline bool HierarchicalChunkingConfigurationHasBeenSet() const { return m_hierarchicalChunkingConfigurationHasBeenSet; }
94 inline void SetHierarchicalChunkingConfiguration(const HierarchicalChunkingConfiguration& value) { m_hierarchicalChunkingConfigurationHasBeenSet = true; m_hierarchicalChunkingConfiguration = value; }
95 inline void SetHierarchicalChunkingConfiguration(HierarchicalChunkingConfiguration&& value) { m_hierarchicalChunkingConfigurationHasBeenSet = true; m_hierarchicalChunkingConfiguration = std::move(value); }
99
101
106 inline const SemanticChunkingConfiguration& GetSemanticChunkingConfiguration() const{ return m_semanticChunkingConfiguration; }
107 inline bool SemanticChunkingConfigurationHasBeenSet() const { return m_semanticChunkingConfigurationHasBeenSet; }
108 inline void SetSemanticChunkingConfiguration(const SemanticChunkingConfiguration& value) { m_semanticChunkingConfigurationHasBeenSet = true; m_semanticChunkingConfiguration = value; }
109 inline void SetSemanticChunkingConfiguration(SemanticChunkingConfiguration&& value) { m_semanticChunkingConfigurationHasBeenSet = true; m_semanticChunkingConfiguration = std::move(value); }
113 private:
114
115 ChunkingStrategy m_chunkingStrategy;
116 bool m_chunkingStrategyHasBeenSet = false;
117
118 FixedSizeChunkingConfiguration m_fixedSizeChunkingConfiguration;
119 bool m_fixedSizeChunkingConfigurationHasBeenSet = false;
120
121 HierarchicalChunkingConfiguration m_hierarchicalChunkingConfiguration;
122 bool m_hierarchicalChunkingConfigurationHasBeenSet = false;
123
124 SemanticChunkingConfiguration m_semanticChunkingConfiguration;
125 bool m_semanticChunkingConfigurationHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace BedrockAgent
130} // namespace Aws
ChunkingConfiguration & WithChunkingStrategy(ChunkingStrategy &&value)
ChunkingConfiguration & WithHierarchicalChunkingConfiguration(HierarchicalChunkingConfiguration &&value)
ChunkingConfiguration & WithHierarchicalChunkingConfiguration(const HierarchicalChunkingConfiguration &value)
ChunkingConfiguration & WithSemanticChunkingConfiguration(const SemanticChunkingConfiguration &value)
AWS_BEDROCKAGENT_API ChunkingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFixedSizeChunkingConfiguration(FixedSizeChunkingConfiguration &&value)
ChunkingConfiguration & WithChunkingStrategy(const ChunkingStrategy &value)
const ChunkingStrategy & GetChunkingStrategy() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChunkingStrategy(const ChunkingStrategy &value)
ChunkingConfiguration & WithFixedSizeChunkingConfiguration(const FixedSizeChunkingConfiguration &value)
ChunkingConfiguration & WithFixedSizeChunkingConfiguration(FixedSizeChunkingConfiguration &&value)
const SemanticChunkingConfiguration & GetSemanticChunkingConfiguration() const
const HierarchicalChunkingConfiguration & GetHierarchicalChunkingConfiguration() const
ChunkingConfiguration & WithSemanticChunkingConfiguration(SemanticChunkingConfiguration &&value)
void SetSemanticChunkingConfiguration(const SemanticChunkingConfiguration &value)
void SetFixedSizeChunkingConfiguration(const FixedSizeChunkingConfiguration &value)
void SetHierarchicalChunkingConfiguration(HierarchicalChunkingConfiguration &&value)
AWS_BEDROCKAGENT_API ChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue)
const FixedSizeChunkingConfiguration & GetFixedSizeChunkingConfiguration() const
void SetHierarchicalChunkingConfiguration(const HierarchicalChunkingConfiguration &value)
void SetSemanticChunkingConfiguration(SemanticChunkingConfiguration &&value)
Aws::Utils::Json::JsonValue JsonValue