Struct aws_sdk_lexmodelsv2::input::delete_bot_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DeleteBotInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier of the bot to delete.
sourcepub fn skip_resource_in_use_check(self, input: bool) -> Self
pub fn skip_resource_in_use_check(self, input: bool) -> Self
When true, Amazon Lex doesn't check to see if another resource, such as an alias, is using the bot before it is deleted.
sourcepub fn set_skip_resource_in_use_check(self, input: Option<bool>) -> Self
pub fn set_skip_resource_in_use_check(self, input: Option<bool>) -> Self
When true, Amazon Lex doesn't check to see if another resource, such as an alias, is using the bot before it is deleted.
sourcepub fn build(self) -> Result<DeleteBotInput, BuildError>
pub fn build(self) -> Result<DeleteBotInput, BuildError>
Consumes the builder and constructs a DeleteBotInput.
Examples found in repository?
src/client.rs (line 3273)
3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteBot,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteBotError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteBotOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteBotError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}