#[non_exhaustive]pub struct StopTrainingDocumentClassifierInput { /* private fields */ }Implementations§
source§impl StopTrainingDocumentClassifierInput
impl StopTrainingDocumentClassifierInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopTrainingDocumentClassifier, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StopTrainingDocumentClassifier, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StopTrainingDocumentClassifier>
Examples found in repository?
src/client.rs (line 8293)
8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StopTrainingDocumentClassifier,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StopTrainingDocumentClassifierError>,
> {
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::StopTrainingDocumentClassifierOutput,
aws_smithy_http::result::SdkError<crate::error::StopTrainingDocumentClassifierError>,
> {
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 StopTrainingDocumentClassifierInput.
source§impl StopTrainingDocumentClassifierInput
impl StopTrainingDocumentClassifierInput
sourcepub fn document_classifier_arn(&self) -> Option<&str>
pub fn document_classifier_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.
Trait Implementations§
source§impl Clone for StopTrainingDocumentClassifierInput
impl Clone for StopTrainingDocumentClassifierInput
source§fn clone(&self) -> StopTrainingDocumentClassifierInput
fn clone(&self) -> StopTrainingDocumentClassifierInput
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