Struct aws_sdk_comprehend::operation::stop_training_document_classifier::builders::StopTrainingDocumentClassifierFluentBuilder
source · pub struct StopTrainingDocumentClassifierFluentBuilder { /* 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§
source§impl StopTrainingDocumentClassifierFluentBuilder
impl StopTrainingDocumentClassifierFluentBuilder
sourcepub fn as_input(&self) -> &StopTrainingDocumentClassifierInputBuilder
pub fn as_input(&self) -> &StopTrainingDocumentClassifierInputBuilder
Access the StopTrainingDocumentClassifier as a reference.
sourcepub async fn send(
self
) -> Result<StopTrainingDocumentClassifierOutput, SdkError<StopTrainingDocumentClassifierError, HttpResponse>>
pub async fn send( self ) -> Result<StopTrainingDocumentClassifierOutput, SdkError<StopTrainingDocumentClassifierError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<StopTrainingDocumentClassifierOutput, StopTrainingDocumentClassifierError, Self>
pub fn customize( self ) -> CustomizableOperation<StopTrainingDocumentClassifierOutput, StopTrainingDocumentClassifierError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
sourcepub fn get_document_classifier_arn(&self) -> &Option<String>
pub fn get_document_classifier_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.
Trait Implementations§
source§impl Clone for StopTrainingDocumentClassifierFluentBuilder
impl Clone for StopTrainingDocumentClassifierFluentBuilder
source§fn clone(&self) -> StopTrainingDocumentClassifierFluentBuilder
fn clone(&self) -> StopTrainingDocumentClassifierFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more