pub struct GetLendingAnalysis { /* private fields */ }
Expand description
Fluent builder constructing a request to GetLendingAnalysis
.
Gets the results for an Amazon Textract asynchronous operation that analyzes text in a lending document.
You start asynchronous text analysis by calling StartLendingAnalysis
, which returns a job identifier (JobId
). When the text analysis operation finishes, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to StartLendingAnalysis
.
To get the results of the text analysis operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetLendingAnalysis, and pass the job identifier (JobId
) from the initial call to StartLendingAnalysis
.
Implementations§
source§impl GetLendingAnalysis
impl GetLendingAnalysis
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetLendingAnalysis, AwsResponseRetryClassifier>, SdkError<GetLendingAnalysisError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetLendingAnalysis, AwsResponseRetryClassifier>, SdkError<GetLendingAnalysisError>>
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<GetLendingAnalysisOutput, SdkError<GetLendingAnalysisError>>
pub async fn send(
self
) -> Result<GetLendingAnalysisOutput, SdkError<GetLendingAnalysisError>>
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 job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
A unique identifier for the lending or text-detection job. The JobId
is returned from StartLendingAnalysis
. A JobId
value is only valid for 7 days.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
A unique identifier for the lending or text-detection job. The JobId
is returned from StartLendingAnalysis
. A JobId
value is only valid for 7 days.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return per paginated call. The largest value that you can specify is 30. If you specify a value greater than 30, a maximum of 30 results is returned. The default value is 30.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return per paginated call. The largest value that you can specify is 30. If you specify a value greater than 30, a maximum of 30 results is returned. The default value is 30.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If the previous response was incomplete, Amazon Textract returns a pagination token in the response. You can use this pagination token to retrieve the next set of lending results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If the previous response was incomplete, Amazon Textract returns a pagination token in the response. You can use this pagination token to retrieve the next set of lending results.
Trait Implementations§
source§impl Clone for GetLendingAnalysis
impl Clone for GetLendingAnalysis
source§fn clone(&self) -> GetLendingAnalysis
fn clone(&self) -> GetLendingAnalysis
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more