AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SearchMessageTemplatesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/MessageTemplateSearchExpression.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace QConnect {
19namespace Model {
20
24 public:
25 AWS_QCONNECT_API SearchMessageTemplatesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SearchMessageTemplates"; }
32
33 AWS_QCONNECT_API Aws::String SerializePayload() const override;
34
35 AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
42 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
43 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
44 template <typename KnowledgeBaseIdT = Aws::String>
46 m_knowledgeBaseIdHasBeenSet = true;
47 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
48 }
49 template <typename KnowledgeBaseIdT = Aws::String>
51 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
52 return *this;
53 }
55
57
60 inline const MessageTemplateSearchExpression& GetSearchExpression() const { return m_searchExpression; }
61 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
62 template <typename SearchExpressionT = MessageTemplateSearchExpression>
64 m_searchExpressionHasBeenSet = true;
65 m_searchExpression = std::forward<SearchExpressionT>(value);
66 }
67 template <typename SearchExpressionT = MessageTemplateSearchExpression>
69 SetSearchExpression(std::forward<SearchExpressionT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92
94
97 inline int GetMaxResults() const { return m_maxResults; }
98 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
99 inline void SetMaxResults(int value) {
100 m_maxResultsHasBeenSet = true;
101 m_maxResults = value;
102 }
104 SetMaxResults(value);
105 return *this;
106 }
108 private:
109 Aws::String m_knowledgeBaseId;
110
111 MessageTemplateSearchExpression m_searchExpression;
112
113 Aws::String m_nextToken;
114
115 int m_maxResults{0};
116 bool m_knowledgeBaseIdHasBeenSet = false;
117 bool m_searchExpressionHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_maxResultsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace QConnect
124} // namespace Aws
const MessageTemplateSearchExpression & GetSearchExpression() const
AWS_QCONNECT_API Aws::String SerializePayload() const override
AWS_QCONNECT_API SearchMessageTemplatesRequest()=default
AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchMessageTemplatesRequest & WithSearchExpression(SearchExpressionT &&value)
SearchMessageTemplatesRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
SearchMessageTemplatesRequest & WithMaxResults(int value)
SearchMessageTemplatesRequest & WithNextToken(NextTokenT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String