AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SemanticChunkingConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace BedrockAgent {
17namespace Model {
18
39 public:
40 AWS_BEDROCKAGENT_API SemanticChunkingConfiguration() = default;
43 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline int GetMaxTokens() const { return m_maxTokens; }
50 inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; }
51 inline void SetMaxTokens(int value) {
52 m_maxTokensHasBeenSet = true;
53 m_maxTokens = value;
54 }
56 SetMaxTokens(value);
57 return *this;
58 }
60
62
65 inline int GetBufferSize() const { return m_bufferSize; }
66 inline bool BufferSizeHasBeenSet() const { return m_bufferSizeHasBeenSet; }
67 inline void SetBufferSize(int value) {
68 m_bufferSizeHasBeenSet = true;
69 m_bufferSize = value;
70 }
72 SetBufferSize(value);
73 return *this;
74 }
76
78
81 inline int GetBreakpointPercentileThreshold() const { return m_breakpointPercentileThreshold; }
82 inline bool BreakpointPercentileThresholdHasBeenSet() const { return m_breakpointPercentileThresholdHasBeenSet; }
83 inline void SetBreakpointPercentileThreshold(int value) {
84 m_breakpointPercentileThresholdHasBeenSet = true;
85 m_breakpointPercentileThreshold = value;
86 }
89 return *this;
90 }
92 private:
93 int m_maxTokens{0};
94
95 int m_bufferSize{0};
96
97 int m_breakpointPercentileThreshold{0};
98 bool m_maxTokensHasBeenSet = false;
99 bool m_bufferSizeHasBeenSet = false;
100 bool m_breakpointPercentileThresholdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace BedrockAgent
105} // namespace Aws
AWS_BEDROCKAGENT_API SemanticChunkingConfiguration()=default
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
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue