@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchPlaceIndexForPositionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SearchPlaceIndexForPositionRequest() |
Modifier and Type | Method and Description |
---|---|
SearchPlaceIndexForPositionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getIndexName()
The name of the place index resource you want to use for the search.
|
Integer |
getMaxResults()
An optional paramer.
|
List<Double> |
getPosition()
Specifies a coordinate for the query defined by a longitude, and latitude.
|
int |
hashCode() |
void |
setIndexName(String indexName)
The name of the place index resource you want to use for the search.
|
void |
setMaxResults(Integer maxResults)
An optional paramer.
|
void |
setPosition(Collection<Double> position)
Specifies a coordinate for the query defined by a longitude, and latitude.
|
String |
toString()
Returns a string representation of this object.
|
SearchPlaceIndexForPositionRequest |
withIndexName(String indexName)
The name of the place index resource you want to use for the search.
|
SearchPlaceIndexForPositionRequest |
withMaxResults(Integer maxResults)
An optional paramer.
|
SearchPlaceIndexForPositionRequest |
withPosition(Collection<Double> position)
Specifies a coordinate for the query defined by a longitude, and latitude.
|
SearchPlaceIndexForPositionRequest |
withPosition(Double... position)
Specifies a coordinate for the query defined by a longitude, and latitude.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setIndexName(String indexName)
The name of the place index resource you want to use for the search.
indexName
- The name of the place index resource you want to use for the search.public String getIndexName()
The name of the place index resource you want to use for the search.
public SearchPlaceIndexForPositionRequest withIndexName(String indexName)
The name of the place index resource you want to use for the search.
indexName
- The name of the place index resource you want to use for the search.public void setMaxResults(Integer maxResults)
An optional paramer. The maximum number of results returned per request.
Default value: 50
maxResults
- An optional paramer. The maximum number of results returned per request.
Default value: 50
public Integer getMaxResults()
An optional paramer. The maximum number of results returned per request.
Default value: 50
Default value: 50
public SearchPlaceIndexForPositionRequest withMaxResults(Integer maxResults)
An optional paramer. The maximum number of results returned per request.
Default value: 50
maxResults
- An optional paramer. The maximum number of results returned per request.
Default value: 50
public List<Double> getPosition()
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
public void setPosition(Collection<Double> position)
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
position
- Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
public SearchPlaceIndexForPositionRequest withPosition(Double... position)
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
NOTE: This method appends the values to the existing list (if any). Use
setPosition(java.util.Collection)
or withPosition(java.util.Collection)
if you want to override
the existing values.
position
- Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
public SearchPlaceIndexForPositionRequest withPosition(Collection<Double> position)
Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
position
- Specifies a coordinate for the query defined by a longitude, and latitude.
The first position is the X coordinate, or longitude.
The second position is the Y coordinate, or latitude.
For example, position=xLongitude&position=yLatitude
.
public String toString()
toString
in class Object
Object.toString()
public SearchPlaceIndexForPositionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()