/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.location.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A summary of the request sent by using SearchPlaceIndexForPosition
.
*
* The geospatial data provider attached to the place index resource specified in the request. Values can be one of * the following: *
** Esri *
** Grab *
** Here *
** For more information about data providers, see Amazon Location * Service data providers. *
*/ private String dataSource; /** *
* The preferred language used to return results. Matches the language in the request. The value is a valid BCP 47 language tag, for example, en
for English.
*
* Contains the optional result count limit that is specified in the request. *
*
* Default value: 50
*
* The position specified in the request. *
*/ private java.util.List* The geospatial data provider attached to the place index resource specified in the request. Values can be one of * the following: *
** Esri *
** Grab *
** Here *
** For more information about data providers, see Amazon Location * Service data providers. *
* * @param dataSource * The geospatial data provider attached to the place index resource specified in the request. Values can be * one of the following: ** Esri *
** Grab *
** Here *
** For more information about data providers, see Amazon * Location Service data providers. */ public void setDataSource(String dataSource) { this.dataSource = dataSource; } /** *
* The geospatial data provider attached to the place index resource specified in the request. Values can be one of * the following: *
** Esri *
** Grab *
** Here *
** For more information about data providers, see Amazon Location * Service data providers. *
* * @return The geospatial data provider attached to the place index resource specified in the request. Values can be * one of the following: ** Esri *
** Grab *
** Here *
** For more information about data providers, see Amazon * Location Service data providers. */ public String getDataSource() { return this.dataSource; } /** *
* The geospatial data provider attached to the place index resource specified in the request. Values can be one of * the following: *
** Esri *
** Grab *
** Here *
** For more information about data providers, see Amazon Location * Service data providers. *
* * @param dataSource * The geospatial data provider attached to the place index resource specified in the request. Values can be * one of the following: ** Esri *
** Grab *
** Here *
** For more information about data providers, see Amazon * Location Service data providers. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchPlaceIndexForPositionSummary withDataSource(String dataSource) { setDataSource(dataSource); return this; } /** *
* The preferred language used to return results. Matches the language in the request. The value is a valid BCP 47 language tag, for example, en
for English.
*
en
for
* English.
*/
public void setLanguage(String language) {
this.language = language;
}
/**
*
* The preferred language used to return results. Matches the language in the request. The value is a valid BCP 47 language tag, for example, en
for English.
*
en
for
* English.
*/
public String getLanguage() {
return this.language;
}
/**
*
* The preferred language used to return results. Matches the language in the request. The value is a valid BCP 47 language tag, for example, en
for English.
*
en
for
* English.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchPlaceIndexForPositionSummary withLanguage(String language) {
setLanguage(language);
return this;
}
/**
* * Contains the optional result count limit that is specified in the request. *
*
* Default value: 50
*
* Default value: 50
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Contains the optional result count limit that is specified in the request. *
*
* Default value: 50
*
* Default value: 50
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Contains the optional result count limit that is specified in the request. *
*
* Default value: 50
*
* Default value: 50
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchPlaceIndexForPositionSummary withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The position specified in the request. *
* * @return The position specified in the request. */ public java.util.List* The position specified in the request. *
* * @param position * The position specified in the request. */ public void setPosition(java.util.Collection* The position specified in the request. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPosition(java.util.Collection)} or {@link #withPosition(java.util.Collection)} if you want to override * the existing values. *
* * @param position * The position specified in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchPlaceIndexForPositionSummary withPosition(Double... position) { if (this.position == null) { setPosition(new java.util.ArrayList* The position specified in the request. *
* * @param position * The position specified in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchPlaceIndexForPositionSummary withPosition(java.util.Collection