Struct aws_sdk_workspaces::operation::create_workspaces::builders::CreateWorkspacesFluentBuilder
source · pub struct CreateWorkspacesFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateWorkspaces
.
Creates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
-
The
MANUAL
running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. -
You don't need to specify the
PCOIP
protocol for Linux bundles becauseWSP
is the default protocol for those bundles. -
User-decoupled WorkSpaces are only supported by Amazon WorkSpaces Core.
Implementations§
source§impl CreateWorkspacesFluentBuilder
impl CreateWorkspacesFluentBuilder
sourcepub fn as_input(&self) -> &CreateWorkspacesInputBuilder
pub fn as_input(&self) -> &CreateWorkspacesInputBuilder
Access the CreateWorkspaces as a reference.
sourcepub async fn send(
self,
) -> Result<CreateWorkspacesOutput, SdkError<CreateWorkspacesError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateWorkspacesOutput, SdkError<CreateWorkspacesError, 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<CreateWorkspacesOutput, CreateWorkspacesError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateWorkspacesOutput, CreateWorkspacesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn workspaces(self, input: WorkspaceRequest) -> Self
pub fn workspaces(self, input: WorkspaceRequest) -> Self
Appends an item to Workspaces
.
To override the contents of this collection use set_workspaces
.
The WorkSpaces to create. You can specify up to 25 WorkSpaces.
sourcepub fn set_workspaces(self, input: Option<Vec<WorkspaceRequest>>) -> Self
pub fn set_workspaces(self, input: Option<Vec<WorkspaceRequest>>) -> Self
The WorkSpaces to create. You can specify up to 25 WorkSpaces.
sourcepub fn get_workspaces(&self) -> &Option<Vec<WorkspaceRequest>>
pub fn get_workspaces(&self) -> &Option<Vec<WorkspaceRequest>>
The WorkSpaces to create. You can specify up to 25 WorkSpaces.
Trait Implementations§
source§impl Clone for CreateWorkspacesFluentBuilder
impl Clone for CreateWorkspacesFluentBuilder
source§fn clone(&self) -> CreateWorkspacesFluentBuilder
fn clone(&self) -> CreateWorkspacesFluentBuilder
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 CreateWorkspacesFluentBuilder
impl !RefUnwindSafe for CreateWorkspacesFluentBuilder
impl Send for CreateWorkspacesFluentBuilder
impl Sync for CreateWorkspacesFluentBuilder
impl Unpin for CreateWorkspacesFluentBuilder
impl !UnwindSafe for CreateWorkspacesFluentBuilder
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