AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
50 inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
51 inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
52 inline NativeIndexConfiguration& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
53 inline NativeIndexConfiguration& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
54 inline NativeIndexConfiguration& WithIndexId(const char* value) { SetIndexId(value); return *this;}
56
58
63 inline bool BoostingOverrideHasBeenSet() const { return m_boostingOverrideHasBeenSet; }
64 inline void SetBoostingOverride(const Aws::Map<Aws::String, DocumentAttributeBoostingConfiguration>& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride = value; }
65 inline void SetBoostingOverride(Aws::Map<Aws::String, DocumentAttributeBoostingConfiguration>&& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride = std::move(value); }
68 inline NativeIndexConfiguration& AddBoostingOverride(const Aws::String& key, const DocumentAttributeBoostingConfiguration& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride.emplace(key, value); return *this; }
69 inline NativeIndexConfiguration& AddBoostingOverride(Aws::String&& key, const DocumentAttributeBoostingConfiguration& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride.emplace(std::move(key), value); return *this; }
70 inline NativeIndexConfiguration& AddBoostingOverride(const Aws::String& key, DocumentAttributeBoostingConfiguration&& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride.emplace(key, std::move(value)); return *this; }
71 inline NativeIndexConfiguration& AddBoostingOverride(Aws::String&& key, DocumentAttributeBoostingConfiguration&& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride.emplace(std::move(key), std::move(value)); return *this; }
72 inline NativeIndexConfiguration& AddBoostingOverride(const char* key, DocumentAttributeBoostingConfiguration&& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride.emplace(key, std::move(value)); return *this; }
73 inline NativeIndexConfiguration& AddBoostingOverride(const char* key, const DocumentAttributeBoostingConfiguration& value) { m_boostingOverrideHasBeenSet = true; m_boostingOverride.emplace(key, value); return *this; }
75 private:
76
77 Aws::String m_indexId;
78 bool m_indexIdHasBeenSet = false;
79
81 bool m_boostingOverrideHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace QBusiness
86} // namespace Aws
NativeIndexConfiguration & WithIndexId(Aws::String &&value)
NativeIndexConfiguration & WithBoostingOverride(const Aws::Map< Aws::String, DocumentAttributeBoostingConfiguration > &value)
NativeIndexConfiguration & WithBoostingOverride(Aws::Map< Aws::String, DocumentAttributeBoostingConfiguration > &&value)
void SetBoostingOverride(const Aws::Map< Aws::String, DocumentAttributeBoostingConfiguration > &value)
NativeIndexConfiguration & AddBoostingOverride(Aws::String &&key, DocumentAttributeBoostingConfiguration &&value)
NativeIndexConfiguration & AddBoostingOverride(const Aws::String &key, DocumentAttributeBoostingConfiguration &&value)
const Aws::Map< Aws::String, DocumentAttributeBoostingConfiguration > & GetBoostingOverride() const
NativeIndexConfiguration & WithIndexId(const Aws::String &value)
AWS_QBUSINESS_API NativeIndexConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetBoostingOverride(Aws::Map< Aws::String, DocumentAttributeBoostingConfiguration > &&value)
NativeIndexConfiguration & WithIndexId(const char *value)
NativeIndexConfiguration & AddBoostingOverride(Aws::String &&key, const DocumentAttributeBoostingConfiguration &value)
NativeIndexConfiguration & AddBoostingOverride(const Aws::String &key, const DocumentAttributeBoostingConfiguration &value)
NativeIndexConfiguration & AddBoostingOverride(const char *key, const DocumentAttributeBoostingConfiguration &value)
NativeIndexConfiguration & AddBoostingOverride(const char *key, DocumentAttributeBoostingConfiguration &&value)
AWS_QBUSINESS_API NativeIndexConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
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