/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Textract { namespace Model { /** */ class StartDocumentAnalysisRequest : public TextractRequest { public: AWS_TEXTRACT_API StartDocumentAnalysisRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartDocumentAnalysis"; } AWS_TEXTRACT_API Aws::String SerializePayload() const override; AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The location of the document to be processed.

*/ inline const DocumentLocation& GetDocumentLocation() const{ return m_documentLocation; } /** *

The location of the document to be processed.

*/ inline bool DocumentLocationHasBeenSet() const { return m_documentLocationHasBeenSet; } /** *

The location of the document to be processed.

*/ inline void SetDocumentLocation(const DocumentLocation& value) { m_documentLocationHasBeenSet = true; m_documentLocation = value; } /** *

The location of the document to be processed.

*/ inline void SetDocumentLocation(DocumentLocation&& value) { m_documentLocationHasBeenSet = true; m_documentLocation = std::move(value); } /** *

The location of the document to be processed.

*/ inline StartDocumentAnalysisRequest& WithDocumentLocation(const DocumentLocation& value) { SetDocumentLocation(value); return *this;} /** *

The location of the document to be processed.

*/ inline StartDocumentAnalysisRequest& WithDocumentLocation(DocumentLocation&& value) { SetDocumentLocation(std::move(value)); return *this;} /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline const Aws::Vector& GetFeatureTypes() const{ return m_featureTypes; } /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; } /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline void SetFeatureTypes(const Aws::Vector& value) { m_featureTypesHasBeenSet = true; m_featureTypes = value; } /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline void SetFeatureTypes(Aws::Vector&& value) { m_featureTypesHasBeenSet = true; m_featureTypes = std::move(value); } /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline StartDocumentAnalysisRequest& WithFeatureTypes(const Aws::Vector& value) { SetFeatureTypes(value); return *this;} /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline StartDocumentAnalysisRequest& WithFeatureTypes(Aws::Vector&& value) { SetFeatureTypes(std::move(value)); return *this;} /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline StartDocumentAnalysisRequest& AddFeatureTypes(const FeatureType& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(value); return *this; } /** *

A list of the types of analysis to perform. Add TABLES to the list to return * information about the tables that are detected in the input document. Add FORMS * to return detected form data. To perform both types of analysis, add TABLES and * FORMS to FeatureTypes. All lines and words detected in the document * are included in the response (including text that isn't related to the value of * FeatureTypes).

*/ inline StartDocumentAnalysisRequest& AddFeatureTypes(FeatureType&& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(std::move(value)); return *this; } /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline StartDocumentAnalysisRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline StartDocumentAnalysisRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

The idempotent token that you use to identify the start request. If you use * the same token with multiple StartDocumentAnalysis 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.

*/ inline StartDocumentAnalysisRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

An identifier that 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).

*/ inline const Aws::String& GetJobTag() const{ return m_jobTag; } /** *

An identifier that 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).

*/ inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; } /** *

An identifier that 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).

*/ inline void SetJobTag(const Aws::String& value) { m_jobTagHasBeenSet = true; m_jobTag = value; } /** *

An identifier that 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).

*/ inline void SetJobTag(Aws::String&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::move(value); } /** *

An identifier that 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).

*/ inline void SetJobTag(const char* value) { m_jobTagHasBeenSet = true; m_jobTag.assign(value); } /** *

An identifier that 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).

*/ inline StartDocumentAnalysisRequest& WithJobTag(const Aws::String& value) { SetJobTag(value); return *this;} /** *

An identifier that 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).

*/ inline StartDocumentAnalysisRequest& WithJobTag(Aws::String&& value) { SetJobTag(std::move(value)); return *this;} /** *

An identifier that 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).

*/ inline StartDocumentAnalysisRequest& WithJobTag(const char* value) { SetJobTag(value); return *this;} /** *

The Amazon SNS topic ARN that you want Amazon Textract to publish the * completion status of the operation to.

*/ inline const NotificationChannel& GetNotificationChannel() const{ return m_notificationChannel; } /** *

The Amazon SNS topic ARN that you want Amazon Textract to publish the * completion status of the operation to.

*/ inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; } /** *

The Amazon SNS topic ARN that you want Amazon Textract to publish the * completion status of the operation to.

*/ inline void SetNotificationChannel(const NotificationChannel& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = value; } /** *

The Amazon SNS topic ARN that you want Amazon Textract to publish the * completion status of the operation to.

*/ inline void SetNotificationChannel(NotificationChannel&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::move(value); } /** *

The Amazon SNS topic ARN that you want Amazon Textract to publish the * completion status of the operation to.

*/ inline StartDocumentAnalysisRequest& WithNotificationChannel(const NotificationChannel& value) { SetNotificationChannel(value); return *this;} /** *

The Amazon SNS topic ARN that you want Amazon Textract to publish the * completion status of the operation to.

*/ inline StartDocumentAnalysisRequest& WithNotificationChannel(NotificationChannel&& value) { SetNotificationChannel(std::move(value)); return *this;} /** *

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 * GetDocumentAnalysis operation.

*/ inline const OutputConfig& GetOutputConfig() const{ return m_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 * GetDocumentAnalysis operation.

*/ inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; } /** *

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 * GetDocumentAnalysis operation.

*/ inline void SetOutputConfig(const OutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; } /** *

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 * GetDocumentAnalysis operation.

*/ inline void SetOutputConfig(OutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); } /** *

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 * GetDocumentAnalysis operation.

*/ inline StartDocumentAnalysisRequest& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;} /** *

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 * GetDocumentAnalysis operation.

*/ inline StartDocumentAnalysisRequest& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; } /** *

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.

*/ inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; } /** *

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.

*/ inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; } /** *

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.

*/ inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); } /** *

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.

*/ inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); } /** *

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.

*/ inline StartDocumentAnalysisRequest& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;} /** *

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.

*/ inline StartDocumentAnalysisRequest& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;} /** *

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.

*/ inline StartDocumentAnalysisRequest& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;} inline const QueriesConfig& GetQueriesConfig() const{ return m_queriesConfig; } inline bool QueriesConfigHasBeenSet() const { return m_queriesConfigHasBeenSet; } inline void SetQueriesConfig(const QueriesConfig& value) { m_queriesConfigHasBeenSet = true; m_queriesConfig = value; } inline void SetQueriesConfig(QueriesConfig&& value) { m_queriesConfigHasBeenSet = true; m_queriesConfig = std::move(value); } inline StartDocumentAnalysisRequest& WithQueriesConfig(const QueriesConfig& value) { SetQueriesConfig(value); return *this;} inline StartDocumentAnalysisRequest& WithQueriesConfig(QueriesConfig&& value) { SetQueriesConfig(std::move(value)); return *this;} private: DocumentLocation m_documentLocation; bool m_documentLocationHasBeenSet = false; Aws::Vector m_featureTypes; bool m_featureTypesHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_jobTag; bool m_jobTagHasBeenSet = false; NotificationChannel m_notificationChannel; bool m_notificationChannelHasBeenSet = false; OutputConfig m_outputConfig; bool m_outputConfigHasBeenSet = false; Aws::String m_kMSKeyId; bool m_kMSKeyIdHasBeenSet = false; QueriesConfig m_queriesConfig; bool m_queriesConfigHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws