aws_sdk_sesv2/client/get_tenant.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 [`GetTenant`](crate::operation::get_tenant::builders::GetTenantFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`tenant_name(impl Into<String>)`](crate::operation::get_tenant::builders::GetTenantFluentBuilder::tenant_name) / [`set_tenant_name(Option<String>)`](crate::operation::get_tenant::builders::GetTenantFluentBuilder::set_tenant_name):<br>required: **true**<br><p>The name of the tenant to retrieve information about.</p><br>
7 /// - On success, responds with [`GetTenantOutput`](crate::operation::get_tenant::GetTenantOutput) with field(s):
8 /// - [`tenant(Option<Tenant>)`](crate::operation::get_tenant::GetTenantOutput::tenant): <p>A structure that contains details about the tenant.</p>
9 /// - On failure, responds with [`SdkError<GetTenantError>`](crate::operation::get_tenant::GetTenantError)
10 pub fn get_tenant(&self) -> crate::operation::get_tenant::builders::GetTenantFluentBuilder {
11 crate::operation::get_tenant::builders::GetTenantFluentBuilder::new(self.handle.clone())
12 }
13}