Class Document

    • Method Detail

      • content

        public final SdkBytes content()

        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.

        Returns:
        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.
      • contentType

        public final String 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).

        Returns:
        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).

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)