AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SearchSessionsRequest.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/SearchExpression.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 SearchSessionsRequest() = 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 "SearchSessions"; }
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& GetNextToken() const { return m_nextToken; }
43 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
44 template <typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) {
46 m_nextTokenHasBeenSet = true;
47 m_nextToken = std::forward<NextTokenT>(value);
48 }
49 template <typename NextTokenT = Aws::String>
51 SetNextToken(std::forward<NextTokenT>(value));
52 return *this;
53 }
55
57
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
78 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
79 template <typename AssistantIdT = Aws::String>
81 m_assistantIdHasBeenSet = true;
82 m_assistantId = std::forward<AssistantIdT>(value);
83 }
84 template <typename AssistantIdT = Aws::String>
86 SetAssistantId(std::forward<AssistantIdT>(value));
87 return *this;
88 }
90
92
95 inline const SearchExpression& GetSearchExpression() const { return m_searchExpression; }
96 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
97 template <typename SearchExpressionT = SearchExpression>
99 m_searchExpressionHasBeenSet = true;
100 m_searchExpression = std::forward<SearchExpressionT>(value);
101 }
102 template <typename SearchExpressionT = SearchExpression>
104 SetSearchExpression(std::forward<SearchExpressionT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_nextToken;
110
111 int m_maxResults{0};
112
113 Aws::String m_assistantId;
114
115 SearchExpression m_searchExpression;
116 bool m_nextTokenHasBeenSet = false;
117 bool m_maxResultsHasBeenSet = false;
118 bool m_assistantIdHasBeenSet = false;
119 bool m_searchExpressionHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace QConnect
124} // namespace Aws
void SetSearchExpression(SearchExpressionT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
SearchSessionsRequest & WithSearchExpression(SearchExpressionT &&value)
SearchSessionsRequest & WithAssistantId(AssistantIdT &&value)
virtual const char * GetServiceRequestName() const override
SearchSessionsRequest & WithMaxResults(int value)
AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const SearchExpression & GetSearchExpression() const
SearchSessionsRequest & WithNextToken(NextTokenT &&value)
AWS_QCONNECT_API SearchSessionsRequest()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String