AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchQuickResponsesRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/QuickResponseSearchExpression.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace QConnect
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_QCONNECT_API SearchQuickResponsesRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "SearchQuickResponses"; }
37
38 AWS_QCONNECT_API Aws::String SerializePayload() const override;
39
40 AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
49 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
50 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
51 template<typename KnowledgeBaseIdT = Aws::String>
52 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
53 template<typename KnowledgeBaseIdT = Aws::String>
54 SearchQuickResponsesRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
56
58
61 inline const QuickResponseSearchExpression& GetSearchExpression() const { return m_searchExpression; }
62 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
63 template<typename SearchExpressionT = QuickResponseSearchExpression>
64 void SetSearchExpression(SearchExpressionT&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::forward<SearchExpressionT>(value); }
65 template<typename SearchExpressionT = QuickResponseSearchExpression>
66 SearchQuickResponsesRequest& WithSearchExpression(SearchExpressionT&& value) { SetSearchExpression(std::forward<SearchExpressionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template<typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
78 template<typename NextTokenT = Aws::String>
79 SearchQuickResponsesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
81
83
86 inline int GetMaxResults() const { return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
89 inline SearchQuickResponsesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
91
93
99 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
100 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
101 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
102 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
103 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
104 SearchQuickResponsesRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
105 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
107 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
108 }
110 private:
111
112 Aws::String m_knowledgeBaseId;
113 bool m_knowledgeBaseIdHasBeenSet = false;
114
115 QuickResponseSearchExpression m_searchExpression;
116 bool m_searchExpressionHasBeenSet = false;
117
118 Aws::String m_nextToken;
119 bool m_nextTokenHasBeenSet = false;
120
121 int m_maxResults{0};
122 bool m_maxResultsHasBeenSet = false;
123
125 bool m_attributesHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace QConnect
130} // 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