#[non_exhaustive]pub struct StopBotRecommendationInput { /* private fields */ }Implementations§
source§impl StopBotRecommendationInput
impl StopBotRecommendationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopBotRecommendation, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopBotRecommendation, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StopBotRecommendation>
Examples found in repository?
src/client.rs (line 7912)
7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StopBotRecommendation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StopBotRecommendationError>,
> {
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::StopBotRecommendationOutput,
aws_smithy_http::result::SdkError<crate::error::StopBotRecommendationError>,
> {
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
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StopBotRecommendationInput.
source§impl StopBotRecommendationInput
impl StopBotRecommendationInput
sourcepub fn bot_id(&self) -> Option<&str>
pub fn bot_id(&self) -> Option<&str>
The unique identifier of the bot containing the bot recommendation to be stopped.
sourcepub fn bot_version(&self) -> Option<&str>
pub fn bot_version(&self) -> Option<&str>
The version of the bot containing the bot recommendation.
sourcepub fn locale_id(&self) -> Option<&str>
pub fn locale_id(&self) -> Option<&str>
The identifier of the language and locale of the bot recommendation to stop. The string must match one of the supported locales. For more information, see Supported languages
sourcepub fn bot_recommendation_id(&self) -> Option<&str>
pub fn bot_recommendation_id(&self) -> Option<&str>
The unique identifier of the bot recommendation to be stopped.
Trait Implementations§
source§impl Clone for StopBotRecommendationInput
impl Clone for StopBotRecommendationInput
source§fn clone(&self) -> StopBotRecommendationInput
fn clone(&self) -> StopBotRecommendationInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more