41
41
#include < aws/chime-sdk-messaging/model/ListTagsForResourceResult.h>
42
42
#include < aws/chime-sdk-messaging/model/PutChannelMembershipPreferencesResult.h>
43
43
#include < aws/chime-sdk-messaging/model/RedactChannelMessageResult.h>
44
+ #include < aws/chime-sdk-messaging/model/SearchChannelsResult.h>
44
45
#include < aws/chime-sdk-messaging/model/SendChannelMessageResult.h>
45
46
#include < aws/chime-sdk-messaging/model/UpdateChannelResult.h>
46
47
#include < aws/chime-sdk-messaging/model/UpdateChannelFlowResult.h>
@@ -124,6 +125,7 @@ namespace Model
124
125
class ListTagsForResourceRequest ;
125
126
class PutChannelMembershipPreferencesRequest ;
126
127
class RedactChannelMessageRequest ;
128
+ class SearchChannelsRequest ;
127
129
class SendChannelMessageRequest ;
128
130
class TagResourceRequest ;
129
131
class UntagResourceRequest ;
@@ -170,6 +172,7 @@ namespace Model
170
172
typedef Aws::Utils::Outcome<ListTagsForResourceResult, ChimeSDKMessagingError> ListTagsForResourceOutcome;
171
173
typedef Aws::Utils::Outcome<PutChannelMembershipPreferencesResult, ChimeSDKMessagingError> PutChannelMembershipPreferencesOutcome;
172
174
typedef Aws::Utils::Outcome<RedactChannelMessageResult, ChimeSDKMessagingError> RedactChannelMessageOutcome;
175
+ typedef Aws::Utils::Outcome<SearchChannelsResult, ChimeSDKMessagingError> SearchChannelsOutcome;
173
176
typedef Aws::Utils::Outcome<SendChannelMessageResult, ChimeSDKMessagingError> SendChannelMessageOutcome;
174
177
typedef Aws::Utils::Outcome<Aws::NoResult, ChimeSDKMessagingError> TagResourceOutcome;
175
178
typedef Aws::Utils::Outcome<Aws::NoResult, ChimeSDKMessagingError> UntagResourceOutcome;
@@ -216,6 +219,7 @@ namespace Model
216
219
typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
217
220
typedef std::future<PutChannelMembershipPreferencesOutcome> PutChannelMembershipPreferencesOutcomeCallable;
218
221
typedef std::future<RedactChannelMessageOutcome> RedactChannelMessageOutcomeCallable;
222
+ typedef std::future<SearchChannelsOutcome> SearchChannelsOutcomeCallable;
219
223
typedef std::future<SendChannelMessageOutcome> SendChannelMessageOutcomeCallable;
220
224
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
221
225
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
@@ -265,6 +269,7 @@ namespace Model
265
269
typedef std::function<void (const ChimeSDKMessagingClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
266
270
typedef std::function<void (const ChimeSDKMessagingClient*, const Model::PutChannelMembershipPreferencesRequest&, const Model::PutChannelMembershipPreferencesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutChannelMembershipPreferencesResponseReceivedHandler;
267
271
typedef std::function<void (const ChimeSDKMessagingClient*, const Model::RedactChannelMessageRequest&, const Model::RedactChannelMessageOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > RedactChannelMessageResponseReceivedHandler;
272
+ typedef std::function<void (const ChimeSDKMessagingClient*, const Model::SearchChannelsRequest&, const Model::SearchChannelsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > SearchChannelsResponseReceivedHandler;
268
273
typedef std::function<void (const ChimeSDKMessagingClient*, const Model::SendChannelMessageRequest&, const Model::SendChannelMessageOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > SendChannelMessageResponseReceivedHandler;
269
274
typedef std::function<void (const ChimeSDKMessagingClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
270
275
typedef std::function<void (const ChimeSDKMessagingClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
@@ -278,8 +283,8 @@ namespace Model
278
283
* to send and receive messages in custom messaging applications. These APIs depend
279
284
* on the frameworks provided by the Amazon Chime SDK Identity APIs. For more
280
285
* information about the messaging APIs, see <a
281
- * href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging">Amazon
282
- * Chime SDK messaging</a> </p>
286
+ * href="https://docs.aws.amazon.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_Messaging.html ">Amazon
287
+ * Chime SDK messaging</a>. </p>
283
288
*/
284
289
class AWS_CHIMESDKMESSAGING_API ChimeSDKMessagingClient : public Aws::Client::AWSJsonClient
285
290
{
@@ -1126,6 +1131,26 @@ namespace Model
1126
1131
*/
1127
1132
virtual void RedactChannelMessageAsync (const Model::RedactChannelMessageRequest& request, const RedactChannelMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const ;
1128
1133
1134
+ /* *
1135
+ * <p>Allows an <code>AppInstanceUser</code> to search the channels that they
1136
+ * belong to. The <code>AppInstanceUser</code> can search by membership or external
1137
+ * ID. An <code>AppInstanceAdmin</code> can search across all channels within the
1138
+ * <code>AppInstance</code>.</p><p><h3>See Also:</h3> <a
1139
+ * href="http://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/SearchChannels">AWS
1140
+ * API Reference</a></p>
1141
+ */
1142
+ virtual Model::SearchChannelsOutcome SearchChannels (const Model::SearchChannelsRequest& request) const ;
1143
+
1144
+ /* *
1145
+ * A Callable wrapper for SearchChannels that returns a future to the operation so that it can be executed in parallel to other requests.
1146
+ */
1147
+ virtual Model::SearchChannelsOutcomeCallable SearchChannelsCallable (const Model::SearchChannelsRequest& request) const ;
1148
+
1149
+ /* *
1150
+ * An Async wrapper for SearchChannels that queues the request into a thread executor and triggers associated callback when operation has finished.
1151
+ */
1152
+ virtual void SearchChannelsAsync (const Model::SearchChannelsRequest& request, const SearchChannelsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const ;
1153
+
1129
1154
/* *
1130
1155
* <p>Sends a message to a particular channel that the member is a part of.</p>
1131
1156
* <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use
@@ -1305,6 +1330,7 @@ namespace Model
1305
1330
void ListTagsForResourceAsyncHelper (const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
1306
1331
void PutChannelMembershipPreferencesAsyncHelper (const Model::PutChannelMembershipPreferencesRequest& request, const PutChannelMembershipPreferencesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
1307
1332
void RedactChannelMessageAsyncHelper (const Model::RedactChannelMessageRequest& request, const RedactChannelMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
1333
+ void SearchChannelsAsyncHelper (const Model::SearchChannelsRequest& request, const SearchChannelsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
1308
1334
void SendChannelMessageAsyncHelper (const Model::SendChannelMessageRequest& request, const SendChannelMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
1309
1335
void TagResourceAsyncHelper (const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
1310
1336
void UntagResourceAsyncHelper (const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
0 commit comments