pub struct ModifyWorkspaceState { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyWorkspaceState
.
Sets the state of the specified WorkSpace.
To maintain a WorkSpace without being interrupted, set the WorkSpace state to ADMIN_MAINTENANCE
. WorkSpaces in this state do not respond to requests to reboot, stop, start, rebuild, or restore. An AutoStop WorkSpace in this state is not stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTENANCE
state.
Implementations§
source§impl ModifyWorkspaceState
impl ModifyWorkspaceState
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ModifyWorkspaceState, AwsResponseRetryClassifier>, SdkError<ModifyWorkspaceStateError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ModifyWorkspaceState, AwsResponseRetryClassifier>, SdkError<ModifyWorkspaceStateError>>
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<ModifyWorkspaceStateOutput, SdkError<ModifyWorkspaceStateError>>
pub async fn send(
self
) -> Result<ModifyWorkspaceStateOutput, SdkError<ModifyWorkspaceStateError>>
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 workspace_id(self, input: impl Into<String>) -> Self
pub fn workspace_id(self, input: impl Into<String>) -> Self
The identifier of the WorkSpace.
sourcepub fn set_workspace_id(self, input: Option<String>) -> Self
pub fn set_workspace_id(self, input: Option<String>) -> Self
The identifier of the WorkSpace.
sourcepub fn workspace_state(self, input: TargetWorkspaceState) -> Self
pub fn workspace_state(self, input: TargetWorkspaceState) -> Self
The WorkSpace state.
sourcepub fn set_workspace_state(self, input: Option<TargetWorkspaceState>) -> Self
pub fn set_workspace_state(self, input: Option<TargetWorkspaceState>) -> Self
The WorkSpace state.
Trait Implementations§
source§impl Clone for ModifyWorkspaceState
impl Clone for ModifyWorkspaceState
source§fn clone(&self) -> ModifyWorkspaceState
fn clone(&self) -> ModifyWorkspaceState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more