// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ShareDirectory`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`directory_id(impl ::std::convert::Into<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_directory_id): <p>Identifier of the Managed Microsoft AD directory that you want to share with other Amazon Web Services accounts.</p>
/// - [`share_notes(impl ::std::convert::Into<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::share_notes) / [`set_share_notes(Option<String>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_share_notes): <p>A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.</p>
/// - [`share_target(ShareTarget)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::share_target) / [`set_share_target(Option<ShareTarget>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_share_target): <p>Identifier for the directory consumer account with whom the directory is to be shared.</p>
/// - [`share_method(ShareMethod)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::share_method) / [`set_share_method(Option<ShareMethod>)`](crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::set_share_method): <p>The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (<code>ORGANIZATIONS</code>) or with any Amazon Web Services account by sending a directory sharing request (<code>HANDSHAKE</code>).</p>
/// - On success, responds with [`ShareDirectoryOutput`](crate::operation::share_directory::ShareDirectoryOutput) with field(s):
/// - [`shared_directory_id(Option<String>)`](crate::operation::share_directory::ShareDirectoryOutput::shared_directory_id): <p>Identifier of the directory that is stored in the directory consumer account that is shared from the specified directory (<code>DirectoryId</code>).</p>
/// - On failure, responds with [`SdkError<ShareDirectoryError>`](crate::operation::share_directory::ShareDirectoryError)
pub fn share_directory(&self) -> crate::operation::share_directory::builders::ShareDirectoryFluentBuilder {
crate::operation::share_directory::builders::ShareDirectoryFluentBuilder::new(self.handle.clone())
}
}