Struct aws_sdk_workspaces::operation::stop_workspaces::builders::StopWorkspacesFluentBuilder
source · pub struct StopWorkspacesFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to StopWorkspaces.
Stops the specified WorkSpaces.
You cannot stop a WorkSpace unless it has a running mode of AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.
Implementations§
source§impl StopWorkspacesFluentBuilder
impl StopWorkspacesFluentBuilder
sourcepub fn as_input(&self) -> &StopWorkspacesInputBuilder
pub fn as_input(&self) -> &StopWorkspacesInputBuilder
Access the StopWorkspaces as a reference.
sourcepub async fn send(
self,
) -> Result<StopWorkspacesOutput, SdkError<StopWorkspacesError, HttpResponse>>
pub async fn send( self, ) -> Result<StopWorkspacesOutput, SdkError<StopWorkspacesError, 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<StopWorkspacesOutput, StopWorkspacesError, Self>
pub fn customize( self, ) -> CustomizableOperation<StopWorkspacesOutput, StopWorkspacesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn stop_workspace_requests(self, input: StopRequest) -> Self
pub fn stop_workspace_requests(self, input: StopRequest) -> Self
Appends an item to StopWorkspaceRequests.
To override the contents of this collection use set_stop_workspace_requests.
The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
sourcepub fn set_stop_workspace_requests(
self,
input: Option<Vec<StopRequest>>,
) -> Self
pub fn set_stop_workspace_requests( self, input: Option<Vec<StopRequest>>, ) -> Self
The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
sourcepub fn get_stop_workspace_requests(&self) -> &Option<Vec<StopRequest>>
pub fn get_stop_workspace_requests(&self) -> &Option<Vec<StopRequest>>
The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
Trait Implementations§
source§impl Clone for StopWorkspacesFluentBuilder
impl Clone for StopWorkspacesFluentBuilder
source§fn clone(&self) -> StopWorkspacesFluentBuilder
fn clone(&self) -> StopWorkspacesFluentBuilder
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 StopWorkspacesFluentBuilder
impl !RefUnwindSafe for StopWorkspacesFluentBuilder
impl Send for StopWorkspacesFluentBuilder
impl Sync for StopWorkspacesFluentBuilder
impl Unpin for StopWorkspacesFluentBuilder
impl !UnwindSafe for StopWorkspacesFluentBuilder
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