Class Status
- java.lang.Object
-
- software.amazon.awssdk.services.kendra.model.Status
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Status.Builder,Status>
@Generated("software.amazon.awssdk:codegen") public final class Status extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Status.Builder,Status>
Provides information about the status of documents submitted for indexing.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStatus.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Status.Builderbuilder()StringdocumentId()The identifier of the document.DocumentStatusdocumentStatus()The current status of a document.StringdocumentStatusAsString()The current status of a document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfailureCode()Indicates the source of the error.StringfailureReason()Provides detailed information about why the document couldn't be indexed.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Status.Builder>serializableBuilderClass()Status.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
-
documentId
public final String documentId()
The identifier of the document.
- Returns:
- The identifier of the document.
-
documentStatus
public final DocumentStatus documentStatus()
The current status of a document.
If the document was submitted for deletion, the status is
NOT_FOUNDafter the document is deleted.If the service returns an enum value that is not available in the current SDK version,
documentStatuswill returnDocumentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdocumentStatusAsString().- Returns:
- The current status of a document.
If the document was submitted for deletion, the status is
NOT_FOUNDafter the document is deleted. - See Also:
DocumentStatus
-
documentStatusAsString
public final String documentStatusAsString()
The current status of a document.
If the document was submitted for deletion, the status is
NOT_FOUNDafter the document is deleted.If the service returns an enum value that is not available in the current SDK version,
documentStatuswill returnDocumentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdocumentStatusAsString().- Returns:
- The current status of a document.
If the document was submitted for deletion, the status is
NOT_FOUNDafter the document is deleted. - See Also:
DocumentStatus
-
failureCode
public final String failureCode()
Indicates the source of the error.
- Returns:
- Indicates the source of the error.
-
failureReason
public final String failureReason()
Provides detailed information about why the document couldn't be indexed. Use this information to correct the error before you resubmit the document for indexing.
- Returns:
- Provides detailed information about why the document couldn't be indexed. Use this information to correct the error before you resubmit the document for indexing.
-
toBuilder
public Status.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Status.Builder,Status>
-
builder
public static Status.Builder builder()
-
serializableBuilderClass
public static Class<? extends Status.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.
-
-