AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
GetQuerySuggestionsRequest.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/AttributeSuggestionsGetConfig.h>
12#include <aws/kendra/model/SuggestionType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace kendra
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_KENDRA_API GetQuerySuggestionsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetQuerySuggestions"; }
34
35 AWS_KENDRA_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetIndexId() const { return m_indexId; }
45 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
46 template<typename IndexIdT = Aws::String>
47 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
48 template<typename IndexIdT = Aws::String>
49 GetQuerySuggestionsRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
51
53
61 inline const Aws::String& GetQueryText() const { return m_queryText; }
62 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
63 template<typename QueryTextT = Aws::String>
64 void SetQueryText(QueryTextT&& value) { m_queryTextHasBeenSet = true; m_queryText = std::forward<QueryTextT>(value); }
65 template<typename QueryTextT = Aws::String>
66 GetQuerySuggestionsRequest& WithQueryText(QueryTextT&& value) { SetQueryText(std::forward<QueryTextT>(value)); return *this;}
68
70
73 inline int GetMaxSuggestionsCount() const { return m_maxSuggestionsCount; }
74 inline bool MaxSuggestionsCountHasBeenSet() const { return m_maxSuggestionsCountHasBeenSet; }
75 inline void SetMaxSuggestionsCount(int value) { m_maxSuggestionsCountHasBeenSet = true; m_maxSuggestionsCount = value; }
78
80
89 inline const Aws::Vector<SuggestionType>& GetSuggestionTypes() const { return m_suggestionTypes; }
90 inline bool SuggestionTypesHasBeenSet() const { return m_suggestionTypesHasBeenSet; }
91 template<typename SuggestionTypesT = Aws::Vector<SuggestionType>>
92 void SetSuggestionTypes(SuggestionTypesT&& value) { m_suggestionTypesHasBeenSet = true; m_suggestionTypes = std::forward<SuggestionTypesT>(value); }
93 template<typename SuggestionTypesT = Aws::Vector<SuggestionType>>
94 GetQuerySuggestionsRequest& WithSuggestionTypes(SuggestionTypesT&& value) { SetSuggestionTypes(std::forward<SuggestionTypesT>(value)); return *this;}
95 inline GetQuerySuggestionsRequest& AddSuggestionTypes(SuggestionType value) { m_suggestionTypesHasBeenSet = true; m_suggestionTypes.push_back(value); return *this; }
97
99
103 inline const AttributeSuggestionsGetConfig& GetAttributeSuggestionsConfig() const { return m_attributeSuggestionsConfig; }
104 inline bool AttributeSuggestionsConfigHasBeenSet() const { return m_attributeSuggestionsConfigHasBeenSet; }
105 template<typename AttributeSuggestionsConfigT = AttributeSuggestionsGetConfig>
106 void SetAttributeSuggestionsConfig(AttributeSuggestionsConfigT&& value) { m_attributeSuggestionsConfigHasBeenSet = true; m_attributeSuggestionsConfig = std::forward<AttributeSuggestionsConfigT>(value); }
107 template<typename AttributeSuggestionsConfigT = AttributeSuggestionsGetConfig>
108 GetQuerySuggestionsRequest& WithAttributeSuggestionsConfig(AttributeSuggestionsConfigT&& value) { SetAttributeSuggestionsConfig(std::forward<AttributeSuggestionsConfigT>(value)); return *this;}
110 private:
111
112 Aws::String m_indexId;
113 bool m_indexIdHasBeenSet = false;
114
115 Aws::String m_queryText;
116 bool m_queryTextHasBeenSet = false;
117
118 int m_maxSuggestionsCount{0};
119 bool m_maxSuggestionsCountHasBeenSet = false;
120
121 Aws::Vector<SuggestionType> m_suggestionTypes;
122 bool m_suggestionTypesHasBeenSet = false;
123
124 AttributeSuggestionsGetConfig m_attributeSuggestionsConfig;
125 bool m_attributeSuggestionsConfigHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace kendra
130} // namespace Aws
const AttributeSuggestionsGetConfig & GetAttributeSuggestionsConfig() const
virtual const char * GetServiceRequestName() const override
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetQuerySuggestionsRequest & WithAttributeSuggestionsConfig(AttributeSuggestionsConfigT &&value)
GetQuerySuggestionsRequest & WithSuggestionTypes(SuggestionTypesT &&value)
AWS_KENDRA_API GetQuerySuggestionsRequest()=default
GetQuerySuggestionsRequest & WithMaxSuggestionsCount(int value)
AWS_KENDRA_API Aws::String SerializePayload() const override
void SetAttributeSuggestionsConfig(AttributeSuggestionsConfigT &&value)
const Aws::Vector< SuggestionType > & GetSuggestionTypes() const
GetQuerySuggestionsRequest & WithQueryText(QueryTextT &&value)
GetQuerySuggestionsRequest & WithIndexId(IndexIdT &&value)
GetQuerySuggestionsRequest & AddSuggestionTypes(SuggestionType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector