AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
Document.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/textract/Textract_EXPORTS.h>
9#include <aws/textract/model/S3Object.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Textract {
21namespace Model {
22
43class Document {
44 public:
45 AWS_TEXTRACT_API Document() = default;
46 AWS_TEXTRACT_API Document(Aws::Utils::Json::JsonView jsonValue);
47 AWS_TEXTRACT_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
58 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
59 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
60 template <typename BytesT = Aws::Utils::ByteBuffer>
61 void SetBytes(BytesT&& value) {
62 m_bytesHasBeenSet = true;
63 m_bytes = std::forward<BytesT>(value);
64 }
65 template <typename BytesT = Aws::Utils::ByteBuffer>
66 Document& WithBytes(BytesT&& value) {
67 SetBytes(std::forward<BytesT>(value));
68 return *this;
69 }
71
73
77 inline const S3Object& GetS3Object() const { return m_s3Object; }
78 inline bool S3ObjectHasBeenSet() const { return m_s3ObjectHasBeenSet; }
79 template <typename S3ObjectT = S3Object>
80 void SetS3Object(S3ObjectT&& value) {
81 m_s3ObjectHasBeenSet = true;
82 m_s3Object = std::forward<S3ObjectT>(value);
83 }
84 template <typename S3ObjectT = S3Object>
85 Document& WithS3Object(S3ObjectT&& value) {
86 SetS3Object(std::forward<S3ObjectT>(value));
87 return *this;
88 }
90 private:
91 Aws::Utils::ByteBuffer m_bytes{};
92 bool m_bytesHasBeenSet = false;
93
94 S3Object m_s3Object;
95 bool m_s3ObjectHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Textract
100} // namespace Aws
AWS_TEXTRACT_API Document()=default
bool S3ObjectHasBeenSet() const
Definition Document.h:78
Document & WithS3Object(S3ObjectT &&value)
Definition Document.h:85
AWS_TEXTRACT_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API Document(Aws::Utils::Json::JsonView jsonValue)
void SetS3Object(S3ObjectT &&value)
Definition Document.h:80
void SetBytes(BytesT &&value)
Definition Document.h:61
const Aws::Utils::ByteBuffer & GetBytes() const
Definition Document.h:58
const S3Object & GetS3Object() const
Definition Document.h:77
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
Document & WithBytes(BytesT &&value)
Definition Document.h:66
Aws::Utils::Json::JsonValue JsonValue