AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StringAttributeBoostingConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/DocumentAttributeBoostingLevel.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/qbusiness/model/StringAttributeValueBoostingLevel.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QBusiness
25{
26namespace Model
27{
28
47 {
48 public:
52 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const DocumentAttributeBoostingLevel& GetBoostingLevel() const{ return m_boostingLevel; }
60 inline bool BoostingLevelHasBeenSet() const { return m_boostingLevelHasBeenSet; }
61 inline void SetBoostingLevel(const DocumentAttributeBoostingLevel& value) { m_boostingLevelHasBeenSet = true; m_boostingLevel = value; }
62 inline void SetBoostingLevel(DocumentAttributeBoostingLevel&& value) { m_boostingLevelHasBeenSet = true; m_boostingLevel = std::move(value); }
66
68
72 inline const Aws::Map<Aws::String, StringAttributeValueBoostingLevel>& GetAttributeValueBoosting() const{ return m_attributeValueBoosting; }
73 inline bool AttributeValueBoostingHasBeenSet() const { return m_attributeValueBoostingHasBeenSet; }
74 inline void SetAttributeValueBoosting(const Aws::Map<Aws::String, StringAttributeValueBoostingLevel>& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting = value; }
75 inline void SetAttributeValueBoosting(Aws::Map<Aws::String, StringAttributeValueBoostingLevel>&& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting = std::move(value); }
78 inline StringAttributeBoostingConfiguration& AddAttributeValueBoosting(const Aws::String& key, const StringAttributeValueBoostingLevel& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting.emplace(key, value); return *this; }
79 inline StringAttributeBoostingConfiguration& AddAttributeValueBoosting(Aws::String&& key, const StringAttributeValueBoostingLevel& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting.emplace(std::move(key), value); return *this; }
80 inline StringAttributeBoostingConfiguration& AddAttributeValueBoosting(const Aws::String& key, StringAttributeValueBoostingLevel&& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting.emplace(key, std::move(value)); return *this; }
81 inline StringAttributeBoostingConfiguration& AddAttributeValueBoosting(Aws::String&& key, StringAttributeValueBoostingLevel&& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting.emplace(std::move(key), std::move(value)); return *this; }
82 inline StringAttributeBoostingConfiguration& AddAttributeValueBoosting(const char* key, StringAttributeValueBoostingLevel&& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting.emplace(key, std::move(value)); return *this; }
83 inline StringAttributeBoostingConfiguration& AddAttributeValueBoosting(const char* key, const StringAttributeValueBoostingLevel& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting.emplace(key, value); return *this; }
85 private:
86
87 DocumentAttributeBoostingLevel m_boostingLevel;
88 bool m_boostingLevelHasBeenSet = false;
89
91 bool m_attributeValueBoostingHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace QBusiness
96} // namespace Aws
StringAttributeBoostingConfiguration & AddAttributeValueBoosting(const Aws::String &key, const StringAttributeValueBoostingLevel &value)
StringAttributeBoostingConfiguration & AddAttributeValueBoosting(const char *key, StringAttributeValueBoostingLevel &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
StringAttributeBoostingConfiguration & WithAttributeValueBoosting(Aws::Map< Aws::String, StringAttributeValueBoostingLevel > &&value)
void SetAttributeValueBoosting(Aws::Map< Aws::String, StringAttributeValueBoostingLevel > &&value)
const Aws::Map< Aws::String, StringAttributeValueBoostingLevel > & GetAttributeValueBoosting() const
StringAttributeBoostingConfiguration & AddAttributeValueBoosting(const char *key, const StringAttributeValueBoostingLevel &value)
StringAttributeBoostingConfiguration & WithBoostingLevel(DocumentAttributeBoostingLevel &&value)
void SetAttributeValueBoosting(const Aws::Map< Aws::String, StringAttributeValueBoostingLevel > &value)
StringAttributeBoostingConfiguration & AddAttributeValueBoosting(Aws::String &&key, const StringAttributeValueBoostingLevel &value)
StringAttributeBoostingConfiguration & AddAttributeValueBoosting(Aws::String &&key, StringAttributeValueBoostingLevel &&value)
AWS_QBUSINESS_API StringAttributeBoostingConfiguration(Aws::Utils::Json::JsonView jsonValue)
StringAttributeBoostingConfiguration & AddAttributeValueBoosting(const Aws::String &key, StringAttributeValueBoostingLevel &&value)
StringAttributeBoostingConfiguration & WithAttributeValueBoosting(const Aws::Map< Aws::String, StringAttributeValueBoostingLevel > &value)
AWS_QBUSINESS_API StringAttributeBoostingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
StringAttributeBoostingConfiguration & WithBoostingLevel(const DocumentAttributeBoostingLevel &value)
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