pub struct ClassifyDocument { /* private fields */ }Expand description
Fluent builder constructing a request to ClassifyDocument.
Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.
Implementations§
source§impl ClassifyDocument
impl ClassifyDocument
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ClassifyDocument, AwsResponseRetryClassifier>, SdkError<ClassifyDocumentError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ClassifyDocument, AwsResponseRetryClassifier>, SdkError<ClassifyDocumentError>>
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<ClassifyDocumentOutput, SdkError<ClassifyDocumentError>>
pub async fn send(
self
) -> Result<ClassifyDocumentOutput, SdkError<ClassifyDocumentError>>
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 endpoint_arn(self, input: impl Into<String>) -> Self
pub fn endpoint_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.
sourcepub fn set_endpoint_arn(self, input: Option<String>) -> Self
pub fn set_endpoint_arn(self, input: Option<String>) -> Self
The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.
Trait Implementations§
source§impl Clone for ClassifyDocument
impl Clone for ClassifyDocument
source§fn clone(&self) -> ClassifyDocument
fn clone(&self) -> ClassifyDocument
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more