AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
NativeIndexConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/DocumentAttributeBoostingConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
31 public:
32 AWS_QBUSINESS_API NativeIndexConfiguration() = default;
35 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetIndexId() const { return m_indexId; }
42 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
43 template <typename IndexIdT = Aws::String>
44 void SetIndexId(IndexIdT&& value) {
45 m_indexIdHasBeenSet = true;
46 m_indexId = std::forward<IndexIdT>(value);
47 }
48 template <typename IndexIdT = Aws::String>
50 SetIndexId(std::forward<IndexIdT>(value));
51 return *this;
52 }
54
56
71 inline long long GetVersion() const { return m_version; }
72 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
73 inline void SetVersion(long long value) {
74 m_versionHasBeenSet = true;
75 m_version = value;
76 }
77 inline NativeIndexConfiguration& WithVersion(long long value) {
78 SetVersion(value);
79 return *this;
80 }
82
84
89 inline bool BoostingOverrideHasBeenSet() const { return m_boostingOverrideHasBeenSet; }
90 template <typename BoostingOverrideT = Aws::Map<Aws::String, DocumentAttributeBoostingConfiguration>>
92 m_boostingOverrideHasBeenSet = true;
93 m_boostingOverride = std::forward<BoostingOverrideT>(value);
94 }
95 template <typename BoostingOverrideT = Aws::Map<Aws::String, DocumentAttributeBoostingConfiguration>>
97 SetBoostingOverride(std::forward<BoostingOverrideT>(value));
98 return *this;
99 }
100 template <typename BoostingOverrideKeyT = Aws::String, typename BoostingOverrideValueT = DocumentAttributeBoostingConfiguration>
102 m_boostingOverrideHasBeenSet = true;
103 m_boostingOverride.emplace(std::forward<BoostingOverrideKeyT>(key), std::forward<BoostingOverrideValueT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_indexId;
109
110 long long m_version{0};
111
113 bool m_indexIdHasBeenSet = false;
114 bool m_versionHasBeenSet = false;
115 bool m_boostingOverrideHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace QBusiness
120} // namespace Aws
NativeIndexConfiguration & WithVersion(long long value)
AWS_QBUSINESS_API NativeIndexConfiguration()=default
const Aws::Map< Aws::String, DocumentAttributeBoostingConfiguration > & GetBoostingOverride() const
AWS_QBUSINESS_API NativeIndexConfiguration(Aws::Utils::Json::JsonView jsonValue)
NativeIndexConfiguration & WithIndexId(IndexIdT &&value)
NativeIndexConfiguration & WithBoostingOverride(BoostingOverrideT &&value)
NativeIndexConfiguration & AddBoostingOverride(BoostingOverrideKeyT &&key, BoostingOverrideValueT &&value)
AWS_QBUSINESS_API NativeIndexConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue