aws_sdk_redshiftserverless/client/
get_namespace.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 [`GetNamespace`](crate::operation::get_namespace::builders::GetNamespaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`namespace_name(impl Into<String>)`](crate::operation::get_namespace::builders::GetNamespaceFluentBuilder::namespace_name) / [`set_namespace_name(Option<String>)`](crate::operation::get_namespace::builders::GetNamespaceFluentBuilder::set_namespace_name):<br>required: **true**<br><p>The name of the namespace to retrieve information for.</p><br>
7    /// - On success, responds with [`GetNamespaceOutput`](crate::operation::get_namespace::GetNamespaceOutput) with field(s):
8    ///   - [`namespace(Option<Namespace>)`](crate::operation::get_namespace::GetNamespaceOutput::namespace): <p>The returned namespace object.</p>
9    /// - On failure, responds with [`SdkError<GetNamespaceError>`](crate::operation::get_namespace::GetNamespaceError)
10    pub fn get_namespace(&self) -> crate::operation::get_namespace::builders::GetNamespaceFluentBuilder {
11        crate::operation::get_namespace::builders::GetNamespaceFluentBuilder::new(self.handle.clone())
12    }
13}