AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
SearchSessionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
10#include <aws/wisdom/model/SearchExpression.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace ConnectWisdomService {
19namespace Model {
20
24 public:
25 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_CONNECTWISDOMSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
42 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
43 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
44 template <typename AssistantIdT = Aws::String>
45 void SetAssistantId(AssistantIdT&& value) {
46 m_assistantIdHasBeenSet = true;
47 m_assistantId = std::forward<AssistantIdT>(value);
48 }
49 template <typename AssistantIdT = Aws::String>
50 SearchSessionsRequest& WithAssistantId(AssistantIdT&& value) {
51 SetAssistantId(std::forward<AssistantIdT>(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& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template <typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) {
81 m_nextTokenHasBeenSet = true;
82 m_nextToken = std::forward<NextTokenT>(value);
83 }
84 template <typename NextTokenT = Aws::String>
85 SearchSessionsRequest& WithNextToken(NextTokenT&& value) {
86 SetNextToken(std::forward<NextTokenT>(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>
98 void SetSearchExpression(SearchExpressionT&& value) {
99 m_searchExpressionHasBeenSet = true;
100 m_searchExpression = std::forward<SearchExpressionT>(value);
101 }
102 template <typename SearchExpressionT = SearchExpression>
103 SearchSessionsRequest& WithSearchExpression(SearchExpressionT&& value) {
104 SetSearchExpression(std::forward<SearchExpressionT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_assistantId;
110
111 int m_maxResults{0};
112
113 Aws::String m_nextToken;
114
115 SearchExpression m_searchExpression;
116 bool m_assistantIdHasBeenSet = false;
117 bool m_maxResultsHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_searchExpressionHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace ConnectWisdomService
124} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API SearchSessionsRequest()=default
SearchSessionsRequest & WithAssistantId(AssistantIdT &&value)
AWS_CONNECTWISDOMSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchSessionsRequest & WithSearchExpression(SearchExpressionT &&value)
virtual const char * GetServiceRequestName() const override
SearchSessionsRequest & WithNextToken(NextTokenT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String