#[non_exhaustive]pub struct AnalyzeExpenseInputBuilder { /* private fields */ }
Expand description
A builder for AnalyzeExpenseInput
.
Implementations§
source§impl AnalyzeExpenseInputBuilder
impl AnalyzeExpenseInputBuilder
sourcepub fn document(self, input: Document) -> Self
pub fn document(self, input: Document) -> Self
The input document, either as bytes or as an S3 object.
You pass image bytes to an Amazon Textract API operation by using the Bytes
property. For example, you would use the Bytes
property to pass a document loaded from a local file system. Image bytes passed by using the Bytes
property must be base64 encoded. Your code might not need to encode document file bytes if you're using an AWS SDK to call Amazon Textract API operations.
You pass images stored in an S3 bucket to an Amazon Textract API operation by using the S3Object
property. Documents stored in an S3 bucket don't need to be base64 encoded.
The AWS Region for the S3 bucket that contains the S3 object must match the AWS Region that you use for Amazon Textract operations.
If you use the AWS CLI to call Amazon Textract operations, passing image bytes using the Bytes property isn't supported. You must first upload the document to an Amazon S3 bucket, and then call the operation using the S3Object property.
For Amazon Textract to process an S3 object, the user must have permission to access the S3 object.
This field is required.sourcepub fn set_document(self, input: Option<Document>) -> Self
pub fn set_document(self, input: Option<Document>) -> Self
The input document, either as bytes or as an S3 object.
You pass image bytes to an Amazon Textract API operation by using the Bytes
property. For example, you would use the Bytes
property to pass a document loaded from a local file system. Image bytes passed by using the Bytes
property must be base64 encoded. Your code might not need to encode document file bytes if you're using an AWS SDK to call Amazon Textract API operations.
You pass images stored in an S3 bucket to an Amazon Textract API operation by using the S3Object
property. Documents stored in an S3 bucket don't need to be base64 encoded.
The AWS Region for the S3 bucket that contains the S3 object must match the AWS Region that you use for Amazon Textract operations.
If you use the AWS CLI to call Amazon Textract operations, passing image bytes using the Bytes property isn't supported. You must first upload the document to an Amazon S3 bucket, and then call the operation using the S3Object property.
For Amazon Textract to process an S3 object, the user must have permission to access the S3 object.
sourcepub fn get_document(&self) -> &Option<Document>
pub fn get_document(&self) -> &Option<Document>
The input document, either as bytes or as an S3 object.
You pass image bytes to an Amazon Textract API operation by using the Bytes
property. For example, you would use the Bytes
property to pass a document loaded from a local file system. Image bytes passed by using the Bytes
property must be base64 encoded. Your code might not need to encode document file bytes if you're using an AWS SDK to call Amazon Textract API operations.
You pass images stored in an S3 bucket to an Amazon Textract API operation by using the S3Object
property. Documents stored in an S3 bucket don't need to be base64 encoded.
The AWS Region for the S3 bucket that contains the S3 object must match the AWS Region that you use for Amazon Textract operations.
If you use the AWS CLI to call Amazon Textract operations, passing image bytes using the Bytes property isn't supported. You must first upload the document to an Amazon S3 bucket, and then call the operation using the S3Object property.
For Amazon Textract to process an S3 object, the user must have permission to access the S3 object.
sourcepub fn build(self) -> Result<AnalyzeExpenseInput, BuildError>
pub fn build(self) -> Result<AnalyzeExpenseInput, BuildError>
Consumes the builder and constructs a AnalyzeExpenseInput
.
source§impl AnalyzeExpenseInputBuilder
impl AnalyzeExpenseInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AnalyzeExpenseOutput, SdkError<AnalyzeExpenseError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AnalyzeExpenseOutput, SdkError<AnalyzeExpenseError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AnalyzeExpenseInputBuilder
impl Clone for AnalyzeExpenseInputBuilder
source§fn clone(&self) -> AnalyzeExpenseInputBuilder
fn clone(&self) -> AnalyzeExpenseInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyzeExpenseInputBuilder
impl Debug for AnalyzeExpenseInputBuilder
source§impl Default for AnalyzeExpenseInputBuilder
impl Default for AnalyzeExpenseInputBuilder
source§fn default() -> AnalyzeExpenseInputBuilder
fn default() -> AnalyzeExpenseInputBuilder
source§impl PartialEq for AnalyzeExpenseInputBuilder
impl PartialEq for AnalyzeExpenseInputBuilder
source§fn eq(&self, other: &AnalyzeExpenseInputBuilder) -> bool
fn eq(&self, other: &AnalyzeExpenseInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.