4141#include < aws/chime-sdk-messaging/model/ListTagsForResourceResult.h>
4242#include < aws/chime-sdk-messaging/model/PutChannelMembershipPreferencesResult.h>
4343#include < aws/chime-sdk-messaging/model/RedactChannelMessageResult.h>
44+ #include < aws/chime-sdk-messaging/model/SearchChannelsResult.h>
4445#include < aws/chime-sdk-messaging/model/SendChannelMessageResult.h>
4546#include < aws/chime-sdk-messaging/model/UpdateChannelResult.h>
4647#include < aws/chime-sdk-messaging/model/UpdateChannelFlowResult.h>
@@ -124,6 +125,7 @@ namespace Model
124125 class ListTagsForResourceRequest ;
125126 class PutChannelMembershipPreferencesRequest ;
126127 class RedactChannelMessageRequest ;
128+ class SearchChannelsRequest ;
127129 class SendChannelMessageRequest ;
128130 class TagResourceRequest ;
129131 class UntagResourceRequest ;
@@ -170,6 +172,7 @@ namespace Model
170172 typedef Aws::Utils::Outcome<ListTagsForResourceResult, ChimeSDKMessagingError> ListTagsForResourceOutcome;
171173 typedef Aws::Utils::Outcome<PutChannelMembershipPreferencesResult, ChimeSDKMessagingError> PutChannelMembershipPreferencesOutcome;
172174 typedef Aws::Utils::Outcome<RedactChannelMessageResult, ChimeSDKMessagingError> RedactChannelMessageOutcome;
175+ typedef Aws::Utils::Outcome<SearchChannelsResult, ChimeSDKMessagingError> SearchChannelsOutcome;
173176 typedef Aws::Utils::Outcome<SendChannelMessageResult, ChimeSDKMessagingError> SendChannelMessageOutcome;
174177 typedef Aws::Utils::Outcome<Aws::NoResult, ChimeSDKMessagingError> TagResourceOutcome;
175178 typedef Aws::Utils::Outcome<Aws::NoResult, ChimeSDKMessagingError> UntagResourceOutcome;
@@ -216,6 +219,7 @@ namespace Model
216219 typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
217220 typedef std::future<PutChannelMembershipPreferencesOutcome> PutChannelMembershipPreferencesOutcomeCallable;
218221 typedef std::future<RedactChannelMessageOutcome> RedactChannelMessageOutcomeCallable;
222+ typedef std::future<SearchChannelsOutcome> SearchChannelsOutcomeCallable;
219223 typedef std::future<SendChannelMessageOutcome> SendChannelMessageOutcomeCallable;
220224 typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
221225 typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
@@ -265,6 +269,7 @@ namespace Model
265269 typedef std::function<void (const ChimeSDKMessagingClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
266270 typedef std::function<void (const ChimeSDKMessagingClient*, const Model::PutChannelMembershipPreferencesRequest&, const Model::PutChannelMembershipPreferencesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutChannelMembershipPreferencesResponseReceivedHandler;
267271 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;
268273 typedef std::function<void (const ChimeSDKMessagingClient*, const Model::SendChannelMessageRequest&, const Model::SendChannelMessageOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > SendChannelMessageResponseReceivedHandler;
269274 typedef std::function<void (const ChimeSDKMessagingClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
270275 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
278283 * to send and receive messages in custom messaging applications. These APIs depend
279284 * on the frameworks provided by the Amazon Chime SDK Identity APIs. For more
280285 * 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>
283288 */
284289 class AWS_CHIMESDKMESSAGING_API ChimeSDKMessagingClient : public Aws::Client::AWSJsonClient
285290 {
@@ -1126,6 +1131,26 @@ namespace Model
11261131 */
11271132 virtual void RedactChannelMessageAsync (const Model::RedactChannelMessageRequest& request, const RedactChannelMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const ;
11281133
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+
11291154 /* *
11301155 * <p>Sends a message to a particular channel that the member is a part of.</p>
11311156 * <p>The <code>x-amz-chime-bearer</code> request header is mandatory. Use
@@ -1305,6 +1330,7 @@ namespace Model
13051330 void ListTagsForResourceAsyncHelper (const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
13061331 void PutChannelMembershipPreferencesAsyncHelper (const Model::PutChannelMembershipPreferencesRequest& request, const PutChannelMembershipPreferencesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
13071332 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 ;
13081334 void SendChannelMessageAsyncHelper (const Model::SendChannelMessageRequest& request, const SendChannelMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
13091335 void TagResourceAsyncHelper (const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
13101336 void UntagResourceAsyncHelper (const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
0 commit comments