AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QnAKendraConfiguration.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LEXMODELSV2_API QnAKendraConfiguration();
36 AWS_LEXMODELSV2_API QnAKendraConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetKendraIndex() const{ return m_kendraIndex; }
46 inline bool KendraIndexHasBeenSet() const { return m_kendraIndexHasBeenSet; }
47 inline void SetKendraIndex(const Aws::String& value) { m_kendraIndexHasBeenSet = true; m_kendraIndex = value; }
48 inline void SetKendraIndex(Aws::String&& value) { m_kendraIndexHasBeenSet = true; m_kendraIndex = std::move(value); }
49 inline void SetKendraIndex(const char* value) { m_kendraIndexHasBeenSet = true; m_kendraIndex.assign(value); }
50 inline QnAKendraConfiguration& WithKendraIndex(const Aws::String& value) { SetKendraIndex(value); return *this;}
51 inline QnAKendraConfiguration& WithKendraIndex(Aws::String&& value) { SetKendraIndex(std::move(value)); return *this;}
52 inline QnAKendraConfiguration& WithKendraIndex(const char* value) { SetKendraIndex(value); return *this;}
54
56
59 inline bool GetQueryFilterStringEnabled() const{ return m_queryFilterStringEnabled; }
60 inline bool QueryFilterStringEnabledHasBeenSet() const { return m_queryFilterStringEnabledHasBeenSet; }
61 inline void SetQueryFilterStringEnabled(bool value) { m_queryFilterStringEnabledHasBeenSet = true; m_queryFilterStringEnabled = value; }
64
66
72 inline const Aws::String& GetQueryFilterString() const{ return m_queryFilterString; }
73 inline bool QueryFilterStringHasBeenSet() const { return m_queryFilterStringHasBeenSet; }
74 inline void SetQueryFilterString(const Aws::String& value) { m_queryFilterStringHasBeenSet = true; m_queryFilterString = value; }
75 inline void SetQueryFilterString(Aws::String&& value) { m_queryFilterStringHasBeenSet = true; m_queryFilterString = std::move(value); }
76 inline void SetQueryFilterString(const char* value) { m_queryFilterStringHasBeenSet = true; m_queryFilterString.assign(value); }
78 inline QnAKendraConfiguration& WithQueryFilterString(Aws::String&& value) { SetQueryFilterString(std::move(value)); return *this;}
79 inline QnAKendraConfiguration& WithQueryFilterString(const char* value) { SetQueryFilterString(value); return *this;}
81
83
91 inline bool GetExactResponse() const{ return m_exactResponse; }
92 inline bool ExactResponseHasBeenSet() const { return m_exactResponseHasBeenSet; }
93 inline void SetExactResponse(bool value) { m_exactResponseHasBeenSet = true; m_exactResponse = value; }
94 inline QnAKendraConfiguration& WithExactResponse(bool value) { SetExactResponse(value); return *this;}
96 private:
97
98 Aws::String m_kendraIndex;
99 bool m_kendraIndexHasBeenSet = false;
100
101 bool m_queryFilterStringEnabled;
102 bool m_queryFilterStringEnabledHasBeenSet = false;
103
104 Aws::String m_queryFilterString;
105 bool m_queryFilterStringHasBeenSet = false;
106
107 bool m_exactResponse;
108 bool m_exactResponseHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace LexModelsV2
113} // namespace Aws
QnAKendraConfiguration & WithKendraIndex(const char *value)
QnAKendraConfiguration & WithExactResponse(bool value)
QnAKendraConfiguration & WithQueryFilterString(Aws::String &&value)
AWS_LEXMODELSV2_API QnAKendraConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
QnAKendraConfiguration & WithKendraIndex(Aws::String &&value)
QnAKendraConfiguration & WithQueryFilterStringEnabled(bool value)
AWS_LEXMODELSV2_API QnAKendraConfiguration(Aws::Utils::Json::JsonView jsonValue)
QnAKendraConfiguration & WithQueryFilterString(const char *value)
QnAKendraConfiguration & WithQueryFilterString(const Aws::String &value)
QnAKendraConfiguration & WithKendraIndex(const Aws::String &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue