AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SemanticChunkingConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgent
20{
21namespace Model
22{
23
44 {
45 public:
46 AWS_BEDROCKAGENT_API SemanticChunkingConfiguration();
49 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline int GetBreakpointPercentileThreshold() const{ return m_breakpointPercentileThreshold; }
57 inline bool BreakpointPercentileThresholdHasBeenSet() const { return m_breakpointPercentileThresholdHasBeenSet; }
58 inline void SetBreakpointPercentileThreshold(int value) { m_breakpointPercentileThresholdHasBeenSet = true; m_breakpointPercentileThreshold = value; }
61
63
66 inline int GetBufferSize() const{ return m_bufferSize; }
67 inline bool BufferSizeHasBeenSet() const { return m_bufferSizeHasBeenSet; }
68 inline void SetBufferSize(int value) { m_bufferSizeHasBeenSet = true; m_bufferSize = value; }
69 inline SemanticChunkingConfiguration& WithBufferSize(int value) { SetBufferSize(value); return *this;}
71
73
76 inline int GetMaxTokens() const{ return m_maxTokens; }
77 inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; }
78 inline void SetMaxTokens(int value) { m_maxTokensHasBeenSet = true; m_maxTokens = value; }
79 inline SemanticChunkingConfiguration& WithMaxTokens(int value) { SetMaxTokens(value); return *this;}
81 private:
82
83 int m_breakpointPercentileThreshold;
84 bool m_breakpointPercentileThresholdHasBeenSet = false;
85
86 int m_bufferSize;
87 bool m_bufferSizeHasBeenSet = false;
88
89 int m_maxTokens;
90 bool m_maxTokensHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace BedrockAgent
95} // namespace Aws
AWS_BEDROCKAGENT_API SemanticChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API SemanticChunkingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SemanticChunkingConfiguration & WithBreakpointPercentileThreshold(int value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue