AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ListMessagesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace QBusiness {
18namespace Model {
19
23 public:
24 AWS_QBUSINESS_API ListMessagesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListMessages"; }
31
32 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
33
34 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetConversationId() const { return m_conversationId; }
41 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
42 template <typename ConversationIdT = Aws::String>
44 m_conversationIdHasBeenSet = true;
45 m_conversationId = std::forward<ConversationIdT>(value);
46 }
47 template <typename ConversationIdT = Aws::String>
49 SetConversationId(std::forward<ConversationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
59 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
60 template <typename ApplicationIdT = Aws::String>
62 m_applicationIdHasBeenSet = true;
63 m_applicationId = std::forward<ApplicationIdT>(value);
64 }
65 template <typename ApplicationIdT = Aws::String>
67 SetApplicationId(std::forward<ApplicationIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetUserId() const { return m_userId; }
78 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
79 template <typename UserIdT = Aws::String>
80 void SetUserId(UserIdT&& value) {
81 m_userIdHasBeenSet = true;
82 m_userId = std::forward<UserIdT>(value);
83 }
84 template <typename UserIdT = Aws::String>
86 SetUserId(std::forward<UserIdT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetNextToken() const { return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 template <typename NextTokenT = Aws::String>
100 void SetNextToken(NextTokenT&& value) {
101 m_nextTokenHasBeenSet = true;
102 m_nextToken = std::forward<NextTokenT>(value);
103 }
104 template <typename NextTokenT = Aws::String>
106 SetNextToken(std::forward<NextTokenT>(value));
107 return *this;
108 }
110
112
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) {
118 m_maxResultsHasBeenSet = true;
119 m_maxResults = value;
120 }
122 SetMaxResults(value);
123 return *this;
124 }
126 private:
127 Aws::String m_conversationId;
128 bool m_conversationIdHasBeenSet = false;
129
130 Aws::String m_applicationId;
131 bool m_applicationIdHasBeenSet = false;
132
133 Aws::String m_userId;
134 bool m_userIdHasBeenSet = false;
135
136 Aws::String m_nextToken;
137 bool m_nextTokenHasBeenSet = false;
138
139 int m_maxResults{0};
140 bool m_maxResultsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace QBusiness
145} // namespace Aws
ListMessagesRequest & WithApplicationId(ApplicationIdT &&value)
void SetApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListMessagesRequest & WithMaxResults(int value)
void SetConversationId(ConversationIdT &&value)
ListMessagesRequest & WithConversationId(ConversationIdT &&value)
ListMessagesRequest & WithUserId(UserIdT &&value)
ListMessagesRequest & WithNextToken(NextTokenT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
AWS_QBUSINESS_API ListMessagesRequest()=default
virtual const char * GetServiceRequestName() const override
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String