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.
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 more