AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ListAttachmentsRequest.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 ListAttachmentsRequest() = 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 "ListAttachments"; }
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& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetConversationId() const { return m_conversationId; }
60 inline bool ConversationIdHasBeenSet() const { return m_conversationIdHasBeenSet; }
61 template <typename ConversationIdT = Aws::String>
63 m_conversationIdHasBeenSet = true;
64 m_conversationId = std::forward<ConversationIdT>(value);
65 }
66 template <typename ConversationIdT = Aws::String>
68 SetConversationId(std::forward<ConversationIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetUserId() const { return m_userId; }
79 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
80 template <typename UserIdT = Aws::String>
81 void SetUserId(UserIdT&& value) {
82 m_userIdHasBeenSet = true;
83 m_userId = std::forward<UserIdT>(value);
84 }
85 template <typename UserIdT = Aws::String>
87 SetUserId(std::forward<UserIdT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetNextToken() const { return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 template <typename NextTokenT = Aws::String>
101 void SetNextToken(NextTokenT&& value) {
102 m_nextTokenHasBeenSet = true;
103 m_nextToken = std::forward<NextTokenT>(value);
104 }
105 template <typename NextTokenT = Aws::String>
107 SetNextToken(std::forward<NextTokenT>(value));
108 return *this;
109 }
111
113
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) {
119 m_maxResultsHasBeenSet = true;
120 m_maxResults = value;
121 }
123 SetMaxResults(value);
124 return *this;
125 }
127 private:
128 Aws::String m_applicationId;
129 bool m_applicationIdHasBeenSet = false;
130
131 Aws::String m_conversationId;
132 bool m_conversationIdHasBeenSet = false;
133
134 Aws::String m_userId;
135 bool m_userIdHasBeenSet = false;
136
137 Aws::String m_nextToken;
138 bool m_nextTokenHasBeenSet = false;
139
140 int m_maxResults{0};
141 bool m_maxResultsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace QBusiness
146} // namespace Aws
AWS_QBUSINESS_API ListAttachmentsRequest()=default
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAttachmentsRequest & WithConversationId(ConversationIdT &&value)
virtual const char * GetServiceRequestName() const override
ListAttachmentsRequest & WithUserId(UserIdT &&value)
ListAttachmentsRequest & WithMaxResults(int value)
ListAttachmentsRequest & WithNextToken(NextTokenT &&value)
ListAttachmentsRequest & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String