Interface Document.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Document.Builder,Document>,SdkBuilder<Document.Builder,Document>,SdkPojo
- Enclosing class:
- Document
public static interface Document.Builder extends SdkPojo, CopyableBuilder<Document.Builder,Document>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document.Buildercontent(SdkBytes content)TheContentfield type is Binary large object (blob).Document.BuildercontentType(String contentType)Describes the format of the document.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
content
Document.Builder content(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.- Parameters:
content- TheContentfield 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:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
Document.Builder contentType(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).
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
-
-