AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SemanticChunkingConfiguration.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace QConnect {
17namespace Model {
18
28 public:
29 AWS_QCONNECT_API SemanticChunkingConfiguration() = default;
32 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetMaxTokens() const { return m_maxTokens; }
39 inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; }
40 inline void SetMaxTokens(int value) {
41 m_maxTokensHasBeenSet = true;
42 m_maxTokens = value;
43 }
45 SetMaxTokens(value);
46 return *this;
47 }
49
51
54 inline int GetBufferSize() const { return m_bufferSize; }
55 inline bool BufferSizeHasBeenSet() const { return m_bufferSizeHasBeenSet; }
56 inline void SetBufferSize(int value) {
57 m_bufferSizeHasBeenSet = true;
58 m_bufferSize = value;
59 }
61 SetBufferSize(value);
62 return *this;
63 }
65
67
70 inline int GetBreakpointPercentileThreshold() const { return m_breakpointPercentileThreshold; }
71 inline bool BreakpointPercentileThresholdHasBeenSet() const { return m_breakpointPercentileThresholdHasBeenSet; }
72 inline void SetBreakpointPercentileThreshold(int value) {
73 m_breakpointPercentileThresholdHasBeenSet = true;
74 m_breakpointPercentileThreshold = value;
75 }
78 return *this;
79 }
81 private:
82 int m_maxTokens{0};
83
84 int m_bufferSize{0};
85
86 int m_breakpointPercentileThreshold{0};
87 bool m_maxTokensHasBeenSet = false;
88 bool m_bufferSizeHasBeenSet = false;
89 bool m_breakpointPercentileThresholdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace QConnect
94} // namespace Aws
SemanticChunkingConfiguration & WithMaxTokens(int value)
AWS_QCONNECT_API SemanticChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API SemanticChunkingConfiguration()=default
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)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue