@Generated(value="software.amazon.awssdk:codegen") public final class ColumnConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ColumnConfiguration.Builder,ColumnConfiguration>
Provides information about how Amazon Kendra should use the columns of a database in an index.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ColumnConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ColumnConfiguration.Builder |
builder() |
List<String> |
changeDetectingColumns()
One to five columns that indicate when a document in the database has changed.
|
String |
documentDataColumnName()
The column that contains the contents of the document.
|
String |
documentIdColumnName()
The column that provides the document's identifier.
|
String |
documentTitleColumnName()
The column that contains the title of the document.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<DataSourceToIndexFieldMapping> |
fieldMappings()
An array of objects that map database column names to the corresponding fields in an index.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChangeDetectingColumns()
For responses, this returns true if the service returned a value for the ChangeDetectingColumns property.
|
boolean |
hasFieldMappings()
For responses, this returns true if the service returned a value for the FieldMappings property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ColumnConfiguration.Builder> |
serializableBuilderClass() |
ColumnConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String documentIdColumnName()
The column that provides the document's identifier.
public final String documentDataColumnName()
The column that contains the contents of the document.
public final String documentTitleColumnName()
The column that contains the title of the document.
public final boolean hasFieldMappings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<DataSourceToIndexFieldMapping> fieldMappings()
An array of objects that map database column names to the corresponding fields in an index. You must first create
the fields in the index using the UpdateIndex API.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFieldMappings() method.
UpdateIndex API.public final boolean hasChangeDetectingColumns()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> changeDetectingColumns()
One to five columns that indicate when a document in the database has changed.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasChangeDetectingColumns() method.
public ColumnConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ColumnConfiguration.Builder,ColumnConfiguration>public static ColumnConfiguration.Builder builder()
public static Class<? extends ColumnConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.