AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NativeIndexConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/qbusiness/model/DocumentAttributeBoostingConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QBUSINESS_API NativeIndexConfiguration() = default;
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetIndexId() const { return m_indexId; }
48 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
49 template<typename IndexIdT = Aws::String>
50 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
51 template<typename IndexIdT = Aws::String>
52 NativeIndexConfiguration& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
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) { m_versionHasBeenSet = true; m_version = value; }
74 inline NativeIndexConfiguration& WithVersion(long long value) { SetVersion(value); return *this;}
76
78
83 inline bool BoostingOverrideHasBeenSet() const { return m_boostingOverrideHasBeenSet; }
84 template<typename BoostingOverrideT = Aws::Map<Aws::String, DocumentAttributeBoostingConfiguration>>
85 void SetBoostingOverride(BoostingOverrideT&& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride = std::forward<BoostingOverrideT>(value); }
86 template<typename BoostingOverrideT = Aws::Map<Aws::String, DocumentAttributeBoostingConfiguration>>
87 NativeIndexConfiguration& WithBoostingOverride(BoostingOverrideT&& value) { SetBoostingOverride(std::forward<BoostingOverrideT>(value)); return *this;}
88 template<typename BoostingOverrideKeyT = Aws::String, typename BoostingOverrideValueT = DocumentAttributeBoostingConfiguration>
90 m_boostingOverrideHasBeenSet = true; m_boostingOverride.emplace(std::forward<BoostingOverrideKeyT>(key), std::forward<BoostingOverrideValueT>(value)); return *this;
91 }
93 private:
94
95 Aws::String m_indexId;
96 bool m_indexIdHasBeenSet = false;
97
98 long long m_version{0};
99 bool m_versionHasBeenSet = false;
100
102 bool m_boostingOverrideHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace QBusiness
107} // 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