/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Textract { namespace Model { /** */ class GetDocumentAnalysisRequest : public TextractRequest { public: AWS_TEXTRACT_API GetDocumentAnalysisRequest(); // 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 "GetDocumentAnalysis"; } AWS_TEXTRACT_API Aws::String SerializePayload() const override; AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline GetDocumentAnalysisRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline GetDocumentAnalysisRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

A unique identifier for the text-detection job. The JobId is * returned from StartDocumentAnalysis. A JobId value is * only valid for 7 days.

*/ inline GetDocumentAnalysisRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The maximum number of results to return per paginated call. The largest value * that you can specify is 1,000. If you specify a value greater than 1,000, a * maximum of 1,000 results is returned. The default value is 1,000.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return per paginated call. The largest value * that you can specify is 1,000. If you specify a value greater than 1,000, a * maximum of 1,000 results is returned. The default value is 1,000.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return per paginated call. The largest value * that you can specify is 1,000. If you specify a value greater than 1,000, a * maximum of 1,000 results is returned. The default value is 1,000.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return per paginated call. The largest value * that you can specify is 1,000. If you specify a value greater than 1,000, a * maximum of 1,000 results is returned. The default value is 1,000.

*/ inline GetDocumentAnalysisRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline GetDocumentAnalysisRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline GetDocumentAnalysisRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the previous response was incomplete (because there are more blocks to * retrieve), Amazon Textract returns a pagination token in the response. You can * use this pagination token to retrieve the next set of blocks.

*/ inline GetDocumentAnalysisRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws