AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
49 AWS_QBUSINESS_API StringAttributeBoostingConfiguration() = default;
52 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
66 inline DocumentAttributeBoostingLevel GetBoostingLevel() const { return m_boostingLevel; }
67 inline bool BoostingLevelHasBeenSet() const { return m_boostingLevelHasBeenSet; }
68 inline void SetBoostingLevel(DocumentAttributeBoostingLevel value) { m_boostingLevelHasBeenSet = true; m_boostingLevel = value; }
71
73
78 inline const Aws::Map<Aws::String, StringAttributeValueBoostingLevel>& GetAttributeValueBoosting() const { return m_attributeValueBoosting; }
79 inline bool AttributeValueBoostingHasBeenSet() const { return m_attributeValueBoostingHasBeenSet; }
80 template<typename AttributeValueBoostingT = Aws::Map<Aws::String, StringAttributeValueBoostingLevel>>
81 void SetAttributeValueBoosting(AttributeValueBoostingT&& value) { m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting = std::forward<AttributeValueBoostingT>(value); }
82 template<typename AttributeValueBoostingT = Aws::Map<Aws::String, StringAttributeValueBoostingLevel>>
83 StringAttributeBoostingConfiguration& WithAttributeValueBoosting(AttributeValueBoostingT&& value) { SetAttributeValueBoosting(std::forward<AttributeValueBoostingT>(value)); return *this;}
85 m_attributeValueBoostingHasBeenSet = true; m_attributeValueBoosting.emplace(key, value); return *this;
86 }
88 private:
89
91 bool m_boostingLevelHasBeenSet = false;
92
94 bool m_attributeValueBoostingHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace QBusiness
99} // namespace Aws
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, StringAttributeValueBoostingLevel > & GetAttributeValueBoosting() const
AWS_QBUSINESS_API StringAttributeBoostingConfiguration(Aws::Utils::Json::JsonView jsonValue)
StringAttributeBoostingConfiguration & WithBoostingLevel(DocumentAttributeBoostingLevel value)
StringAttributeBoostingConfiguration & AddAttributeValueBoosting(Aws::String key, StringAttributeValueBoostingLevel value)
AWS_QBUSINESS_API StringAttributeBoostingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
StringAttributeBoostingConfiguration & WithAttributeValueBoosting(AttributeValueBoostingT &&value)
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