Class DocumentContent
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagent.model.DocumentContent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentContent.Builder,DocumentContent>
@Generated("software.amazon.awssdk:codegen") public final class DocumentContent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentContent.Builder,DocumentContent>
Contains information about the content of a document. Choose a
dataSourceTypeand include the field that corresponds to it.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocumentContent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentContent.Builderbuilder()CustomContentcustom()Contains information about the content to ingest into a knowledge base connected to a custom data source.ContentDataSourceTypedataSourceType()The type of data source that is connected to the knowledge base to which to ingest this document.StringdataSourceTypeAsString()The type of data source that is connected to the knowledge base to which to ingest this document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()S3Contents3()Contains information about the content to ingest into a knowledge base connected to an Amazon S3 data sourceMap<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DocumentContent.Builder>serializableBuilderClass()DocumentContent.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
-
dataSourceType
public final ContentDataSourceType 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:
ContentDataSourceType
-
dataSourceTypeAsString
public final String 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:
ContentDataSourceType
-
custom
public final CustomContent 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
public final S3Content 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
public DocumentContent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentContent.Builder,DocumentContent>
-
builder
public static DocumentContent.Builder builder()
-
serializableBuilderClass
public static Class<? extends DocumentContent.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-