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/qconnect/QConnect_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 QConnect
20{
21namespace Model
22{
23
33 {
34 public:
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetBreakpointPercentileThreshold() const{ return m_breakpointPercentileThreshold; }
46 inline bool BreakpointPercentileThresholdHasBeenSet() const { return m_breakpointPercentileThresholdHasBeenSet; }
47 inline void SetBreakpointPercentileThreshold(int value) { m_breakpointPercentileThresholdHasBeenSet = true; m_breakpointPercentileThreshold = value; }
50
52
55 inline int GetBufferSize() const{ return m_bufferSize; }
56 inline bool BufferSizeHasBeenSet() const { return m_bufferSizeHasBeenSet; }
57 inline void SetBufferSize(int value) { m_bufferSizeHasBeenSet = true; m_bufferSize = value; }
58 inline SemanticChunkingConfiguration& WithBufferSize(int value) { SetBufferSize(value); return *this;}
60
62
65 inline int GetMaxTokens() const{ return m_maxTokens; }
66 inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; }
67 inline void SetMaxTokens(int value) { m_maxTokensHasBeenSet = true; m_maxTokens = value; }
68 inline SemanticChunkingConfiguration& WithMaxTokens(int value) { SetMaxTokens(value); return *this;}
70 private:
71
72 int m_breakpointPercentileThreshold;
73 bool m_breakpointPercentileThresholdHasBeenSet = false;
74
75 int m_bufferSize;
76 bool m_bufferSizeHasBeenSet = false;
77
78 int m_maxTokens;
79 bool m_maxTokensHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace QConnect
84} // namespace Aws
SemanticChunkingConfiguration & WithMaxTokens(int value)
AWS_QCONNECT_API SemanticChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue)
SemanticChunkingConfiguration & WithBufferSize(int value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SemanticChunkingConfiguration & WithBreakpointPercentileThreshold(int value)
AWS_QCONNECT_API SemanticChunkingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue