AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SearchQuickResponsesRequest.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/qconnect/QConnectRequest.h>
10#include <aws/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/QuickResponseSearchExpression.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace QConnect {
20namespace Model {
21
25 public:
26 AWS_QCONNECT_API SearchQuickResponsesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchQuickResponses"; }
33
34 AWS_QCONNECT_API Aws::String SerializePayload() const override;
35
36 AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
44 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
45 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
46 template <typename KnowledgeBaseIdT = Aws::String>
48 m_knowledgeBaseIdHasBeenSet = true;
49 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
50 }
51 template <typename KnowledgeBaseIdT = Aws::String>
53 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
54 return *this;
55 }
57
59
62 inline const QuickResponseSearchExpression& GetSearchExpression() const { return m_searchExpression; }
63 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
64 template <typename SearchExpressionT = QuickResponseSearchExpression>
66 m_searchExpressionHasBeenSet = true;
67 m_searchExpression = std::forward<SearchExpressionT>(value);
68 }
69 template <typename SearchExpressionT = QuickResponseSearchExpression>
71 SetSearchExpression(std::forward<SearchExpressionT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template <typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) {
85 m_nextTokenHasBeenSet = true;
86 m_nextToken = std::forward<NextTokenT>(value);
87 }
88 template <typename NextTokenT = Aws::String>
90 SetNextToken(std::forward<NextTokenT>(value));
91 return *this;
92 }
94
96
99 inline int GetMaxResults() const { return m_maxResults; }
100 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 inline void SetMaxResults(int value) {
102 m_maxResultsHasBeenSet = true;
103 m_maxResults = value;
104 }
106 SetMaxResults(value);
107 return *this;
108 }
110
112
118 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
119 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
120 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
122 m_attributesHasBeenSet = true;
123 m_attributes = std::forward<AttributesT>(value);
124 }
125 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
127 SetAttributes(std::forward<AttributesT>(value));
128 return *this;
129 }
130 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
132 m_attributesHasBeenSet = true;
133 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_knowledgeBaseId;
139
140 QuickResponseSearchExpression m_searchExpression;
141
142 Aws::String m_nextToken;
143
144 int m_maxResults{0};
145
147 bool m_knowledgeBaseIdHasBeenSet = false;
148 bool m_searchExpressionHasBeenSet = false;
149 bool m_nextTokenHasBeenSet = false;
150 bool m_maxResultsHasBeenSet = false;
151 bool m_attributesHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace QConnect
156} // namespace Aws
SearchQuickResponsesRequest & WithAttributes(AttributesT &&value)
virtual const char * GetServiceRequestName() const override
const QuickResponseSearchExpression & GetSearchExpression() const
SearchQuickResponsesRequest & WithMaxResults(int value)
SearchQuickResponsesRequest & WithSearchExpression(SearchExpressionT &&value)
SearchQuickResponsesRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
SearchQuickResponsesRequest & WithNextToken(NextTokenT &&value)
AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchQuickResponsesRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_QCONNECT_API SearchQuickResponsesRequest()=default
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