@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Document.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Document.Builder |
builder() |
SdkBytes |
content()
The
Contentfield type is Binary large object (blob). |
String |
contentType()
Describes the format of the document.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Document.Builder> |
serializableBuilderClass() |
Document.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
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.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.
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.
public Document.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Document.Builder,Document>public static Document.Builder builder()
public static Class<? extends Document.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.