Class DocumentDetails
- java.lang.Object
-
- software.amazon.awssdk.services.qbusiness.model.DocumentDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentDetails.Builder,DocumentDetails>
@Generated("software.amazon.awssdk:codegen") public final class DocumentDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentDetails.Builder,DocumentDetails>
The details of a document within an Amazon Q Business index.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocumentDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentDetails.Builderbuilder()InstantcreatedAt()The timestamp for when the document was created.StringdocumentId()The identifier of the document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ErrorDetailerror()An error message associated with the document.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DocumentDetails.Builder>serializableBuilderClass()DocumentStatusstatus()The current status of the document.StringstatusAsString()The current status of the document.DocumentDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The timestamp for when the document was last updated.-
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
-
documentId
public final String documentId()
The identifier of the document.
- Returns:
- The identifier of the document.
-
status
public final DocumentStatus status()
The current status of the document.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnDocumentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the document.
- See Also:
DocumentStatus
-
statusAsString
public final String statusAsString()
The current status of the document.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnDocumentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the document.
- See Also:
DocumentStatus
-
error
public final ErrorDetail error()
An error message associated with the document.
- Returns:
- An error message associated with the document.
-
createdAt
public final Instant createdAt()
The timestamp for when the document was created.
- Returns:
- The timestamp for when the document was created.
-
updatedAt
public final Instant updatedAt()
The timestamp for when the document was last updated.
- Returns:
- The timestamp for when the document was last updated.
-
toBuilder
public DocumentDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentDetails.Builder,DocumentDetails>
-
builder
public static DocumentDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends DocumentDetails.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.
-
-