AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
KendraConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelBuildingService {
20namespace Model {
21
33 public:
34 AWS_LEXMODELBUILDINGSERVICE_API KendraConfiguration() = default;
35 AWS_LEXMODELBUILDINGSERVICE_API KendraConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELBUILDINGSERVICE_API KendraConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::String& GetKendraIndex() const { return m_kendraIndex; }
48 inline bool KendraIndexHasBeenSet() const { return m_kendraIndexHasBeenSet; }
49 template <typename KendraIndexT = Aws::String>
50 void SetKendraIndex(KendraIndexT&& value) {
51 m_kendraIndexHasBeenSet = true;
52 m_kendraIndex = std::forward<KendraIndexT>(value);
53 }
54 template <typename KendraIndexT = Aws::String>
55 KendraConfiguration& WithKendraIndex(KendraIndexT&& value) {
56 SetKendraIndex(std::forward<KendraIndexT>(value));
57 return *this;
58 }
60
62
70 inline const Aws::String& GetQueryFilterString() const { return m_queryFilterString; }
71 inline bool QueryFilterStringHasBeenSet() const { return m_queryFilterStringHasBeenSet; }
72 template <typename QueryFilterStringT = Aws::String>
73 void SetQueryFilterString(QueryFilterStringT&& value) {
74 m_queryFilterStringHasBeenSet = true;
75 m_queryFilterString = std::forward<QueryFilterStringT>(value);
76 }
77 template <typename QueryFilterStringT = Aws::String>
78 KendraConfiguration& WithQueryFilterString(QueryFilterStringT&& value) {
79 SetQueryFilterString(std::forward<QueryFilterStringT>(value));
80 return *this;
81 }
83
85
91 inline const Aws::String& GetRole() const { return m_role; }
92 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
93 template <typename RoleT = Aws::String>
94 void SetRole(RoleT&& value) {
95 m_roleHasBeenSet = true;
96 m_role = std::forward<RoleT>(value);
97 }
98 template <typename RoleT = Aws::String>
99 KendraConfiguration& WithRole(RoleT&& value) {
100 SetRole(std::forward<RoleT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_kendraIndex;
106
107 Aws::String m_queryFilterString;
108
109 Aws::String m_role;
110 bool m_kendraIndexHasBeenSet = false;
111 bool m_queryFilterStringHasBeenSet = false;
112 bool m_roleHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace LexModelBuildingService
117} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API KendraConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KendraConfiguration & WithKendraIndex(KendraIndexT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELBUILDINGSERVICE_API KendraConfiguration()=default
KendraConfiguration & WithQueryFilterString(QueryFilterStringT &&value)
AWS_LEXMODELBUILDINGSERVICE_API KendraConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue