AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/qconnect/model/QuickResponseSearchExpression.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();
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
50 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
51 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
52 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
53 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
56 inline SearchQuickResponsesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
57 inline SearchQuickResponsesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
58 inline SearchQuickResponsesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
59 inline SearchQuickResponsesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
60 inline SearchQuickResponsesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
61 inline SearchQuickResponsesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
62 inline SearchQuickResponsesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
64
66
71 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
72 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
73 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
74 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
75 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
77 inline SearchQuickResponsesRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
78 inline SearchQuickResponsesRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
80
82
85 inline int GetMaxResults() const{ return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
88 inline SearchQuickResponsesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
90
92
96 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
99 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
100 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
101 inline SearchQuickResponsesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 inline SearchQuickResponsesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
103 inline SearchQuickResponsesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105
107
110 inline const QuickResponseSearchExpression& GetSearchExpression() const{ return m_searchExpression; }
111 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
112 inline void SetSearchExpression(const QuickResponseSearchExpression& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = value; }
113 inline void SetSearchExpression(QuickResponseSearchExpression&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::move(value); }
117 private:
118
120 bool m_attributesHasBeenSet = false;
121
122 Aws::String m_knowledgeBaseId;
123 bool m_knowledgeBaseIdHasBeenSet = false;
124
125 int m_maxResults;
126 bool m_maxResultsHasBeenSet = false;
127
128 Aws::String m_nextToken;
129 bool m_nextTokenHasBeenSet = false;
130
131 QuickResponseSearchExpression m_searchExpression;
132 bool m_searchExpressionHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace QConnect
137} // namespace Aws
void SetSearchExpression(const QuickResponseSearchExpression &value)
SearchQuickResponsesRequest & AddAttributes(const char *key, Aws::String &&value)
SearchQuickResponsesRequest & WithKnowledgeBaseId(Aws::String &&value)
SearchQuickResponsesRequest & AddAttributes(Aws::String &&key, const char *value)
SearchQuickResponsesRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
const QuickResponseSearchExpression & GetSearchExpression() const
SearchQuickResponsesRequest & WithNextToken(const Aws::String &value)
SearchQuickResponsesRequest & WithNextToken(Aws::String &&value)
SearchQuickResponsesRequest & WithSearchExpression(QuickResponseSearchExpression &&value)
SearchQuickResponsesRequest & WithMaxResults(int value)
SearchQuickResponsesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
SearchQuickResponsesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetSearchExpression(QuickResponseSearchExpression &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
SearchQuickResponsesRequest & WithSearchExpression(const QuickResponseSearchExpression &value)
SearchQuickResponsesRequest & WithKnowledgeBaseId(const Aws::String &value)
SearchQuickResponsesRequest & AddAttributes(const char *key, const char *value)
SearchQuickResponsesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchQuickResponsesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SearchQuickResponsesRequest & WithKnowledgeBaseId(const char *value)
SearchQuickResponsesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
SearchQuickResponsesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &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