AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HierarchicalChunkingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/HierarchicalChunkingLevelConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
32 public:
33 AWS_QCONNECT_API HierarchicalChunkingConfiguration() = default;
36 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<HierarchicalChunkingLevelConfiguration>& GetLevelConfigurations() const { return m_levelConfigurations; }
43 inline bool LevelConfigurationsHasBeenSet() const { return m_levelConfigurationsHasBeenSet; }
44 template <typename LevelConfigurationsT = Aws::Vector<HierarchicalChunkingLevelConfiguration>>
46 m_levelConfigurationsHasBeenSet = true;
47 m_levelConfigurations = std::forward<LevelConfigurationsT>(value);
48 }
49 template <typename LevelConfigurationsT = Aws::Vector<HierarchicalChunkingLevelConfiguration>>
51 SetLevelConfigurations(std::forward<LevelConfigurationsT>(value));
52 return *this;
53 }
54 template <typename LevelConfigurationsT = HierarchicalChunkingLevelConfiguration>
56 m_levelConfigurationsHasBeenSet = true;
57 m_levelConfigurations.emplace_back(std::forward<LevelConfigurationsT>(value));
58 return *this;
59 }
61
63
66 inline int GetOverlapTokens() const { return m_overlapTokens; }
67 inline bool OverlapTokensHasBeenSet() const { return m_overlapTokensHasBeenSet; }
68 inline void SetOverlapTokens(int value) {
69 m_overlapTokensHasBeenSet = true;
70 m_overlapTokens = value;
71 }
73 SetOverlapTokens(value);
74 return *this;
75 }
77 private:
79
80 int m_overlapTokens{0};
81 bool m_levelConfigurationsHasBeenSet = false;
82 bool m_overlapTokensHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace QConnect
87} // namespace Aws
const Aws::Vector< HierarchicalChunkingLevelConfiguration > & GetLevelConfigurations() const
AWS_QCONNECT_API HierarchicalChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue)
HierarchicalChunkingConfiguration & AddLevelConfigurations(LevelConfigurationsT &&value)
AWS_QCONNECT_API HierarchicalChunkingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API HierarchicalChunkingConfiguration()=default
HierarchicalChunkingConfiguration & WithOverlapTokens(int value)
HierarchicalChunkingConfiguration & WithLevelConfigurations(LevelConfigurationsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue