AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
StringAttributeBoostingConfiguration.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/DocumentAttributeBoostingLevel.h>
11#include <aws/qbusiness/model/StringAttributeValueBoostingLevel.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness {
23namespace Model {
24
43 public:
44 AWS_QBUSINESS_API StringAttributeBoostingConfiguration() = default;
47 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
60 inline DocumentAttributeBoostingLevel GetBoostingLevel() const { return m_boostingLevel; }
61 inline bool BoostingLevelHasBeenSet() const { return m_boostingLevelHasBeenSet; }
63 m_boostingLevelHasBeenSet = true;
64 m_boostingLevel = value;
65 }
67 SetBoostingLevel(value);
68 return *this;
69 }
71
73
79 return m_attributeValueBoosting;
80 }
81 inline bool AttributeValueBoostingHasBeenSet() const { return m_attributeValueBoostingHasBeenSet; }
82 template <typename AttributeValueBoostingT = Aws::Map<Aws::String, StringAttributeValueBoostingLevel>>
84 m_attributeValueBoostingHasBeenSet = true;
85 m_attributeValueBoosting = std::forward<AttributeValueBoostingT>(value);
86 }
87 template <typename AttributeValueBoostingT = Aws::Map<Aws::String, StringAttributeValueBoostingLevel>>
89 SetAttributeValueBoosting(std::forward<AttributeValueBoostingT>(value));
90 return *this;
91 }
93 m_attributeValueBoostingHasBeenSet = true;
94 m_attributeValueBoosting.emplace(key, value);
95 return *this;
96 }
98 private:
100
102 bool m_boostingLevelHasBeenSet = false;
103 bool m_attributeValueBoostingHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace QBusiness
108} // 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