pub struct StopTrainingDocumentClassifier { /* private fields */ }Expand description
Fluent builder constructing a request to StopTrainingDocumentClassifier.
Stops a document classifier training job while in progress.
If the training job state is TRAINING, the job is marked for termination and put into the STOP_REQUESTED state. If the training job completes before it can be stopped, it is put into the TRAINED; otherwise the training job is stopped and put into the STOPPED state and the service sends back an HTTP 200 response with an empty HTTP body.
Implementations
sourceimpl StopTrainingDocumentClassifier
impl StopTrainingDocumentClassifier
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StopTrainingDocumentClassifier, AwsResponseRetryClassifier>, SdkError<StopTrainingDocumentClassifierError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<StopTrainingDocumentClassifier, AwsResponseRetryClassifier>, SdkError<StopTrainingDocumentClassifierError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<StopTrainingDocumentClassifierOutput, SdkError<StopTrainingDocumentClassifierError>>
pub async fn send(
self
) -> Result<StopTrainingDocumentClassifierOutput, SdkError<StopTrainingDocumentClassifierError>>
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, which can be set when configuring the client.
sourcepub fn document_classifier_arn(self, input: impl Into<String>) -> Self
pub fn document_classifier_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.
sourcepub fn set_document_classifier_arn(self, input: Option<String>) -> Self
pub fn set_document_classifier_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.
Trait Implementations
sourceimpl Clone for StopTrainingDocumentClassifier
impl Clone for StopTrainingDocumentClassifier
sourcefn clone(&self) -> StopTrainingDocumentClassifier
fn clone(&self) -> StopTrainingDocumentClassifier
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more