Class IndexField
- java.lang.Object
-
- software.amazon.awssdk.services.cloudsearch.model.IndexField
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IndexField.Builder,IndexField>
@Generated("software.amazon.awssdk:codegen") public final class IndexField extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IndexField.Builder,IndexField>
Configuration information for a field in the index, including its name, type, and options. The supported options depend on the
IndexFieldType.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIndexField.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IndexField.Builderbuilder()DateArrayOptionsdateArrayOptions()Returns the value of the DateArrayOptions property for this object.DateOptionsdateOptions()Returns the value of the DateOptions property for this object.DoubleArrayOptionsdoubleArrayOptions()Returns the value of the DoubleArrayOptions property for this object.DoubleOptionsdoubleOptions()Returns the value of the DoubleOptions property for this object.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringindexFieldName()A string that represents the name of an index field.IndexFieldTypeindexFieldType()Returns the value of the IndexFieldType property for this object.StringindexFieldTypeAsString()Returns the value of the IndexFieldType property for this object.IntArrayOptionsintArrayOptions()Returns the value of the IntArrayOptions property for this object.IntOptionsintOptions()Returns the value of the IntOptions property for this object.LatLonOptionslatLonOptions()Returns the value of the LatLonOptions property for this object.LiteralArrayOptionsliteralArrayOptions()Returns the value of the LiteralArrayOptions property for this object.LiteralOptionsliteralOptions()Returns the value of the LiteralOptions property for this object.List<SdkField<?>>sdkFields()static Class<? extends IndexField.Builder>serializableBuilderClass()TextArrayOptionstextArrayOptions()Returns the value of the TextArrayOptions property for this object.TextOptionstextOptions()Returns the value of the TextOptions property for this object.IndexField.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
-
indexFieldName
public final String indexFieldName()
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name
scoreis reserved and cannot be used as a field name. To reference a document's ID, you can use the name_id.- Returns:
- A string that represents the name of an index field. CloudSearch supports regular index fields as well as
dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any
document fields that don't map to a regular index field but do match a dynamic field's pattern are
configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name
scoreis reserved and cannot be used as a field name. To reference a document's ID, you can use the name_id.
-
indexFieldType
public final IndexFieldType indexFieldType()
Returns the value of the IndexFieldType property for this object.If the service returns an enum value that is not available in the current SDK version,
indexFieldTypewill returnIndexFieldType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromindexFieldTypeAsString().- Returns:
- The value of the IndexFieldType property for this object.
- See Also:
IndexFieldType
-
indexFieldTypeAsString
public final String indexFieldTypeAsString()
Returns the value of the IndexFieldType property for this object.If the service returns an enum value that is not available in the current SDK version,
indexFieldTypewill returnIndexFieldType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromindexFieldTypeAsString().- Returns:
- The value of the IndexFieldType property for this object.
- See Also:
IndexFieldType
-
intOptions
public final IntOptions intOptions()
Returns the value of the IntOptions property for this object.- Returns:
- The value of the IntOptions property for this object.
-
doubleOptions
public final DoubleOptions doubleOptions()
Returns the value of the DoubleOptions property for this object.- Returns:
- The value of the DoubleOptions property for this object.
-
literalOptions
public final LiteralOptions literalOptions()
Returns the value of the LiteralOptions property for this object.- Returns:
- The value of the LiteralOptions property for this object.
-
textOptions
public final TextOptions textOptions()
Returns the value of the TextOptions property for this object.- Returns:
- The value of the TextOptions property for this object.
-
dateOptions
public final DateOptions dateOptions()
Returns the value of the DateOptions property for this object.- Returns:
- The value of the DateOptions property for this object.
-
latLonOptions
public final LatLonOptions latLonOptions()
Returns the value of the LatLonOptions property for this object.- Returns:
- The value of the LatLonOptions property for this object.
-
intArrayOptions
public final IntArrayOptions intArrayOptions()
Returns the value of the IntArrayOptions property for this object.- Returns:
- The value of the IntArrayOptions property for this object.
-
doubleArrayOptions
public final DoubleArrayOptions doubleArrayOptions()
Returns the value of the DoubleArrayOptions property for this object.- Returns:
- The value of the DoubleArrayOptions property for this object.
-
literalArrayOptions
public final LiteralArrayOptions literalArrayOptions()
Returns the value of the LiteralArrayOptions property for this object.- Returns:
- The value of the LiteralArrayOptions property for this object.
-
textArrayOptions
public final TextArrayOptions textArrayOptions()
Returns the value of the TextArrayOptions property for this object.- Returns:
- The value of the TextArrayOptions property for this object.
-
dateArrayOptions
public final DateArrayOptions dateArrayOptions()
Returns the value of the DateArrayOptions property for this object.- Returns:
- The value of the DateArrayOptions property for this object.
-
toBuilder
public IndexField.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IndexField.Builder,IndexField>
-
builder
public static IndexField.Builder builder()
-
serializableBuilderClass
public static Class<? extends IndexField.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.
-
-