#[non_exhaustive]pub struct CreateWorkspaceInputBuilder { /* private fields */ }
Expand description
A builder for CreateWorkspaceInput
.
Implementations§
source§impl CreateWorkspaceInputBuilder
impl CreateWorkspaceInputBuilder
sourcepub fn alias(self, input: impl Into<String>) -> Self
pub fn alias(self, input: impl Into<String>) -> Self
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
sourcepub fn set_alias(self, input: Option<String>) -> Self
pub fn set_alias(self, input: Option<String>) -> Self
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
sourcepub fn get_alias(&self) -> &Option<String>
pub fn get_alias(&self) -> &Option<String>
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The list of tag keys and values to associate with the workspace.
The list of tag keys and values to associate with the workspace.
The list of tag keys and values to associate 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) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
sourcepub fn build(self) -> Result<CreateWorkspaceInput, BuildError>
pub fn build(self) -> Result<CreateWorkspaceInput, BuildError>
Consumes the builder and constructs a CreateWorkspaceInput
.
source§impl CreateWorkspaceInputBuilder
impl CreateWorkspaceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateWorkspaceOutput, SdkError<CreateWorkspaceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateWorkspaceOutput, SdkError<CreateWorkspaceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateWorkspaceInputBuilder
impl Clone for CreateWorkspaceInputBuilder
source§fn clone(&self) -> CreateWorkspaceInputBuilder
fn clone(&self) -> CreateWorkspaceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateWorkspaceInputBuilder
impl Debug for CreateWorkspaceInputBuilder
source§impl Default for CreateWorkspaceInputBuilder
impl Default for CreateWorkspaceInputBuilder
source§fn default() -> CreateWorkspaceInputBuilder
fn default() -> CreateWorkspaceInputBuilder
source§impl PartialEq for CreateWorkspaceInputBuilder
impl PartialEq for CreateWorkspaceInputBuilder
source§fn eq(&self, other: &CreateWorkspaceInputBuilder) -> bool
fn eq(&self, other: &CreateWorkspaceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.