#[non_exhaustive]pub struct StopSentimentDetectionJobInput { /* private fields */ }Implementations§
source§impl StopSentimentDetectionJobInput
impl StopSentimentDetectionJobInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopSentimentDetectionJob, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopSentimentDetectionJob, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StopSentimentDetectionJob>
Examples found in repository?
src/client.rs (line 8143)
8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StopSentimentDetectionJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StopSentimentDetectionJobError>,
> {
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::StopSentimentDetectionJobOutput,
aws_smithy_http::result::SdkError<crate::error::StopSentimentDetectionJobError>,
> {
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 StopSentimentDetectionJobInput.
Trait Implementations§
source§impl Clone for StopSentimentDetectionJobInput
impl Clone for StopSentimentDetectionJobInput
source§fn clone(&self) -> StopSentimentDetectionJobInput
fn clone(&self) -> StopSentimentDetectionJobInput
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