Class MetadataConfigurationForReranking
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.MetadataConfigurationForReranking
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetadataConfigurationForReranking.Builder,MetadataConfigurationForReranking>
@Generated("software.amazon.awssdk:codegen") public final class MetadataConfigurationForReranking extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetadataConfigurationForReranking.Builder,MetadataConfigurationForReranking>
Contains configurations for the metadata to use in reranking.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetadataConfigurationForReranking.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetadataConfigurationForReranking.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()RerankingMetadataSelectionModeselectionMode()Specifies whether to consider all metadata when reranking, or only the metadata that you select.StringselectionModeAsString()Specifies whether to consider all metadata when reranking, or only the metadata that you select.RerankingMetadataSelectiveModeConfigurationselectiveModeConfiguration()Contains configurations for the metadata fields to include or exclude when considering reranking.static Class<? extends MetadataConfigurationForReranking.Builder>serializableBuilderClass()MetadataConfigurationForReranking.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
-
selectionMode
public final RerankingMetadataSelectionMode selectionMode()
Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specify
SELECTIVE, include theselectiveModeConfigurationfield.If the service returns an enum value that is not available in the current SDK version,
selectionModewill returnRerankingMetadataSelectionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromselectionModeAsString().- Returns:
- Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you
specify
SELECTIVE, include theselectiveModeConfigurationfield. - See Also:
RerankingMetadataSelectionMode
-
selectionModeAsString
public final String selectionModeAsString()
Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specify
SELECTIVE, include theselectiveModeConfigurationfield.If the service returns an enum value that is not available in the current SDK version,
selectionModewill returnRerankingMetadataSelectionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromselectionModeAsString().- Returns:
- Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you
specify
SELECTIVE, include theselectiveModeConfigurationfield. - See Also:
RerankingMetadataSelectionMode
-
selectiveModeConfiguration
public final RerankingMetadataSelectiveModeConfiguration selectiveModeConfiguration()
Contains configurations for the metadata fields to include or exclude when considering reranking.
- Returns:
- Contains configurations for the metadata fields to include or exclude when considering reranking.
-
toBuilder
public MetadataConfigurationForReranking.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetadataConfigurationForReranking.Builder,MetadataConfigurationForReranking>
-
builder
public static MetadataConfigurationForReranking.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetadataConfigurationForReranking.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
-
-