AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutocompleteRequest.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/geo-places/GeoPlacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/geo-places/model/AutocompleteFilter.h>
12#include <aws/geo-places/model/PostalCodeMode.h>
13#include <aws/geo-places/model/AutocompleteIntendedUse.h>
14#include <aws/geo-places/model/AutocompleteAdditionalFeature.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Http
20{
21 class URI;
22} //namespace Http
23namespace GeoPlaces
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_GEOPLACES_API AutocompleteRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "Autocomplete"; }
40
41 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
42
43 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
51 inline const Aws::String& GetQueryText() const{ return m_queryText; }
52 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
53 inline void SetQueryText(const Aws::String& value) { m_queryTextHasBeenSet = true; m_queryText = value; }
54 inline void SetQueryText(Aws::String&& value) { m_queryTextHasBeenSet = true; m_queryText = std::move(value); }
55 inline void SetQueryText(const char* value) { m_queryTextHasBeenSet = true; m_queryText.assign(value); }
56 inline AutocompleteRequest& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;}
57 inline AutocompleteRequest& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;}
58 inline AutocompleteRequest& WithQueryText(const char* value) { SetQueryText(value); return *this;}
60
62
65 inline int GetMaxResults() const{ return m_maxResults; }
66 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
67 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
68 inline AutocompleteRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
70
72
79 inline const Aws::Vector<double>& GetBiasPosition() const{ return m_biasPosition; }
80 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
81 inline void SetBiasPosition(const Aws::Vector<double>& value) { m_biasPositionHasBeenSet = true; m_biasPosition = value; }
82 inline void SetBiasPosition(Aws::Vector<double>&& value) { m_biasPositionHasBeenSet = true; m_biasPosition = std::move(value); }
83 inline AutocompleteRequest& WithBiasPosition(const Aws::Vector<double>& value) { SetBiasPosition(value); return *this;}
84 inline AutocompleteRequest& WithBiasPosition(Aws::Vector<double>&& value) { SetBiasPosition(std::move(value)); return *this;}
85 inline AutocompleteRequest& AddBiasPosition(double value) { m_biasPositionHasBeenSet = true; m_biasPosition.push_back(value); return *this; }
87
89
93 inline const AutocompleteFilter& GetFilter() const{ return m_filter; }
94 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
95 inline void SetFilter(const AutocompleteFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
96 inline void SetFilter(AutocompleteFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
97 inline AutocompleteRequest& WithFilter(const AutocompleteFilter& value) { SetFilter(value); return *this;}
98 inline AutocompleteRequest& WithFilter(AutocompleteFilter&& value) { SetFilter(std::move(value)); return *this;}
100
102
109 inline const PostalCodeMode& GetPostalCodeMode() const{ return m_postalCodeMode; }
110 inline bool PostalCodeModeHasBeenSet() const { return m_postalCodeModeHasBeenSet; }
111 inline void SetPostalCodeMode(const PostalCodeMode& value) { m_postalCodeModeHasBeenSet = true; m_postalCodeMode = value; }
112 inline void SetPostalCodeMode(PostalCodeMode&& value) { m_postalCodeModeHasBeenSet = true; m_postalCodeMode = std::move(value); }
113 inline AutocompleteRequest& WithPostalCodeMode(const PostalCodeMode& value) { SetPostalCodeMode(value); return *this;}
114 inline AutocompleteRequest& WithPostalCodeMode(PostalCodeMode&& value) { SetPostalCodeMode(std::move(value)); return *this;}
116
118
122 inline const Aws::Vector<AutocompleteAdditionalFeature>& GetAdditionalFeatures() const{ return m_additionalFeatures; }
123 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
124 inline void SetAdditionalFeatures(const Aws::Vector<AutocompleteAdditionalFeature>& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = value; }
125 inline void SetAdditionalFeatures(Aws::Vector<AutocompleteAdditionalFeature>&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::move(value); }
128 inline AutocompleteRequest& AddAdditionalFeatures(const AutocompleteAdditionalFeature& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
129 inline AutocompleteRequest& AddAdditionalFeatures(AutocompleteAdditionalFeature&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(std::move(value)); return *this; }
131
133
139 inline const Aws::String& GetLanguage() const{ return m_language; }
140 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
141 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
142 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
143 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
144 inline AutocompleteRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
145 inline AutocompleteRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
146 inline AutocompleteRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
148
150
155 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
156 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
157 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
158 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
159 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
160 inline AutocompleteRequest& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
161 inline AutocompleteRequest& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
162 inline AutocompleteRequest& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
164
166
170 inline const AutocompleteIntendedUse& GetIntendedUse() const{ return m_intendedUse; }
171 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
172 inline void SetIntendedUse(const AutocompleteIntendedUse& value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
173 inline void SetIntendedUse(AutocompleteIntendedUse&& value) { m_intendedUseHasBeenSet = true; m_intendedUse = std::move(value); }
174 inline AutocompleteRequest& WithIntendedUse(const AutocompleteIntendedUse& value) { SetIntendedUse(value); return *this;}
175 inline AutocompleteRequest& WithIntendedUse(AutocompleteIntendedUse&& value) { SetIntendedUse(std::move(value)); return *this;}
177
179
183 inline const Aws::String& GetKey() const{ return m_key; }
184 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
185 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
186 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
187 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
188 inline AutocompleteRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
189 inline AutocompleteRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
190 inline AutocompleteRequest& WithKey(const char* value) { SetKey(value); return *this;}
192 private:
193
194 Aws::String m_queryText;
195 bool m_queryTextHasBeenSet = false;
196
197 int m_maxResults;
198 bool m_maxResultsHasBeenSet = false;
199
200 Aws::Vector<double> m_biasPosition;
201 bool m_biasPositionHasBeenSet = false;
202
203 AutocompleteFilter m_filter;
204 bool m_filterHasBeenSet = false;
205
206 PostalCodeMode m_postalCodeMode;
207 bool m_postalCodeModeHasBeenSet = false;
208
210 bool m_additionalFeaturesHasBeenSet = false;
211
212 Aws::String m_language;
213 bool m_languageHasBeenSet = false;
214
215 Aws::String m_politicalView;
216 bool m_politicalViewHasBeenSet = false;
217
218 AutocompleteIntendedUse m_intendedUse;
219 bool m_intendedUseHasBeenSet = false;
220
221 Aws::String m_key;
222 bool m_keyHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace GeoPlaces
227} // namespace Aws
AutocompleteRequest & AddAdditionalFeatures(const AutocompleteAdditionalFeature &value)
AutocompleteRequest & WithLanguage(Aws::String &&value)
AutocompleteRequest & WithIntendedUse(AutocompleteIntendedUse &&value)
AutocompleteRequest & WithQueryText(Aws::String &&value)
AutocompleteRequest & WithAdditionalFeatures(const Aws::Vector< AutocompleteAdditionalFeature > &value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetAdditionalFeatures(const Aws::Vector< AutocompleteAdditionalFeature > &value)
void SetFilter(AutocompleteFilter &&value)
AutocompleteRequest & WithQueryText(const Aws::String &value)
AutocompleteRequest & AddBiasPosition(double value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
void SetPoliticalView(const Aws::String &value)
void SetFilter(const AutocompleteFilter &value)
AutocompleteRequest & WithLanguage(const char *value)
AutocompleteRequest & WithPoliticalView(Aws::String &&value)
AutocompleteRequest & WithMaxResults(int value)
void SetIntendedUse(AutocompleteIntendedUse &&value)
AutocompleteRequest & WithBiasPosition(Aws::Vector< double > &&value)
AutocompleteRequest & AddAdditionalFeatures(AutocompleteAdditionalFeature &&value)
AutocompleteRequest & WithKey(const char *value)
void SetQueryText(const Aws::String &value)
AutocompleteRequest & WithPostalCodeMode(const PostalCodeMode &value)
AutocompleteRequest & WithIntendedUse(const AutocompleteIntendedUse &value)
AutocompleteRequest & WithBiasPosition(const Aws::Vector< double > &value)
const Aws::Vector< AutocompleteAdditionalFeature > & GetAdditionalFeatures() const
AutocompleteRequest & WithLanguage(const Aws::String &value)
AutocompleteRequest & WithPoliticalView(const char *value)
void SetBiasPosition(const Aws::Vector< double > &value)
AutocompleteRequest & WithFilter(const AutocompleteFilter &value)
const AutocompleteIntendedUse & GetIntendedUse() const
AutocompleteRequest & WithKey(const Aws::String &value)
const Aws::Vector< double > & GetBiasPosition() const
AutocompleteRequest & WithQueryText(const char *value)
void SetIntendedUse(const AutocompleteIntendedUse &value)
AutocompleteRequest & WithAdditionalFeatures(Aws::Vector< AutocompleteAdditionalFeature > &&value)
const PostalCodeMode & GetPostalCodeMode() const
const AutocompleteFilter & GetFilter() const
AutocompleteRequest & WithFilter(AutocompleteFilter &&value)
virtual const char * GetServiceRequestName() const override
AutocompleteRequest & WithPostalCodeMode(PostalCodeMode &&value)
void SetAdditionalFeatures(Aws::Vector< AutocompleteAdditionalFeature > &&value)
void SetPostalCodeMode(const PostalCodeMode &value)
AutocompleteRequest & WithPoliticalView(const Aws::String &value)
void SetBiasPosition(Aws::Vector< double > &&value)
AutocompleteRequest & WithKey(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector