public class LiteralOptions extends Object implements Serializable
Options that define a literal field in the search index.
Constructor and Description |
---|
LiteralOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDefaultValue()
The default value for a literal field.
|
Boolean |
getFacetEnabled()
Specifies whether facets are enabled for this field.
|
Boolean |
getResultEnabled()
Specifies whether values of this field can be returned in search
results and used for ranking.
|
Boolean |
getSearchEnabled()
Specifies whether search is enabled for this field.
|
int |
hashCode() |
Boolean |
isFacetEnabled()
Specifies whether facets are enabled for this field.
|
Boolean |
isResultEnabled()
Specifies whether values of this field can be returned in search
results and used for ranking.
|
Boolean |
isSearchEnabled()
Specifies whether search is enabled for this field.
|
void |
setDefaultValue(String defaultValue)
The default value for a literal field.
|
void |
setFacetEnabled(Boolean facetEnabled)
Specifies whether facets are enabled for this field.
|
void |
setResultEnabled(Boolean resultEnabled)
Specifies whether values of this field can be returned in search
results and used for ranking.
|
void |
setSearchEnabled(Boolean searchEnabled)
Specifies whether search is enabled for this field.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LiteralOptions |
withDefaultValue(String defaultValue)
The default value for a literal field.
|
LiteralOptions |
withFacetEnabled(Boolean facetEnabled)
Specifies whether facets are enabled for this field.
|
LiteralOptions |
withResultEnabled(Boolean resultEnabled)
Specifies whether values of this field can be returned in search
results and used for ranking.
|
LiteralOptions |
withSearchEnabled(Boolean searchEnabled)
Specifies whether search is enabled for this field.
|
public String getDefaultValue()
Constraints:
Length: 0 - 1024
public void setDefaultValue(String defaultValue)
Constraints:
Length: 0 - 1024
defaultValue
- The default value for a literal field. Optional.public LiteralOptions withDefaultValue(String defaultValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
defaultValue
- The default value for a literal field. Optional.public Boolean isSearchEnabled()
public void setSearchEnabled(Boolean searchEnabled)
searchEnabled
- Specifies whether search is enabled for this field. Default: False.public LiteralOptions withSearchEnabled(Boolean searchEnabled)
Returns a reference to this object so that method calls can be chained together.
searchEnabled
- Specifies whether search is enabled for this field. Default: False.public Boolean getSearchEnabled()
public Boolean isFacetEnabled()
public void setFacetEnabled(Boolean facetEnabled)
facetEnabled
- Specifies whether facets are enabled for this field. Default: False.public LiteralOptions withFacetEnabled(Boolean facetEnabled)
Returns a reference to this object so that method calls can be chained together.
facetEnabled
- Specifies whether facets are enabled for this field. Default: False.public Boolean getFacetEnabled()
public Boolean isResultEnabled()
public void setResultEnabled(Boolean resultEnabled)
resultEnabled
- Specifies whether values of this field can be returned in search
results and used for ranking. Default: False.public LiteralOptions withResultEnabled(Boolean resultEnabled)
Returns a reference to this object so that method calls can be chained together.
resultEnabled
- Specifies whether values of this field can be returned in search
results and used for ranking. Default: False.public Boolean getResultEnabled()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.