Class TextOptions
- java.lang.Object
-
- software.amazon.awssdk.services.cloudsearch.model.TextOptions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TextOptions.Builder,TextOptions>
@Generated("software.amazon.awssdk:codegen") public final class TextOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TextOptions.Builder,TextOptions>
Options for text field. Present if
IndexFieldTypespecifies the field is of typetext. Atextfield is always searchable. All options are enabled by default.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTextOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringanalysisScheme()The name of an analysis scheme for atextfield.static TextOptions.Builderbuilder()StringdefaultValue()A value to use for the field if the field isn't specified for a document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanhighlightEnabled()Whether highlights can be returned for the field.BooleanreturnEnabled()Whether the contents of the field can be returned in the search results.List<SdkField<?>>sdkFields()static Class<? extends TextOptions.Builder>serializableBuilderClass()BooleansortEnabled()Whether the field can be used to sort the search results.StringsourceField()Returns the value of the SourceField property for this object.TextOptions.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
-
defaultValue
public final String defaultValue()
A value to use for the field if the field isn't specified for a document.- Returns:
- A value to use for the field if the field isn't specified for a document.
-
sourceField
public final String sourceField()
Returns the value of the SourceField property for this object.- Returns:
- The value of the SourceField property for this object.
-
returnEnabled
public final Boolean returnEnabled()
Whether the contents of the field can be returned in the search results.
- Returns:
- Whether the contents of the field can be returned in the search results.
-
sortEnabled
public final Boolean sortEnabled()
Whether the field can be used to sort the search results.
- Returns:
- Whether the field can be used to sort the search results.
-
highlightEnabled
public final Boolean highlightEnabled()
Whether highlights can be returned for the field.
- Returns:
- Whether highlights can be returned for the field.
-
analysisScheme
public final String analysisScheme()
The name of an analysis scheme for a
textfield.- Returns:
- The name of an analysis scheme for a
textfield.
-
toBuilder
public TextOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TextOptions.Builder,TextOptions>
-
builder
public static TextOptions.Builder builder()
-
serializableBuilderClass
public static Class<? extends TextOptions.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.
-
-