AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/wisdom/ConnectWisdomServiceRequest.h>
10#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
11#include <aws/wisdom/model/QuickResponseSearchExpression.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace ConnectWisdomService {
20namespace Model {
21
25 public:
26 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONNECTWISDOMSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
45 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
46 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
47 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
48 void SetAttributes(AttributesT&& value) {
49 m_attributesHasBeenSet = true;
50 m_attributes = std::forward<AttributesT>(value);
51 }
52 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
54 SetAttributes(std::forward<AttributesT>(value));
55 return *this;
56 }
57 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
58 SearchQuickResponsesRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
59 m_attributesHasBeenSet = true;
60 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
72 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
73 template <typename KnowledgeBaseIdT = Aws::String>
74 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
75 m_knowledgeBaseIdHasBeenSet = true;
76 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
77 }
78 template <typename KnowledgeBaseIdT = Aws::String>
80 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
81 return *this;
82 }
84
86
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) {
92 m_maxResultsHasBeenSet = true;
93 m_maxResults = value;
94 }
96 SetMaxResults(value);
97 return *this;
98 }
100
102
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template <typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) {
110 m_nextTokenHasBeenSet = true;
111 m_nextToken = std::forward<NextTokenT>(value);
112 }
113 template <typename NextTokenT = Aws::String>
115 SetNextToken(std::forward<NextTokenT>(value));
116 return *this;
117 }
119
121
124 inline const QuickResponseSearchExpression& GetSearchExpression() const { return m_searchExpression; }
125 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
126 template <typename SearchExpressionT = QuickResponseSearchExpression>
127 void SetSearchExpression(SearchExpressionT&& value) {
128 m_searchExpressionHasBeenSet = true;
129 m_searchExpression = std::forward<SearchExpressionT>(value);
130 }
131 template <typename SearchExpressionT = QuickResponseSearchExpression>
133 SetSearchExpression(std::forward<SearchExpressionT>(value));
134 return *this;
135 }
137 private:
139
140 Aws::String m_knowledgeBaseId;
141
142 int m_maxResults{0};
143
144 Aws::String m_nextToken;
145
146 QuickResponseSearchExpression m_searchExpression;
147 bool m_attributesHasBeenSet = false;
148 bool m_knowledgeBaseIdHasBeenSet = false;
149 bool m_maxResultsHasBeenSet = false;
150 bool m_nextTokenHasBeenSet = false;
151 bool m_searchExpressionHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace ConnectWisdomService
156} // namespace Aws
SearchQuickResponsesRequest & WithNextToken(NextTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
SearchQuickResponsesRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_CONNECTWISDOMSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchQuickResponsesRequest & WithSearchExpression(SearchExpressionT &&value)
SearchQuickResponsesRequest & WithAttributes(AttributesT &&value)
AWS_CONNECTWISDOMSERVICE_API SearchQuickResponsesRequest()=default
SearchQuickResponsesRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
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