Struct aws_sdk_textract::operation::start_expense_analysis::builders::StartExpenseAnalysisInputBuilder
source · #[non_exhaustive]pub struct StartExpenseAnalysisInputBuilder { /* private fields */ }
Expand description
A builder for StartExpenseAnalysisInput
.
Implementations§
source§impl StartExpenseAnalysisInputBuilder
impl StartExpenseAnalysisInputBuilder
sourcepub fn document_location(self, input: DocumentLocation) -> Self
pub fn document_location(self, input: DocumentLocation) -> Self
The location of the document to be processed.
This field is required.sourcepub fn set_document_location(self, input: Option<DocumentLocation>) -> Self
pub fn set_document_location(self, input: Option<DocumentLocation>) -> Self
The location of the document to be processed.
sourcepub fn get_document_location(&self) -> &Option<DocumentLocation>
pub fn get_document_location(&self) -> &Option<DocumentLocation>
The location of the document to be processed.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
The idempotent token that's used to identify the start request. If you use the same token with multiple StartDocumentTextDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
The idempotent token that's used to identify the start request. If you use the same token with multiple StartDocumentTextDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
The idempotent token that's used to identify the start request. If you use the same token with multiple StartDocumentTextDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations
sourcepub fn job_tag(self, input: impl Into<String>) -> Self
pub fn job_tag(self, input: impl Into<String>) -> Self
An identifier you specify that's included in the completion notification published to the Amazon SNS topic. For example, you can use JobTag
to identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).
sourcepub fn set_job_tag(self, input: Option<String>) -> Self
pub fn set_job_tag(self, input: Option<String>) -> Self
An identifier you specify that's included in the completion notification published to the Amazon SNS topic. For example, you can use JobTag
to identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).
sourcepub fn get_job_tag(&self) -> &Option<String>
pub fn get_job_tag(&self) -> &Option<String>
An identifier you specify that's included in the completion notification published to the Amazon SNS topic. For example, you can use JobTag
to identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).
sourcepub fn notification_channel(self, input: NotificationChannel) -> Self
pub fn notification_channel(self, input: NotificationChannel) -> Self
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
sourcepub fn set_notification_channel(
self,
input: Option<NotificationChannel>
) -> Self
pub fn set_notification_channel( self, input: Option<NotificationChannel> ) -> Self
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
sourcepub fn get_notification_channel(&self) -> &Option<NotificationChannel>
pub fn get_notification_channel(&self) -> &Option<NotificationChannel>
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
sourcepub fn output_config(self, input: OutputConfig) -> Self
pub fn output_config(self, input: OutputConfig) -> Self
Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save the results internally to be accessed by the GetExpenseAnalysis
operation.
sourcepub fn set_output_config(self, input: Option<OutputConfig>) -> Self
pub fn set_output_config(self, input: Option<OutputConfig>) -> Self
Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save the results internally to be accessed by the GetExpenseAnalysis
operation.
sourcepub fn get_output_config(&self) -> &Option<OutputConfig>
pub fn get_output_config(&self) -> &Option<OutputConfig>
Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save the results internally to be accessed by the GetExpenseAnalysis
operation.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The KMS key used to encrypt the inference results. This can be in either Key ID or Key Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of the objects in the customer bucket. When this parameter is not enabled, the result will be encrypted server side,using SSE-S3.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The KMS key used to encrypt the inference results. This can be in either Key ID or Key Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of the objects in the customer bucket. When this parameter is not enabled, the result will be encrypted server side,using SSE-S3.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The KMS key used to encrypt the inference results. This can be in either Key ID or Key Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of the objects in the customer bucket. When this parameter is not enabled, the result will be encrypted server side,using SSE-S3.
sourcepub fn build(self) -> Result<StartExpenseAnalysisInput, BuildError>
pub fn build(self) -> Result<StartExpenseAnalysisInput, BuildError>
Consumes the builder and constructs a StartExpenseAnalysisInput
.
source§impl StartExpenseAnalysisInputBuilder
impl StartExpenseAnalysisInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartExpenseAnalysisOutput, SdkError<StartExpenseAnalysisError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartExpenseAnalysisOutput, SdkError<StartExpenseAnalysisError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartExpenseAnalysisInputBuilder
impl Clone for StartExpenseAnalysisInputBuilder
source§fn clone(&self) -> StartExpenseAnalysisInputBuilder
fn clone(&self) -> StartExpenseAnalysisInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StartExpenseAnalysisInputBuilder
impl Default for StartExpenseAnalysisInputBuilder
source§fn default() -> StartExpenseAnalysisInputBuilder
fn default() -> StartExpenseAnalysisInputBuilder
source§impl PartialEq for StartExpenseAnalysisInputBuilder
impl PartialEq for StartExpenseAnalysisInputBuilder
source§fn eq(&self, other: &StartExpenseAnalysisInputBuilder) -> bool
fn eq(&self, other: &StartExpenseAnalysisInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.