AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
KendraConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
31 public:
32 AWS_LEXMODELSV2_API KendraConfiguration() = default;
33 AWS_LEXMODELSV2_API KendraConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetKendraIndex() const { return m_kendraIndex; }
44 inline bool KendraIndexHasBeenSet() const { return m_kendraIndexHasBeenSet; }
45 template <typename KendraIndexT = Aws::String>
46 void SetKendraIndex(KendraIndexT&& value) {
47 m_kendraIndexHasBeenSet = true;
48 m_kendraIndex = std::forward<KendraIndexT>(value);
49 }
50 template <typename KendraIndexT = Aws::String>
51 KendraConfiguration& WithKendraIndex(KendraIndexT&& value) {
52 SetKendraIndex(std::forward<KendraIndexT>(value));
53 return *this;
54 }
56
58
62 inline bool GetQueryFilterStringEnabled() const { return m_queryFilterStringEnabled; }
63 inline bool QueryFilterStringEnabledHasBeenSet() const { return m_queryFilterStringEnabledHasBeenSet; }
64 inline void SetQueryFilterStringEnabled(bool value) {
65 m_queryFilterStringEnabledHasBeenSet = true;
66 m_queryFilterStringEnabled = value;
67 }
70 return *this;
71 }
73
75
82 inline const Aws::String& GetQueryFilterString() const { return m_queryFilterString; }
83 inline bool QueryFilterStringHasBeenSet() const { return m_queryFilterStringHasBeenSet; }
84 template <typename QueryFilterStringT = Aws::String>
85 void SetQueryFilterString(QueryFilterStringT&& value) {
86 m_queryFilterStringHasBeenSet = true;
87 m_queryFilterString = std::forward<QueryFilterStringT>(value);
88 }
89 template <typename QueryFilterStringT = Aws::String>
90 KendraConfiguration& WithQueryFilterString(QueryFilterStringT&& value) {
91 SetQueryFilterString(std::forward<QueryFilterStringT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_kendraIndex;
97
98 bool m_queryFilterStringEnabled{false};
99
100 Aws::String m_queryFilterString;
101 bool m_kendraIndexHasBeenSet = false;
102 bool m_queryFilterStringEnabledHasBeenSet = false;
103 bool m_queryFilterStringHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace LexModelsV2
108} // namespace Aws
AWS_LEXMODELSV2_API KendraConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetQueryFilterString(QueryFilterStringT &&value)
KendraConfiguration & WithQueryFilterStringEnabled(bool value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API KendraConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KendraConfiguration & WithKendraIndex(KendraIndexT &&value)
KendraConfiguration & WithQueryFilterString(QueryFilterStringT &&value)
AWS_LEXMODELSV2_API KendraConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue