Struct aws_sdk_workspaces::client::fluent_builders::StopWorkspaces
source · pub struct StopWorkspaces { /* 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 StopWorkspaces
impl StopWorkspaces
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StopWorkspaces, AwsResponseRetryClassifier>, SdkError<StopWorkspacesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<StopWorkspaces, AwsResponseRetryClassifier>, SdkError<StopWorkspacesError>>
Consume 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 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 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 StopWorkspaces
impl Clone for StopWorkspaces
source§fn clone(&self) -> StopWorkspaces
fn clone(&self) -> StopWorkspaces
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more