/AWS1/CL_XL8DOCUMENT¶
The content and content type of a document.
CONSTRUCTOR
¶
IMPORTING¶
Required arguments:¶
IV_CONTENT
TYPE /AWS1/XL8DOCUMENTCONTENT
/AWS1/XL8DOCUMENTCONTENT
¶
The
Content
field type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data.
If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.
IV_CONTENTTYPE
TYPE /AWS1/XL8CONTENTTYPE
/AWS1/XL8CONTENTTYPE
¶
Describes the format of the document. You can specify one of the following:
text/html
- The input data consists of HTML content. Amazon Translate translates only the text in the HTML element.
text/plain
- The input data consists of unformatted text. Amazon Translate translates every character in the content.
application/vnd.openxmlformats-officedocument.wordprocessingml.document
- The input data consists of a Word document (.docx).
Queryable Attributes¶
Content¶
The
Content
field type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data.
If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.
Accessible with the following methods¶
Method | Description |
---|---|
GET_CONTENT() |
Getter for CONTENT, with configurable default |
ASK_CONTENT() |
Getter for CONTENT w/ exceptions if field has no value |
HAS_CONTENT() |
Determine if CONTENT has a value |
ContentType¶
Describes the format of the document. You can specify one of the following:
text/html
- The input data consists of HTML content. Amazon Translate translates only the text in the HTML element.
text/plain
- The input data consists of unformatted text. Amazon Translate translates every character in the content.
application/vnd.openxmlformats-officedocument.wordprocessingml.document
- The input data consists of a Word document (.docx).
Accessible with the following methods¶
Method | Description |
---|---|
GET_CONTENTTYPE() |
Getter for CONTENTTYPE, with configurable default |
ASK_CONTENTTYPE() |
Getter for CONTENTTYPE w/ exceptions if field has no value |
HAS_CONTENTTYPE() |
Determine if CONTENTTYPE has a value |