AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnalyzeDocumentRequest.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/TextractRequest.h>
9#include <aws/textract/model/Document.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/textract/model/HumanLoopConfig.h>
12#include <aws/textract/model/QueriesConfig.h>
13#include <aws/textract/model/AdaptersConfig.h>
14#include <aws/textract/model/FeatureType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Textract
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TEXTRACT_API AnalyzeDocumentRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AnalyzeDocument"; }
36
37 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
38
40
41
43
50 inline const Document& GetDocument() const{ return m_document; }
51 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
52 inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
53 inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
54 inline AnalyzeDocumentRequest& WithDocument(const Document& value) { SetDocument(value); return *this;}
55 inline AnalyzeDocumentRequest& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
57
59
68 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const{ return m_featureTypes; }
69 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
70 inline void SetFeatureTypes(const Aws::Vector<FeatureType>& value) { m_featureTypesHasBeenSet = true; m_featureTypes = value; }
71 inline void SetFeatureTypes(Aws::Vector<FeatureType>&& value) { m_featureTypesHasBeenSet = true; m_featureTypes = std::move(value); }
73 inline AnalyzeDocumentRequest& WithFeatureTypes(Aws::Vector<FeatureType>&& value) { SetFeatureTypes(std::move(value)); return *this;}
74 inline AnalyzeDocumentRequest& AddFeatureTypes(const FeatureType& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(value); return *this; }
75 inline AnalyzeDocumentRequest& AddFeatureTypes(FeatureType&& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(std::move(value)); return *this; }
77
79
83 inline const HumanLoopConfig& GetHumanLoopConfig() const{ return m_humanLoopConfig; }
84 inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
85 inline void SetHumanLoopConfig(const HumanLoopConfig& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = value; }
86 inline void SetHumanLoopConfig(HumanLoopConfig&& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = std::move(value); }
88 inline AnalyzeDocumentRequest& WithHumanLoopConfig(HumanLoopConfig&& value) { SetHumanLoopConfig(std::move(value)); return *this;}
90
92
96 inline const QueriesConfig& GetQueriesConfig() const{ return m_queriesConfig; }
97 inline bool QueriesConfigHasBeenSet() const { return m_queriesConfigHasBeenSet; }
98 inline void SetQueriesConfig(const QueriesConfig& value) { m_queriesConfigHasBeenSet = true; m_queriesConfig = value; }
99 inline void SetQueriesConfig(QueriesConfig&& value) { m_queriesConfigHasBeenSet = true; m_queriesConfig = std::move(value); }
100 inline AnalyzeDocumentRequest& WithQueriesConfig(const QueriesConfig& value) { SetQueriesConfig(value); return *this;}
101 inline AnalyzeDocumentRequest& WithQueriesConfig(QueriesConfig&& value) { SetQueriesConfig(std::move(value)); return *this;}
103
105
108 inline const AdaptersConfig& GetAdaptersConfig() const{ return m_adaptersConfig; }
109 inline bool AdaptersConfigHasBeenSet() const { return m_adaptersConfigHasBeenSet; }
110 inline void SetAdaptersConfig(const AdaptersConfig& value) { m_adaptersConfigHasBeenSet = true; m_adaptersConfig = value; }
111 inline void SetAdaptersConfig(AdaptersConfig&& value) { m_adaptersConfigHasBeenSet = true; m_adaptersConfig = std::move(value); }
112 inline AnalyzeDocumentRequest& WithAdaptersConfig(const AdaptersConfig& value) { SetAdaptersConfig(value); return *this;}
113 inline AnalyzeDocumentRequest& WithAdaptersConfig(AdaptersConfig&& value) { SetAdaptersConfig(std::move(value)); return *this;}
115 private:
116
117 Document m_document;
118 bool m_documentHasBeenSet = false;
119
120 Aws::Vector<FeatureType> m_featureTypes;
121 bool m_featureTypesHasBeenSet = false;
122
123 HumanLoopConfig m_humanLoopConfig;
124 bool m_humanLoopConfigHasBeenSet = false;
125
126 QueriesConfig m_queriesConfig;
127 bool m_queriesConfigHasBeenSet = false;
128
129 AdaptersConfig m_adaptersConfig;
130 bool m_adaptersConfigHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Textract
135} // namespace Aws
AWS_TEXTRACT_API Aws::String SerializePayload() const override
void SetHumanLoopConfig(const HumanLoopConfig &value)
const HumanLoopConfig & GetHumanLoopConfig() const
void SetFeatureTypes(const Aws::Vector< FeatureType > &value)
AnalyzeDocumentRequest & WithAdaptersConfig(AdaptersConfig &&value)
const Aws::Vector< FeatureType > & GetFeatureTypes() const
AnalyzeDocumentRequest & AddFeatureTypes(const FeatureType &value)
AnalyzeDocumentRequest & AddFeatureTypes(FeatureType &&value)
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AnalyzeDocumentRequest & WithDocument(const Document &value)
AnalyzeDocumentRequest & WithQueriesConfig(const QueriesConfig &value)
void SetQueriesConfig(const QueriesConfig &value)
AnalyzeDocumentRequest & WithDocument(Document &&value)
void SetAdaptersConfig(const AdaptersConfig &value)
AnalyzeDocumentRequest & WithHumanLoopConfig(const HumanLoopConfig &value)
AnalyzeDocumentRequest & WithQueriesConfig(QueriesConfig &&value)
virtual const char * GetServiceRequestName() const override
AnalyzeDocumentRequest & WithFeatureTypes(Aws::Vector< FeatureType > &&value)
void SetFeatureTypes(Aws::Vector< FeatureType > &&value)
AnalyzeDocumentRequest & WithAdaptersConfig(const AdaptersConfig &value)
AnalyzeDocumentRequest & WithFeatureTypes(const Aws::Vector< FeatureType > &value)
AnalyzeDocumentRequest & WithHumanLoopConfig(HumanLoopConfig &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector