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 async fn send(
self
) -> Result<StopWorkspacesOutput, SdkError<StopWorkspacesError>>
pub async fn send( self ) -> Result<StopWorkspacesOutput, SdkError<StopWorkspacesError>>
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 async fn customize(
self
) -> Result<CustomizableOperation<StopWorkspaces, AwsResponseRetryClassifier>, SdkError<StopWorkspacesError>>
pub async fn customize( self ) -> Result<CustomizableOperation<StopWorkspaces, AwsResponseRetryClassifier>, SdkError<StopWorkspacesError>>
Consumes this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
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.
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 more