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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/wisdom/model/QuickResponseSearchExpression.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace ConnectWisdomService
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
39
40 AWS_CONNECTWISDOMSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
50 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
51 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
52 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
53 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
54 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
55 SearchQuickResponsesRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
56 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
57 SearchQuickResponsesRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
58 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
59 }
61
63
68 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
69 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
70 template<typename KnowledgeBaseIdT = Aws::String>
71 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
72 template<typename KnowledgeBaseIdT = Aws::String>
73 SearchQuickResponsesRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
75
77
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline SearchQuickResponsesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85
87
91 inline const Aws::String& GetNextToken() const { return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 template<typename NextTokenT = Aws::String>
94 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
95 template<typename NextTokenT = Aws::String>
96 SearchQuickResponsesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
98
100
103 inline const QuickResponseSearchExpression& GetSearchExpression() const { return m_searchExpression; }
104 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
105 template<typename SearchExpressionT = QuickResponseSearchExpression>
106 void SetSearchExpression(SearchExpressionT&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::forward<SearchExpressionT>(value); }
107 template<typename SearchExpressionT = QuickResponseSearchExpression>
108 SearchQuickResponsesRequest& WithSearchExpression(SearchExpressionT&& value) { SetSearchExpression(std::forward<SearchExpressionT>(value)); return *this;}
110 private:
111
113 bool m_attributesHasBeenSet = false;
114
115 Aws::String m_knowledgeBaseId;
116 bool m_knowledgeBaseIdHasBeenSet = false;
117
118 int m_maxResults{0};
119 bool m_maxResultsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123
124 QuickResponseSearchExpression m_searchExpression;
125 bool m_searchExpressionHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace ConnectWisdomService
130} // 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