#[non_exhaustive]pub struct StopTargetedSentimentDetectionJobInput { /* private fields */ }Implementations§
source§impl StopTargetedSentimentDetectionJobInput
impl StopTargetedSentimentDetectionJobInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopTargetedSentimentDetectionJob, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopTargetedSentimentDetectionJob, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StopTargetedSentimentDetectionJob>
Examples found in repository?
src/client.rs (line 8219)
8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StopTargetedSentimentDetectionJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StopTargetedSentimentDetectionJobError>,
> {
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::StopTargetedSentimentDetectionJobOutput,
aws_smithy_http::result::SdkError<crate::error::StopTargetedSentimentDetectionJobError>,
> {
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 StopTargetedSentimentDetectionJobInput.
Trait Implementations§
source§impl Clone for StopTargetedSentimentDetectionJobInput
impl Clone for StopTargetedSentimentDetectionJobInput
source§fn clone(&self) -> StopTargetedSentimentDetectionJobInput
fn clone(&self) -> StopTargetedSentimentDetectionJobInput
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