Class Document
- java.lang.Object
-
- software.amazon.awssdk.services.translate.model.Document
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Document.Builder,Document>
@Generated("software.amazon.awssdk:codegen") public final class Document extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Document.Builder,Document>
The content and content type of a document.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocument.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Document.Builderbuilder()SdkBytescontent()TheContentfield type is Binary large object (blob).StringcontentType()Describes the format of the document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Document.Builder>serializableBuilderClass()Document.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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).
-
-
-
toBuilder
public Document.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Document.Builder,Document>
-
builder
public static Document.Builder builder()
-
serializableBuilderClass
public static Class<? extends Document.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-