1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeResource`](crate::operation::describe_resource::builders::DescribeResourceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl ::std::convert::Into<String>)`](crate::operation::describe_resource::builders::DescribeResourceFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::describe_resource::builders::DescribeResourceFluentBuilder::set_organization_id): <p>The identifier associated with the organization for which the resource is described.</p>
    ///   - [`resource_id(impl ::std::convert::Into<String>)`](crate::operation::describe_resource::builders::DescribeResourceFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::describe_resource::builders::DescribeResourceFluentBuilder::set_resource_id): <p>The identifier of the resource to be described.</p>
    /// - On success, responds with [`DescribeResourceOutput`](crate::operation::describe_resource::DescribeResourceOutput) with field(s):
    ///   - [`resource_id(Option<String>)`](crate::operation::describe_resource::DescribeResourceOutput::resource_id): <p>The identifier of the described resource.</p>
    ///   - [`email(Option<String>)`](crate::operation::describe_resource::DescribeResourceOutput::email): <p>The email of the described resource.</p>
    ///   - [`name(Option<String>)`](crate::operation::describe_resource::DescribeResourceOutput::name): <p>The name of the described resource.</p>
    ///   - [`r#type(Option<ResourceType>)`](crate::operation::describe_resource::DescribeResourceOutput::type): <p>The type of the described resource.</p>
    ///   - [`booking_options(Option<BookingOptions>)`](crate::operation::describe_resource::DescribeResourceOutput::booking_options): <p>The booking options for the described resource.</p>
    ///   - [`state(Option<EntityState>)`](crate::operation::describe_resource::DescribeResourceOutput::state): <p>The state of the resource: enabled (registered to WorkMail), disabled (deregistered or never registered to WorkMail), or deleted.</p>
    ///   - [`enabled_date(Option<DateTime>)`](crate::operation::describe_resource::DescribeResourceOutput::enabled_date): <p>The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.</p>
    ///   - [`disabled_date(Option<DateTime>)`](crate::operation::describe_resource::DescribeResourceOutput::disabled_date): <p>The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.</p>
    /// - On failure, responds with [`SdkError<DescribeResourceError>`](crate::operation::describe_resource::DescribeResourceError)
    pub fn describe_resource(
        &self,
    ) -> crate::operation::describe_resource::builders::DescribeResourceFluentBuilder {
        crate::operation::describe_resource::builders::DescribeResourceFluentBuilder::new(
            self.handle.clone(),
        )
    }
}