AWSTranslateDocument
Objective-C
@interface AWSTranslateDocument
Swift
class AWSTranslateDocument
The content and content type of a document.
Required parameters: [Content, ContentType]
-
The
Contentfield 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.Declaration
Objective-C
@property (nonatomic, strong) NSData *_Nullable content;Swift
var content: Data? { get set } -
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).
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable contentType;Swift
var contentType: String? { get set }
View on GitHub
Install in Dash
AWSTranslateDocument Class Reference