AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListMessagesRequest.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/MessageFilterType.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 ListMessagesRequest() = 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 "ListMessages"; }
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
41 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
42 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
43 template <typename AssistantIdT = Aws::String>
45 m_assistantIdHasBeenSet = true;
46 m_assistantId = std::forward<AssistantIdT>(value);
47 }
48 template <typename AssistantIdT = Aws::String>
50 SetAssistantId(std::forward<AssistantIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSessionId() const { return m_sessionId; }
60 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
61 template <typename SessionIdT = Aws::String>
62 void SetSessionId(SessionIdT&& value) {
63 m_sessionIdHasBeenSet = true;
64 m_sessionId = std::forward<SessionIdT>(value);
65 }
66 template <typename SessionIdT = Aws::String>
68 SetSessionId(std::forward<SessionIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91
93
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) {
99 m_maxResultsHasBeenSet = true;
100 m_maxResults = value;
101 }
103 SetMaxResults(value);
104 return *this;
105 }
107
109
112 inline MessageFilterType GetFilter() const { return m_filter; }
113 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
114 inline void SetFilter(MessageFilterType value) {
115 m_filterHasBeenSet = true;
116 m_filter = value;
117 }
119 SetFilter(value);
120 return *this;
121 }
123 private:
124 Aws::String m_assistantId;
125
126 Aws::String m_sessionId;
127
128 Aws::String m_nextToken;
129
130 int m_maxResults{0};
131
133 bool m_assistantIdHasBeenSet = false;
134 bool m_sessionIdHasBeenSet = false;
135 bool m_nextTokenHasBeenSet = false;
136 bool m_maxResultsHasBeenSet = false;
137 bool m_filterHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace QConnect
142} // namespace Aws
AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListMessagesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
AWS_QCONNECT_API Aws::String SerializePayload() const override
ListMessagesRequest & WithSessionId(SessionIdT &&value)
ListMessagesRequest & WithFilter(MessageFilterType value)
ListMessagesRequest & WithNextToken(NextTokenT &&value)
AWS_QCONNECT_API ListMessagesRequest()=default
ListMessagesRequest & WithAssistantId(AssistantIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String