aws_sdk_repostspace/client/
get_channel.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 [`GetChannel`](crate::operation::get_channel::builders::GetChannelFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`space_id(impl Into<String>)`](crate::operation::get_channel::builders::GetChannelFluentBuilder::space_id) / [`set_space_id(Option<String>)`](crate::operation::get_channel::builders::GetChannelFluentBuilder::set_space_id):<br>required: **true**<br><p>The unique ID of the private re:Post.</p><br>
7    ///   - [`channel_id(impl Into<String>)`](crate::operation::get_channel::builders::GetChannelFluentBuilder::channel_id) / [`set_channel_id(Option<String>)`](crate::operation::get_channel::builders::GetChannelFluentBuilder::set_channel_id):<br>required: **true**<br><p>The unique ID of the private re:Post channel.</p><br>
8    /// - On success, responds with [`GetChannelOutput`](crate::operation::get_channel::GetChannelOutput) with field(s):
9    ///   - [`space_id(String)`](crate::operation::get_channel::GetChannelOutput::space_id): <p>The unique ID of the private re:Post.</p>
10    ///   - [`channel_id(String)`](crate::operation::get_channel::GetChannelOutput::channel_id): <p>The unique ID of the private re:Post channel.</p>
11    ///   - [`channel_name(String)`](crate::operation::get_channel::GetChannelOutput::channel_name): <p>The name for the channel. This must be unique per private re:Post.</p>
12    ///   - [`channel_description(Option<String>)`](crate::operation::get_channel::GetChannelOutput::channel_description): <p>A description for the channel. This is used only to help you identify this channel.</p>
13    ///   - [`create_date_time(DateTime)`](crate::operation::get_channel::GetChannelOutput::create_date_time): <p>The date when the channel was created.</p>
14    ///   - [`delete_date_time(Option<DateTime>)`](crate::operation::get_channel::GetChannelOutput::delete_date_time): <p>The date when the channel was deleted.</p>
15    ///   - [`channel_roles(Option<HashMap::<String, Vec::<ChannelRole>>>)`](crate::operation::get_channel::GetChannelOutput::channel_roles): <p>The channel roles associated to the users and groups of the channel.</p>
16    ///   - [`channel_status(ChannelStatus)`](crate::operation::get_channel::GetChannelOutput::channel_status): <p>The status pf the channel.</p>
17    /// - On failure, responds with [`SdkError<GetChannelError>`](crate::operation::get_channel::GetChannelError)
18    pub fn get_channel(&self) -> crate::operation::get_channel::builders::GetChannelFluentBuilder {
19        crate::operation::get_channel::builders::GetChannelFluentBuilder::new(self.handle.clone())
20    }
21}