Struct aws_sdk_workspaces::operation::reboot_workspaces::builders::RebootWorkspacesFluentBuilder
source · pub struct RebootWorkspacesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RebootWorkspaces
.
Reboots the specified WorkSpaces.
You cannot reboot a WorkSpace unless its state is AVAILABLE
, UNHEALTHY
, or REBOOTING
. Reboot a WorkSpace in the REBOOTING
state only if your WorkSpace has been stuck in the REBOOTING
state for over 20 minutes.
This operation is asynchronous and returns before the WorkSpaces have rebooted.
Implementations§
source§impl RebootWorkspacesFluentBuilder
impl RebootWorkspacesFluentBuilder
sourcepub fn as_input(&self) -> &RebootWorkspacesInputBuilder
pub fn as_input(&self) -> &RebootWorkspacesInputBuilder
Access the RebootWorkspaces as a reference.
sourcepub async fn send(
self,
) -> Result<RebootWorkspacesOutput, SdkError<RebootWorkspacesError, HttpResponse>>
pub async fn send( self, ) -> Result<RebootWorkspacesOutput, SdkError<RebootWorkspacesError, 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<RebootWorkspacesOutput, RebootWorkspacesError, Self>
pub fn customize( self, ) -> CustomizableOperation<RebootWorkspacesOutput, RebootWorkspacesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn reboot_workspace_requests(self, input: RebootRequest) -> Self
pub fn reboot_workspace_requests(self, input: RebootRequest) -> Self
Appends an item to RebootWorkspaceRequests
.
To override the contents of this collection use set_reboot_workspace_requests
.
The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
sourcepub fn set_reboot_workspace_requests(
self,
input: Option<Vec<RebootRequest>>,
) -> Self
pub fn set_reboot_workspace_requests( self, input: Option<Vec<RebootRequest>>, ) -> Self
The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
sourcepub fn get_reboot_workspace_requests(&self) -> &Option<Vec<RebootRequest>>
pub fn get_reboot_workspace_requests(&self) -> &Option<Vec<RebootRequest>>
The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
Trait Implementations§
source§impl Clone for RebootWorkspacesFluentBuilder
impl Clone for RebootWorkspacesFluentBuilder
source§fn clone(&self) -> RebootWorkspacesFluentBuilder
fn clone(&self) -> RebootWorkspacesFluentBuilder
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 RebootWorkspacesFluentBuilder
impl !RefUnwindSafe for RebootWorkspacesFluentBuilder
impl Send for RebootWorkspacesFluentBuilder
impl Sync for RebootWorkspacesFluentBuilder
impl Unpin for RebootWorkspacesFluentBuilder
impl !UnwindSafe for RebootWorkspacesFluentBuilder
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> 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