aws_sdk_wickr/client/
get_bots_count.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetBotsCount`](crate::operation::get_bots_count::builders::GetBotsCountFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`network_id(impl Into<String>)`](crate::operation::get_bots_count::builders::GetBotsCountFluentBuilder::network_id) / [`set_network_id(Option<String>)`](crate::operation::get_bots_count::builders::GetBotsCountFluentBuilder::set_network_id):<br>required: **true**<br><p>The ID of the Wickr network for which to retrieve bot counts.</p><br>
7    /// - On success, responds with [`GetBotsCountOutput`](crate::operation::get_bots_count::GetBotsCountOutput) with field(s):
8    ///   - [`pending(i32)`](crate::operation::get_bots_count::GetBotsCountOutput::pending): <p>The number of bots with pending status (invited but not yet activated).</p>
9    ///   - [`active(i32)`](crate::operation::get_bots_count::GetBotsCountOutput::active): <p>The number of bots with active status.</p>
10    ///   - [`total(i32)`](crate::operation::get_bots_count::GetBotsCountOutput::total): <p>The total number of bots in the network (active and pending).</p>
11    /// - On failure, responds with [`SdkError<GetBotsCountError>`](crate::operation::get_bots_count::GetBotsCountError)
12    pub fn get_bots_count(&self) -> crate::operation::get_bots_count::builders::GetBotsCountFluentBuilder {
13        crate::operation::get_bots_count::builders::GetBotsCountFluentBuilder::new(self.handle.clone())
14    }
15}