@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LatLonOptions extends Object implements Serializable, Cloneable
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present
if IndexFieldType
specifies the field is of type latlon
. All options are enabled by
default.
Constructor and Description |
---|
LatLonOptions() |
Modifier and Type | Method and Description |
---|---|
LatLonOptions |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultValue()
A value to use for the field if the field isn't specified for a document.
|
Boolean |
getFacetEnabled()
Whether facet information can be returned for the field.
|
Boolean |
getReturnEnabled()
Whether the contents of the field can be returned in the search results.
|
Boolean |
getSearchEnabled()
Whether the contents of the field are searchable.
|
Boolean |
getSortEnabled()
Whether the field can be used to sort the search results.
|
String |
getSourceField() |
int |
hashCode() |
Boolean |
isFacetEnabled()
Whether facet information can be returned for the field.
|
Boolean |
isReturnEnabled()
Whether the contents of the field can be returned in the search results.
|
Boolean |
isSearchEnabled()
Whether the contents of the field are searchable.
|
Boolean |
isSortEnabled()
Whether the field can be used to sort the search results.
|
void |
setDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document.
|
void |
setFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.
|
void |
setReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
|
void |
setSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.
|
void |
setSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
|
void |
setSourceField(String sourceField) |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LatLonOptions |
withDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document.
|
LatLonOptions |
withFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.
|
LatLonOptions |
withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
|
LatLonOptions |
withSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.
|
LatLonOptions |
withSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
|
LatLonOptions |
withSourceField(String sourceField) |
public void setDefaultValue(String defaultValue)
defaultValue
- A value to use for the field if the field isn't specified for a document.public String getDefaultValue()
public LatLonOptions withDefaultValue(String defaultValue)
defaultValue
- A value to use for the field if the field isn't specified for a document.public void setSourceField(String sourceField)
sourceField
- public String getSourceField()
public LatLonOptions withSourceField(String sourceField)
sourceField
- public void setFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.
facetEnabled
- Whether facet information can be returned for the field.public Boolean getFacetEnabled()
Whether facet information can be returned for the field.
public LatLonOptions withFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.
facetEnabled
- Whether facet information can be returned for the field.public Boolean isFacetEnabled()
Whether facet information can be returned for the field.
public void setSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.
searchEnabled
- Whether the contents of the field are searchable.public Boolean getSearchEnabled()
Whether the contents of the field are searchable.
public LatLonOptions withSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.
searchEnabled
- Whether the contents of the field are searchable.public Boolean isSearchEnabled()
Whether the contents of the field are searchable.
public void setReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
returnEnabled
- Whether the contents of the field can be returned in the search results.public Boolean getReturnEnabled()
Whether the contents of the field can be returned in the search results.
public LatLonOptions withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.
returnEnabled
- Whether the contents of the field can be returned in the search results.public Boolean isReturnEnabled()
Whether the contents of the field can be returned in the search results.
public void setSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
sortEnabled
- Whether the field can be used to sort the search results.public Boolean getSortEnabled()
Whether the field can be used to sort the search results.
public LatLonOptions withSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.
sortEnabled
- Whether the field can be used to sort the search results.public Boolean isSortEnabled()
Whether the field can be used to sort the search results.
public String toString()
toString
in class Object
Object.toString()
public LatLonOptions clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.