AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchSessionsRequest.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/SearchExpression.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace QConnect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QCONNECT_API SearchSessionsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SearchSessions"; }
36
37 AWS_QCONNECT_API Aws::String SerializePayload() const override;
38
39 AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const Aws::String& GetNextToken() const { return m_nextToken; }
48 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
49 template<typename NextTokenT = Aws::String>
50 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
51 template<typename NextTokenT = Aws::String>
52 SearchSessionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
54
56
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline SearchSessionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
70 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
71 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
72 template<typename AssistantIdT = Aws::String>
73 void SetAssistantId(AssistantIdT&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::forward<AssistantIdT>(value); }
74 template<typename AssistantIdT = Aws::String>
75 SearchSessionsRequest& WithAssistantId(AssistantIdT&& value) { SetAssistantId(std::forward<AssistantIdT>(value)); return *this;}
77
79
82 inline const SearchExpression& GetSearchExpression() const { return m_searchExpression; }
83 inline bool SearchExpressionHasBeenSet() const { return m_searchExpressionHasBeenSet; }
84 template<typename SearchExpressionT = SearchExpression>
85 void SetSearchExpression(SearchExpressionT&& value) { m_searchExpressionHasBeenSet = true; m_searchExpression = std::forward<SearchExpressionT>(value); }
86 template<typename SearchExpressionT = SearchExpression>
87 SearchSessionsRequest& WithSearchExpression(SearchExpressionT&& value) { SetSearchExpression(std::forward<SearchExpressionT>(value)); return *this;}
89 private:
90
91 Aws::String m_nextToken;
92 bool m_nextTokenHasBeenSet = false;
93
94 int m_maxResults{0};
95 bool m_maxResultsHasBeenSet = false;
96
97 Aws::String m_assistantId;
98 bool m_assistantIdHasBeenSet = false;
99
100 SearchExpression m_searchExpression;
101 bool m_searchExpressionHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace QConnect
106} // 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