AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Document.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/textract/model/S3Object.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Textract
23{
24namespace Model
25{
26
48 {
49 public:
50 AWS_TEXTRACT_API Document();
51 AWS_TEXTRACT_API Document(Aws::Utils::Json::JsonView jsonValue);
52 AWS_TEXTRACT_API Document& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
64 inline const Aws::Utils::ByteBuffer& GetBytes() const{ return m_bytes; }
65 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
66 inline void SetBytes(const Aws::Utils::ByteBuffer& value) { m_bytesHasBeenSet = true; m_bytes = value; }
67 inline void SetBytes(Aws::Utils::ByteBuffer&& value) { m_bytesHasBeenSet = true; m_bytes = std::move(value); }
68 inline Document& WithBytes(const Aws::Utils::ByteBuffer& value) { SetBytes(value); return *this;}
69 inline Document& WithBytes(Aws::Utils::ByteBuffer&& value) { SetBytes(std::move(value)); return *this;}
71
73
77 inline const S3Object& GetS3Object() const{ return m_s3Object; }
78 inline bool S3ObjectHasBeenSet() const { return m_s3ObjectHasBeenSet; }
79 inline void SetS3Object(const S3Object& value) { m_s3ObjectHasBeenSet = true; m_s3Object = value; }
80 inline void SetS3Object(S3Object&& value) { m_s3ObjectHasBeenSet = true; m_s3Object = std::move(value); }
81 inline Document& WithS3Object(const S3Object& value) { SetS3Object(value); return *this;}
82 inline Document& WithS3Object(S3Object&& value) { SetS3Object(std::move(value)); return *this;}
84 private:
85
87 bool m_bytesHasBeenSet = false;
88
89 S3Object m_s3Object;
90 bool m_s3ObjectHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Textract
95} // namespace Aws
void SetS3Object(S3Object &&value)
Definition Document.h:80
void SetBytes(Aws::Utils::ByteBuffer &&value)
Definition Document.h:67
bool S3ObjectHasBeenSet() const
Definition Document.h:78
Document & WithS3Object(const S3Object &value)
Definition Document.h:81
AWS_TEXTRACT_API Document & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API Document(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::ByteBuffer & GetBytes() const
Definition Document.h:64
AWS_TEXTRACT_API Document()
const S3Object & GetS3Object() const
Definition Document.h:77
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetS3Object(const S3Object &value)
Definition Document.h:79
void SetBytes(const Aws::Utils::ByteBuffer &value)
Definition Document.h:66
Document & WithS3Object(S3Object &&value)
Definition Document.h:82
Document & WithBytes(const Aws::Utils::ByteBuffer &value)
Definition Document.h:68
Document & WithBytes(Aws::Utils::ByteBuffer &&value)
Definition Document.h:69
Aws::Utils::Json::JsonValue JsonValue