Class DocumentIdentifier
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagent.model.DocumentIdentifier
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentIdentifier.Builder,DocumentIdentifier>
@Generated("software.amazon.awssdk:codegen") public final class DocumentIdentifier extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentIdentifier.Builder,DocumentIdentifier>
Contains information that identifies the document.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocumentIdentifier.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentIdentifier.Builderbuilder()CustomDocumentIdentifiercustom()Contains information that identifies the document in a custom data source.ContentDataSourceTypedataSourceType()The type of data source connected to the knowledge base that contains the document.StringdataSourceTypeAsString()The type of data source connected to the knowledge base that contains the document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()S3Locations3()Contains information that identifies the document in an S3 data source.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DocumentIdentifier.Builder>serializableBuilderClass()DocumentIdentifier.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 connected to the knowledge base that contains the 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 connected to the knowledge base that contains the document.
- See Also:
ContentDataSourceType
-
dataSourceTypeAsString
public final String dataSourceTypeAsString()
The type of data source connected to the knowledge base that contains the 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 connected to the knowledge base that contains the document.
- See Also:
ContentDataSourceType
-
s3
public final S3Location s3()
Contains information that identifies the document in an S3 data source.
- Returns:
- Contains information that identifies the document in an S3 data source.
-
custom
public final CustomDocumentIdentifier custom()
Contains information that identifies the document in a custom data source.
- Returns:
- Contains information that identifies the document in a custom data source.
-
toBuilder
public DocumentIdentifier.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentIdentifier.Builder,DocumentIdentifier>
-
builder
public static DocumentIdentifier.Builder builder()
-
serializableBuilderClass
public static Class<? extends DocumentIdentifier.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
-
-