Class DocumentContent
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentContent.Builder,DocumentContent>
Contains information about the content of a document. Choose a dataSourceType and include the field that
corresponds to it.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentContent.Builderbuilder()final CustomContentcustom()Contains information about the content to ingest into a knowledge base connected to a custom data source.final ContentDataSourceTypeThe type of data source that is connected to the knowledge base to which to ingest this document.final StringThe type of data source that is connected to the knowledge base to which to ingest this document.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final S3Contents3()Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data sourcestatic Class<? extends DocumentContent.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
dataSourceType
The type of data source that is connected to the knowledge base to which to ingest this document.
If the service returns an enum value that is not available in the current SDK version,
dataSourceTypewill returnContentDataSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataSourceTypeAsString().- Returns:
- The type of data source that is connected to the knowledge base to which to ingest this document.
- See Also:
-
dataSourceTypeAsString
The type of data source that is connected to the knowledge base to which to ingest this document.
If the service returns an enum value that is not available in the current SDK version,
dataSourceTypewill returnContentDataSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataSourceTypeAsString().- Returns:
- The type of data source that is connected to the knowledge base to which to ingest this document.
- See Also:
-
custom
Contains information about the content to ingest into a knowledge base connected to a custom data source.
- Returns:
- Contains information about the content to ingest into a knowledge base connected to a custom data source.
-
s3
Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source
- Returns:
- Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data source
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentContent.Builder,DocumentContent>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-