Class LiteralArrayOptions
- java.lang.Object
-
- com.amazonaws.services.cloudsearchv2.model.LiteralArrayOptions
-
- All Implemented Interfaces:
Serializable,Cloneable
public class LiteralArrayOptions extends Object implements Serializable, Cloneable
Options for a field that contains an array of literal strings. Present if
IndexFieldTypespecifies the field is of typeliteral-array. All options are enabled by default.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LiteralArrayOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LiteralArrayOptionsclone()booleanequals(Object obj)StringgetDefaultValue()A value to use for the field if the field isn't specified for a document.BooleangetFacetEnabled()Whether facet information can be returned for the field.BooleangetReturnEnabled()Whether the contents of the field can be returned in the search results.BooleangetSearchEnabled()Whether the contents of the field are searchable.StringgetSourceFields()A list of source fields to map to the field.inthashCode()BooleanisFacetEnabled()Whether facet information can be returned for the field.BooleanisReturnEnabled()Whether the contents of the field can be returned in the search results.BooleanisSearchEnabled()Whether the contents of the field are searchable.voidsetDefaultValue(String defaultValue)A value to use for the field if the field isn't specified for a document.voidsetFacetEnabled(Boolean facetEnabled)Whether facet information can be returned for the field.voidsetReturnEnabled(Boolean returnEnabled)Whether the contents of the field can be returned in the search results.voidsetSearchEnabled(Boolean searchEnabled)Whether the contents of the field are searchable.voidsetSourceFields(String sourceFields)A list of source fields to map to the field.StringtoString()Returns a string representation of this object; useful for testing and debugging.LiteralArrayOptionswithDefaultValue(String defaultValue)A value to use for the field if the field isn't specified for a document.LiteralArrayOptionswithFacetEnabled(Boolean facetEnabled)Whether facet information can be returned for the field.LiteralArrayOptionswithReturnEnabled(Boolean returnEnabled)Whether the contents of the field can be returned in the search results.LiteralArrayOptionswithSearchEnabled(Boolean searchEnabled)Whether the contents of the field are searchable.LiteralArrayOptionswithSourceFields(String sourceFields)A list of source fields to map to the field.
-
-
-
Method Detail
-
setDefaultValue
public void setDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document.- Parameters:
defaultValue- A value to use for the field if the field isn't specified for a document.
-
getDefaultValue
public String getDefaultValue()
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.
-
withDefaultValue
public LiteralArrayOptions withDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document.- Parameters:
defaultValue- A value to use for the field if the field isn't specified for a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceFields
public void setSourceFields(String sourceFields)
A list of source fields to map to the field.
- Parameters:
sourceFields- A list of source fields to map to the field.
-
getSourceFields
public String getSourceFields()
A list of source fields to map to the field.
- Returns:
- A list of source fields to map to the field.
-
withSourceFields
public LiteralArrayOptions withSourceFields(String sourceFields)
A list of source fields to map to the field.
- Parameters:
sourceFields- A list of source fields to map to the field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFacetEnabled
public void setFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.
- Parameters:
facetEnabled- Whether facet information can be returned for the field.
-
getFacetEnabled
public Boolean getFacetEnabled()
Whether facet information can be returned for the field.
- Returns:
- Whether facet information can be returned for the field.
-
withFacetEnabled
public LiteralArrayOptions withFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.
- Parameters:
facetEnabled- Whether facet information can be returned for the field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isFacetEnabled
public Boolean isFacetEnabled()
Whether facet information can be returned for the field.
- Returns:
- Whether facet information can be returned for the field.
-
setSearchEnabled
public void setSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.
- Parameters:
searchEnabled- Whether the contents of the field are searchable.
-
getSearchEnabled
public Boolean getSearchEnabled()
Whether the contents of the field are searchable.
- Returns:
- Whether the contents of the field are searchable.
-
withSearchEnabled
public LiteralArrayOptions withSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.
- Parameters:
searchEnabled- Whether the contents of the field are searchable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSearchEnabled
public Boolean isSearchEnabled()
Whether the contents of the field are searchable.
- Returns:
- Whether the contents of the field are searchable.
-
setReturnEnabled
public void setReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
- Parameters:
returnEnabled- Whether the contents of the field can be returned in the search results.
-
getReturnEnabled
public Boolean getReturnEnabled()
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.
-
withReturnEnabled
public LiteralArrayOptions withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
- Parameters:
returnEnabled- Whether the contents of the field can be returned in the search results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isReturnEnabled
public Boolean isReturnEnabled()
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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LiteralArrayOptions clone()
-
-