Struct aws_sdk_workspacesthinclient::operation::delete_environment::builders::DeleteEnvironmentInputBuilder
source · #[non_exhaustive]pub struct DeleteEnvironmentInputBuilder { /* private fields */ }Expand description
A builder for DeleteEnvironmentInput.
Implementations§
source§impl DeleteEnvironmentInputBuilder
impl DeleteEnvironmentInputBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the environment to delete.
This field is required.sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn build(self) -> Result<DeleteEnvironmentInput, BuildError>
pub fn build(self) -> Result<DeleteEnvironmentInput, BuildError>
Consumes the builder and constructs a DeleteEnvironmentInput.
source§impl DeleteEnvironmentInputBuilder
impl DeleteEnvironmentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteEnvironmentOutput, SdkError<DeleteEnvironmentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteEnvironmentOutput, SdkError<DeleteEnvironmentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteEnvironmentInputBuilder
impl Clone for DeleteEnvironmentInputBuilder
source§fn clone(&self) -> DeleteEnvironmentInputBuilder
fn clone(&self) -> DeleteEnvironmentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DeleteEnvironmentInputBuilder
impl Default for DeleteEnvironmentInputBuilder
source§fn default() -> DeleteEnvironmentInputBuilder
fn default() -> DeleteEnvironmentInputBuilder
source§impl PartialEq for DeleteEnvironmentInputBuilder
impl PartialEq for DeleteEnvironmentInputBuilder
source§fn eq(&self, other: &DeleteEnvironmentInputBuilder) -> bool
fn eq(&self, other: &DeleteEnvironmentInputBuilder) -> bool
self and other values to be equal, and is used
by ==.