/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SearchPlaceIndexForSuggestionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* An optional parameter that indicates a preference for place suggestions that are closer to a specified position. *
** If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, or * longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude -123.1174
and
* latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options results in
* an error.
*
* An optional parameter that limits the search results by returning only suggestions within a specified bounding * box. *
** If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest corner of the * bounding box; the second pair of numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the southwest
* corner has longitude -12.7935
and latitude -37.4835
, and the northeast corner has
* longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options results in
* an error.
*
* A list of one or more Amazon Location categories to filter the returned places. If you include more than one * category, the results will include results that match any of the categories listed. *
** For more information about using categories, including a list of Amazon Location categories, see Categories and * filtering, in the Amazon Location Service Developer Guide. *
*/ private java.util.List* An optional parameter that limits the search results by returning only suggestions within the provided list of * countries. *
*
* Use the ISO 3166 3-digit country code. For example,
* Australia uses three upper-case characters: AUS
.
*
* The name of the place index resource you want to use for the search. *
*/ private String indexName; /** ** The optional API key * to authorize the request. *
*/ private String key; /** *
* The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, en
for English.
*
* This setting affects the languages used in the results. If no language is specified, or not supported for a * particular result, the partner automatically chooses a language for the result. *
*
* For an example, we'll use the Greek language. You search for Athens, Gr
to get suggestions with the
* language
parameter set to en
. The results found will most likely be returned as
* Athens, Greece
.
*
* If you set the language
parameter to el
, for Greek, then the result found will more
* likely be returned as Αθήνα, Ελλάδα
.
*
* If the data provider does not have a value for Greek, the result will be in a language that the provider does * support. *
*/ private String language; /** ** An optional parameter. The maximum number of results returned per request. *
*
* The default: 5
*
* The free-form partial text to use to generate place suggestions. For example, eiffel tow
.
*
* An optional parameter that indicates a preference for place suggestions that are closer to a specified position. *
** If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, or * longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude -123.1174
and
* latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options results in
* an error.
*
* If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, * or longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude
* -123.1174
and latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options
* results in an error.
*
* An optional parameter that indicates a preference for place suggestions that are closer to a specified position. *
** If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, or * longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude -123.1174
and
* latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options results in
* an error.
*
* If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, * or longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude
* -123.1174
and latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options
* results in an error.
*
* An optional parameter that indicates a preference for place suggestions that are closer to a specified position. *
** If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, or * longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude -123.1174
and
* latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options results in
* an error.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setBiasPosition(java.util.Collection)} or {@link #withBiasPosition(java.util.Collection)} if you want to * override the existing values. *
* * @param biasPosition * An optional parameter that indicates a preference for place suggestions that are closer to a specified * position. ** If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, * or longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude
* -123.1174
and latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options
* results in an error.
*
* An optional parameter that indicates a preference for place suggestions that are closer to a specified position. *
** If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, or * longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude -123.1174
and
* latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options results in
* an error.
*
* If provided, this parameter must contain a pair of numbers. The first number represents the X coordinate, * or longitude; the second number represents the Y coordinate, or latitude. *
*
* For example, [-123.1174, 49.2847]
represents the position with longitude
* -123.1174
and latitude 49.2847
.
*
* BiasPosition
and FilterBBox
are mutually exclusive. Specifying both options
* results in an error.
*
* An optional parameter that limits the search results by returning only suggestions within a specified bounding * box. *
** If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest corner of the * bounding box; the second pair of numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the southwest
* corner has longitude -12.7935
and latitude -37.4835
, and the northeast corner has
* longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options results in
* an error.
*
* If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair * of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest * corner of the bounding box; the second pair of numbers represents the X and Y coordinates (longitude and * latitude, respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the
* southwest corner has longitude -12.7935
and latitude -37.4835
, and the
* northeast corner has longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options
* results in an error.
*
* An optional parameter that limits the search results by returning only suggestions within a specified bounding * box. *
** If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest corner of the * bounding box; the second pair of numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the southwest
* corner has longitude -12.7935
and latitude -37.4835
, and the northeast corner has
* longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options results in
* an error.
*
* If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair * of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest * corner of the bounding box; the second pair of numbers represents the X and Y coordinates (longitude and * latitude, respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the
* southwest corner has longitude -12.7935
and latitude -37.4835
, and the northeast
* corner has longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options
* results in an error.
*
* An optional parameter that limits the search results by returning only suggestions within a specified bounding * box. *
** If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest corner of the * bounding box; the second pair of numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the southwest
* corner has longitude -12.7935
and latitude -37.4835
, and the northeast corner has
* longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options results in
* an error.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilterBBox(java.util.Collection)} or {@link #withFilterBBox(java.util.Collection)} if you want to * override the existing values. *
* * @param filterBBox * An optional parameter that limits the search results by returning only suggestions within a specified * bounding box. ** If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair * of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest * corner of the bounding box; the second pair of numbers represents the X and Y coordinates (longitude and * latitude, respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the
* southwest corner has longitude -12.7935
and latitude -37.4835
, and the northeast
* corner has longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options
* results in an error.
*
* An optional parameter that limits the search results by returning only suggestions within a specified bounding * box. *
** If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest corner of the * bounding box; the second pair of numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the southwest
* corner has longitude -12.7935
and latitude -37.4835
, and the northeast corner has
* longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options results in
* an error.
*
* If provided, this parameter must contain a total of four consecutive numbers in two pairs. The first pair * of numbers represents the X and Y coordinates (longitude and latitude, respectively) of the southwest * corner of the bounding box; the second pair of numbers represents the X and Y coordinates (longitude and * latitude, respectively) of the northeast corner of the bounding box. *
*
* For example, [-12.7935, -37.4835, -12.0684, -36.9542]
represents a bounding box where the
* southwest corner has longitude -12.7935
and latitude -37.4835
, and the northeast
* corner has longitude -12.0684
and latitude -36.9542
.
*
* FilterBBox
and BiasPosition
are mutually exclusive. Specifying both options
* results in an error.
*
* A list of one or more Amazon Location categories to filter the returned places. If you include more than one * category, the results will include results that match any of the categories listed. *
** For more information about using categories, including a list of Amazon Location categories, see Categories and * filtering, in the Amazon Location Service Developer Guide. *
* * @return A list of one or more Amazon Location categories to filter the returned places. If you include more than * one category, the results will include results that match any of the categories listed. *
* For more information about using categories, including a list of Amazon Location categories, see Categories and
* filtering, in the Amazon Location Service Developer Guide.
*/
public java.util.List
* A list of one or more Amazon Location categories to filter the returned places. If you include more than one
* category, the results will include results that match any of the categories listed.
*
* For more information about using categories, including a list of Amazon Location categories, see Categories and
* filtering, in the Amazon Location Service Developer Guide.
*
* For more information about using categories, including a list of Amazon Location categories, see Categories and
* filtering, in the Amazon Location Service Developer Guide.
*/
public void setFilterCategories(java.util.Collection
* A list of one or more Amazon Location categories to filter the returned places. If you include more than one
* category, the results will include results that match any of the categories listed.
*
* For more information about using categories, including a list of Amazon Location categories, see Categories and
* filtering, in the Amazon Location Service Developer Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFilterCategories(java.util.Collection)} or {@link #withFilterCategories(java.util.Collection)} if you
* want to override the existing values.
*
* For more information about using categories, including a list of Amazon Location categories, see Categories and
* filtering, in the Amazon Location Service Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchPlaceIndexForSuggestionsRequest withFilterCategories(String... filterCategories) {
if (this.filterCategories == null) {
setFilterCategories(new java.util.ArrayList
* A list of one or more Amazon Location categories to filter the returned places. If you include more than one
* category, the results will include results that match any of the categories listed.
*
* For more information about using categories, including a list of Amazon Location categories, see Categories and
* filtering, in the Amazon Location Service Developer Guide.
*
* For more information about using categories, including a list of Amazon Location categories, see Categories and
* filtering, in the Amazon Location Service Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchPlaceIndexForSuggestionsRequest withFilterCategories(java.util.Collection
* An optional parameter that limits the search results by returning only suggestions within the provided list of
* countries.
*
* Use the ISO 3166 3-digit country code. For example,
* Australia uses three upper-case characters:
*
*
* @return An optional parameter that limits the search results by returning only suggestions within the provided
* list of countries.AUS
.
*
* Use the ISO 3166 3-digit country code. For
* example, Australia uses three upper-case characters: AUS
.
*
* An optional parameter that limits the search results by returning only suggestions within the provided list of * countries. *
*
* Use the ISO 3166 3-digit country code. For example,
* Australia uses three upper-case characters: AUS
.
*
* Use the ISO 3166 3-digit country code. For
* example, Australia uses three upper-case characters: AUS
.
*
* An optional parameter that limits the search results by returning only suggestions within the provided list of * countries. *
*
* Use the ISO 3166 3-digit country code. For example,
* Australia uses three upper-case characters: AUS
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilterCountries(java.util.Collection)} or {@link #withFilterCountries(java.util.Collection)} if you * want to override the existing values. *
* * @param filterCountries * An optional parameter that limits the search results by returning only suggestions within the provided * list of countries. *
* Use the ISO 3166 3-digit country code. For
* example, Australia uses three upper-case characters: AUS
.
*
* An optional parameter that limits the search results by returning only suggestions within the provided list of * countries. *
*
* Use the ISO 3166 3-digit country code. For example,
* Australia uses three upper-case characters: AUS
.
*
* Use the ISO 3166 3-digit country code. For
* example, Australia uses three upper-case characters: AUS
.
*
* The name of the place index resource you want to use for the search. *
* * @param indexName * The name of the place index resource you want to use for the search. */ public void setIndexName(String indexName) { this.indexName = indexName; } /** ** The name of the place index resource you want to use for the search. *
* * @return The name of the place index resource you want to use for the search. */ public String getIndexName() { return this.indexName; } /** ** The name of the place index resource you want to use for the search. *
* * @param indexName * The name of the place index resource you want to use for the search. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchPlaceIndexForSuggestionsRequest withIndexName(String indexName) { setIndexName(indexName); return this; } /** ** The optional API key * to authorize the request. *
* * @param key * The optional API * key to authorize the request. */ public void setKey(String key) { this.key = key; } /** ** The optional API key * to authorize the request. *
* * @return The optional API * key to authorize the request. */ public String getKey() { return this.key; } /** ** The optional API key * to authorize the request. *
* * @param key * The optional API * key to authorize the request. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchPlaceIndexForSuggestionsRequest withKey(String key) { setKey(key); return this; } /** *
* The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, en
for English.
*
* This setting affects the languages used in the results. If no language is specified, or not supported for a * particular result, the partner automatically chooses a language for the result. *
*
* For an example, we'll use the Greek language. You search for Athens, Gr
to get suggestions with the
* language
parameter set to en
. The results found will most likely be returned as
* Athens, Greece
.
*
* If you set the language
parameter to el
, for Greek, then the result found will more
* likely be returned as Αθήνα, Ελλάδα
.
*
* If the data provider does not have a value for Greek, the result will be in a language that the provider does * support. *
* * @param language * The preferred language used to return results. The value must be a valid BCP 47 language tag, for example,en
for
* English.
* * This setting affects the languages used in the results. If no language is specified, or not supported for * a particular result, the partner automatically chooses a language for the result. *
*
* For an example, we'll use the Greek language. You search for Athens, Gr
to get suggestions
* with the language
parameter set to en
. The results found will most likely be
* returned as Athens, Greece
.
*
* If you set the language
parameter to el
, for Greek, then the result found will
* more likely be returned as Αθήνα, Ελλάδα
.
*
* If the data provider does not have a value for Greek, the result will be in a language that the provider * does support. */ public void setLanguage(String language) { this.language = language; } /** *
* The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, en
for English.
*
* This setting affects the languages used in the results. If no language is specified, or not supported for a * particular result, the partner automatically chooses a language for the result. *
*
* For an example, we'll use the Greek language. You search for Athens, Gr
to get suggestions with the
* language
parameter set to en
. The results found will most likely be returned as
* Athens, Greece
.
*
* If you set the language
parameter to el
, for Greek, then the result found will more
* likely be returned as Αθήνα, Ελλάδα
.
*
* If the data provider does not have a value for Greek, the result will be in a language that the provider does * support. *
* * @return The preferred language used to return results. The value must be a valid BCP 47 language tag, for example,en
for
* English.
* * This setting affects the languages used in the results. If no language is specified, or not supported for * a particular result, the partner automatically chooses a language for the result. *
*
* For an example, we'll use the Greek language. You search for Athens, Gr
to get suggestions
* with the language
parameter set to en
. The results found will most likely be
* returned as Athens, Greece
.
*
* If you set the language
parameter to el
, for Greek, then the result found will
* more likely be returned as Αθήνα, Ελλάδα
.
*
* If the data provider does not have a value for Greek, the result will be in a language that the provider * does support. */ public String getLanguage() { return this.language; } /** *
* The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, en
for English.
*
* This setting affects the languages used in the results. If no language is specified, or not supported for a * particular result, the partner automatically chooses a language for the result. *
*
* For an example, we'll use the Greek language. You search for Athens, Gr
to get suggestions with the
* language
parameter set to en
. The results found will most likely be returned as
* Athens, Greece
.
*
* If you set the language
parameter to el
, for Greek, then the result found will more
* likely be returned as Αθήνα, Ελλάδα
.
*
* If the data provider does not have a value for Greek, the result will be in a language that the provider does * support. *
* * @param language * The preferred language used to return results. The value must be a valid BCP 47 language tag, for example,en
for
* English.
* * This setting affects the languages used in the results. If no language is specified, or not supported for * a particular result, the partner automatically chooses a language for the result. *
*
* For an example, we'll use the Greek language. You search for Athens, Gr
to get suggestions
* with the language
parameter set to en
. The results found will most likely be
* returned as Athens, Greece
.
*
* If you set the language
parameter to el
, for Greek, then the result found will
* more likely be returned as Αθήνα, Ελλάδα
.
*
* If the data provider does not have a value for Greek, the result will be in a language that the provider * does support. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchPlaceIndexForSuggestionsRequest withLanguage(String language) { setLanguage(language); return this; } /** *
* An optional parameter. The maximum number of results returned per request. *
*
* The default: 5
*
* The default: 5
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* An optional parameter. The maximum number of results returned per request. *
*
* The default: 5
*
* The default: 5
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* An optional parameter. The maximum number of results returned per request. *
*
* The default: 5
*
* The default: 5
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchPlaceIndexForSuggestionsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The free-form partial text to use to generate place suggestions. For example, eiffel tow
.
*
eiffel tow
.
*/
public void setText(String text) {
this.text = text;
}
/**
*
* The free-form partial text to use to generate place suggestions. For example, eiffel tow
.
*
eiffel tow
.
*/
public String getText() {
return this.text;
}
/**
*
* The free-form partial text to use to generate place suggestions. For example, eiffel tow
.
*
eiffel tow
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchPlaceIndexForSuggestionsRequest withText(String text) {
setText(text);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getBiasPosition() != null)
sb.append("BiasPosition: ").append("***Sensitive Data Redacted***").append(",");
if (getFilterBBox() != null)
sb.append("FilterBBox: ").append("***Sensitive Data Redacted***").append(",");
if (getFilterCategories() != null)
sb.append("FilterCategories: ").append(getFilterCategories()).append(",");
if (getFilterCountries() != null)
sb.append("FilterCountries: ").append(getFilterCountries()).append(",");
if (getIndexName() != null)
sb.append("IndexName: ").append(getIndexName()).append(",");
if (getKey() != null)
sb.append("Key: ").append("***Sensitive Data Redacted***").append(",");
if (getLanguage() != null)
sb.append("Language: ").append(getLanguage()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getText() != null)
sb.append("Text: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SearchPlaceIndexForSuggestionsRequest == false)
return false;
SearchPlaceIndexForSuggestionsRequest other = (SearchPlaceIndexForSuggestionsRequest) obj;
if (other.getBiasPosition() == null ^ this.getBiasPosition() == null)
return false;
if (other.getBiasPosition() != null && other.getBiasPosition().equals(this.getBiasPosition()) == false)
return false;
if (other.getFilterBBox() == null ^ this.getFilterBBox() == null)
return false;
if (other.getFilterBBox() != null && other.getFilterBBox().equals(this.getFilterBBox()) == false)
return false;
if (other.getFilterCategories() == null ^ this.getFilterCategories() == null)
return false;
if (other.getFilterCategories() != null && other.getFilterCategories().equals(this.getFilterCategories()) == false)
return false;
if (other.getFilterCountries() == null ^ this.getFilterCountries() == null)
return false;
if (other.getFilterCountries() != null && other.getFilterCountries().equals(this.getFilterCountries()) == false)
return false;
if (other.getIndexName() == null ^ this.getIndexName() == null)
return false;
if (other.getIndexName() != null && other.getIndexName().equals(this.getIndexName()) == false)
return false;
if (other.getKey() == null ^ this.getKey() == null)
return false;
if (other.getKey() != null && other.getKey().equals(this.getKey()) == false)
return false;
if (other.getLanguage() == null ^ this.getLanguage() == null)
return false;
if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false)
return false;
if (other.getMaxResults() == null ^ this.getMaxResults() == null)
return false;
if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false)
return false;
if (other.getText() == null ^ this.getText() == null)
return false;
if (other.getText() != null && other.getText().equals(this.getText()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBiasPosition() == null) ? 0 : getBiasPosition().hashCode());
hashCode = prime * hashCode + ((getFilterBBox() == null) ? 0 : getFilterBBox().hashCode());
hashCode = prime * hashCode + ((getFilterCategories() == null) ? 0 : getFilterCategories().hashCode());
hashCode = prime * hashCode + ((getFilterCountries() == null) ? 0 : getFilterCountries().hashCode());
hashCode = prime * hashCode + ((getIndexName() == null) ? 0 : getIndexName().hashCode());
hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode());
hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode());
return hashCode;
}
@Override
public SearchPlaceIndexForSuggestionsRequest clone() {
return (SearchPlaceIndexForSuggestionsRequest) super.clone();
}
}