Struct aws_sdk_workmail::operation::delete_organization::builders::DeleteOrganizationFluentBuilder
source · pub struct DeleteOrganizationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteOrganization
.
Deletes an WorkMail organization and all underlying AWS resources managed by WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see Removing an organization in the WorkMail Administrator Guide.
Implementations§
source§impl DeleteOrganizationFluentBuilder
impl DeleteOrganizationFluentBuilder
sourcepub fn as_input(&self) -> &DeleteOrganizationInputBuilder
pub fn as_input(&self) -> &DeleteOrganizationInputBuilder
Access the DeleteOrganization as a reference.
sourcepub async fn send(
self
) -> Result<DeleteOrganizationOutput, SdkError<DeleteOrganizationError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteOrganizationOutput, SdkError<DeleteOrganizationError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<DeleteOrganizationOutput, DeleteOrganizationError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteOrganizationOutput, DeleteOrganizationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token associated with the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token associated with the request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
The idempotency token associated with the request.
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The organization ID.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The organization ID.
sourcepub fn get_organization_id(&self) -> &Option<String>
pub fn get_organization_id(&self) -> &Option<String>
The organization ID.
sourcepub fn delete_directory(self, input: bool) -> Self
pub fn delete_directory(self, input: bool) -> Self
If true, deletes the AWS Directory Service directory associated with the organization.
sourcepub fn set_delete_directory(self, input: Option<bool>) -> Self
pub fn set_delete_directory(self, input: Option<bool>) -> Self
If true, deletes the AWS Directory Service directory associated with the organization.
sourcepub fn get_delete_directory(&self) -> &Option<bool>
pub fn get_delete_directory(&self) -> &Option<bool>
If true, deletes the AWS Directory Service directory associated with the organization.
sourcepub fn force_delete(self, input: bool) -> Self
pub fn force_delete(self, input: bool) -> Self
Deletes a WorkMail organization even if the organization has enabled users.
sourcepub fn set_force_delete(self, input: Option<bool>) -> Self
pub fn set_force_delete(self, input: Option<bool>) -> Self
Deletes a WorkMail organization even if the organization has enabled users.
sourcepub fn get_force_delete(&self) -> &Option<bool>
pub fn get_force_delete(&self) -> &Option<bool>
Deletes a WorkMail organization even if the organization has enabled users.
Trait Implementations§
source§impl Clone for DeleteOrganizationFluentBuilder
impl Clone for DeleteOrganizationFluentBuilder
source§fn clone(&self) -> DeleteOrganizationFluentBuilder
fn clone(&self) -> DeleteOrganizationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DeleteOrganizationFluentBuilder
impl !RefUnwindSafe for DeleteOrganizationFluentBuilder
impl Send for DeleteOrganizationFluentBuilder
impl Sync for DeleteOrganizationFluentBuilder
impl Unpin for DeleteOrganizationFluentBuilder
impl !UnwindSafe for DeleteOrganizationFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more