Struct aws_sdk_sagemaker::operation::delete_workforce::builders::DeleteWorkforceFluentBuilder
source · pub struct DeleteWorkforceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteWorkforce
.
Use this operation to delete a workforce.
If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use this operation to delete the existing workforce and then use CreateWorkforce to create a new workforce.
If a private workforce contains one or more work teams, you must use the DeleteWorkteam operation to delete all work teams before you delete the workforce. If you try to delete a workforce that contains one or more work teams, you will receive a ResourceInUse
error.
Implementations§
source§impl DeleteWorkforceFluentBuilder
impl DeleteWorkforceFluentBuilder
sourcepub fn as_input(&self) -> &DeleteWorkforceInputBuilder
pub fn as_input(&self) -> &DeleteWorkforceInputBuilder
Access the DeleteWorkforce as a reference.
sourcepub async fn send(
self,
) -> Result<DeleteWorkforceOutput, SdkError<DeleteWorkforceError, HttpResponse>>
pub async fn send( self, ) -> Result<DeleteWorkforceOutput, SdkError<DeleteWorkforceError, 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<DeleteWorkforceOutput, DeleteWorkforceError, Self>
pub fn customize( self, ) -> CustomizableOperation<DeleteWorkforceOutput, DeleteWorkforceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn workforce_name(self, input: impl Into<String>) -> Self
pub fn workforce_name(self, input: impl Into<String>) -> Self
The name of the workforce.
sourcepub fn set_workforce_name(self, input: Option<String>) -> Self
pub fn set_workforce_name(self, input: Option<String>) -> Self
The name of the workforce.
sourcepub fn get_workforce_name(&self) -> &Option<String>
pub fn get_workforce_name(&self) -> &Option<String>
The name of the workforce.
Trait Implementations§
source§impl Clone for DeleteWorkforceFluentBuilder
impl Clone for DeleteWorkforceFluentBuilder
source§fn clone(&self) -> DeleteWorkforceFluentBuilder
fn clone(&self) -> DeleteWorkforceFluentBuilder
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 DeleteWorkforceFluentBuilder
impl !RefUnwindSafe for DeleteWorkforceFluentBuilder
impl Send for DeleteWorkforceFluentBuilder
impl Sync for DeleteWorkforceFluentBuilder
impl Unpin for DeleteWorkforceFluentBuilder
impl !UnwindSafe for DeleteWorkforceFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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