#[non_exhaustive]pub struct CreateWorkspaceOutputBuilder { /* private fields */ }
Expand description
A builder for CreateWorkspaceOutput
.
Implementations§
source§impl CreateWorkspaceOutputBuilder
impl CreateWorkspaceOutputBuilder
sourcepub fn workspace_id(self, input: impl Into<String>) -> Self
pub fn workspace_id(self, input: impl Into<String>) -> Self
The unique ID for the new workspace.
This field is required.sourcepub fn set_workspace_id(self, input: Option<String>) -> Self
pub fn set_workspace_id(self, input: Option<String>) -> Self
The unique ID for the new workspace.
sourcepub fn get_workspace_id(&self) -> &Option<String>
pub fn get_workspace_id(&self) -> &Option<String>
The unique ID for the new workspace.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN for the new workspace.
This field is required.sourcepub fn status(self, input: WorkspaceStatus) -> Self
pub fn status(self, input: WorkspaceStatus) -> Self
The current status of the new workspace. Immediately after you create the workspace, the status is usually CREATING
.
sourcepub fn set_status(self, input: Option<WorkspaceStatus>) -> Self
pub fn set_status(self, input: Option<WorkspaceStatus>) -> Self
The current status of the new workspace. Immediately after you create the workspace, the status is usually CREATING
.
sourcepub fn get_status(&self) -> &Option<WorkspaceStatus>
pub fn get_status(&self) -> &Option<WorkspaceStatus>
The current status of the new workspace. Immediately after you create the workspace, the status is usually CREATING
.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The list of tag keys and values that are associated with the workspace.
The list of tag keys and values that are associated with the workspace.
The list of tag keys and values that are associated with the workspace.
sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
sourcepub fn build(self) -> Result<CreateWorkspaceOutput, BuildError>
pub fn build(self) -> Result<CreateWorkspaceOutput, BuildError>
Consumes the builder and constructs a CreateWorkspaceOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateWorkspaceOutputBuilder
impl Clone for CreateWorkspaceOutputBuilder
source§fn clone(&self) -> CreateWorkspaceOutputBuilder
fn clone(&self) -> CreateWorkspaceOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateWorkspaceOutputBuilder
impl Debug for CreateWorkspaceOutputBuilder
source§impl Default for CreateWorkspaceOutputBuilder
impl Default for CreateWorkspaceOutputBuilder
source§fn default() -> CreateWorkspaceOutputBuilder
fn default() -> CreateWorkspaceOutputBuilder
source§impl PartialEq for CreateWorkspaceOutputBuilder
impl PartialEq for CreateWorkspaceOutputBuilder
source§fn eq(&self, other: &CreateWorkspaceOutputBuilder) -> bool
fn eq(&self, other: &CreateWorkspaceOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateWorkspaceOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateWorkspaceOutputBuilder
impl RefUnwindSafe for CreateWorkspaceOutputBuilder
impl Send for CreateWorkspaceOutputBuilder
impl Sync for CreateWorkspaceOutputBuilder
impl Unpin for CreateWorkspaceOutputBuilder
impl UnwindSafe for CreateWorkspaceOutputBuilder
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