AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
AnalyzeIDResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/textract/Textract_EXPORTS.h>
11#include <aws/textract/model/DocumentMetadata.h>
12#include <aws/textract/model/IdentityDocument.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Textract {
26namespace Model {
28 public:
29 AWS_TEXTRACT_API AnalyzeIDResult() = default;
32
34
38 inline const Aws::Vector<IdentityDocument>& GetIdentityDocuments() const { return m_identityDocuments; }
39 template <typename IdentityDocumentsT = Aws::Vector<IdentityDocument>>
40 void SetIdentityDocuments(IdentityDocumentsT&& value) {
41 m_identityDocumentsHasBeenSet = true;
42 m_identityDocuments = std::forward<IdentityDocumentsT>(value);
43 }
44 template <typename IdentityDocumentsT = Aws::Vector<IdentityDocument>>
45 AnalyzeIDResult& WithIdentityDocuments(IdentityDocumentsT&& value) {
46 SetIdentityDocuments(std::forward<IdentityDocumentsT>(value));
47 return *this;
48 }
49 template <typename IdentityDocumentsT = IdentityDocument>
50 AnalyzeIDResult& AddIdentityDocuments(IdentityDocumentsT&& value) {
51 m_identityDocumentsHasBeenSet = true;
52 m_identityDocuments.emplace_back(std::forward<IdentityDocumentsT>(value));
53 return *this;
54 }
56
58
59 inline const DocumentMetadata& GetDocumentMetadata() const { return m_documentMetadata; }
60 template <typename DocumentMetadataT = DocumentMetadata>
61 void SetDocumentMetadata(DocumentMetadataT&& value) {
62 m_documentMetadataHasBeenSet = true;
63 m_documentMetadata = std::forward<DocumentMetadataT>(value);
64 }
65 template <typename DocumentMetadataT = DocumentMetadata>
66 AnalyzeIDResult& WithDocumentMetadata(DocumentMetadataT&& value) {
67 SetDocumentMetadata(std::forward<DocumentMetadataT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAnalyzeIDModelVersion() const { return m_analyzeIDModelVersion; }
77 template <typename AnalyzeIDModelVersionT = Aws::String>
78 void SetAnalyzeIDModelVersion(AnalyzeIDModelVersionT&& value) {
79 m_analyzeIDModelVersionHasBeenSet = true;
80 m_analyzeIDModelVersion = std::forward<AnalyzeIDModelVersionT>(value);
81 }
82 template <typename AnalyzeIDModelVersionT = Aws::String>
83 AnalyzeIDResult& WithAnalyzeIDModelVersion(AnalyzeIDModelVersionT&& value) {
84 SetAnalyzeIDModelVersion(std::forward<AnalyzeIDModelVersionT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
98 AnalyzeIDResult& WithRequestId(RequestIdT&& value) {
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
104
105 private:
106 Aws::Vector<IdentityDocument> m_identityDocuments;
107
108 DocumentMetadata m_documentMetadata;
109
110 Aws::String m_analyzeIDModelVersion;
111
112 Aws::String m_requestId;
113 Aws::Http::HttpResponseCode m_HttpResponseCode;
114 bool m_identityDocumentsHasBeenSet = false;
115 bool m_documentMetadataHasBeenSet = false;
116 bool m_analyzeIDModelVersionHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Textract
122} // namespace Aws
AWS_TEXTRACT_API AnalyzeIDResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AnalyzeIDResult & WithDocumentMetadata(DocumentMetadataT &&value)
AnalyzeIDResult & AddIdentityDocuments(IdentityDocumentsT &&value)
const Aws::Vector< IdentityDocument > & GetIdentityDocuments() const
AWS_TEXTRACT_API AnalyzeIDResult()=default
void SetAnalyzeIDModelVersion(AnalyzeIDModelVersionT &&value)
const Aws::String & GetAnalyzeIDModelVersion() const
AnalyzeIDResult & WithAnalyzeIDModelVersion(AnalyzeIDModelVersionT &&value)
void SetIdentityDocuments(IdentityDocumentsT &&value)
void SetDocumentMetadata(DocumentMetadataT &&value)
const DocumentMetadata & GetDocumentMetadata() const
AnalyzeIDResult & WithRequestId(RequestIdT &&value)
AnalyzeIDResult & WithIdentityDocuments(IdentityDocumentsT &&value)
AWS_TEXTRACT_API AnalyzeIDResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue