AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeocodeRequest.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/geo-places/model/GeocodeQueryComponents.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/geo-places/model/GeocodeFilter.h>
13#include <aws/geo-places/model/GeocodeIntendedUse.h>
14#include <aws/geo-places/model/GeocodeAdditionalFeature.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 GeocodeRequest();
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 "Geocode"; }
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 GeocodeRequest& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;}
57 inline GeocodeRequest& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;}
58 inline GeocodeRequest& WithQueryText(const char* value) { SetQueryText(value); return *this;}
60
62
63 inline const GeocodeQueryComponents& GetQueryComponents() const{ return m_queryComponents; }
64 inline bool QueryComponentsHasBeenSet() const { return m_queryComponentsHasBeenSet; }
65 inline void SetQueryComponents(const GeocodeQueryComponents& value) { m_queryComponentsHasBeenSet = true; m_queryComponents = value; }
66 inline void SetQueryComponents(GeocodeQueryComponents&& value) { m_queryComponentsHasBeenSet = true; m_queryComponents = std::move(value); }
67 inline GeocodeRequest& WithQueryComponents(const GeocodeQueryComponents& value) { SetQueryComponents(value); return *this;}
68 inline GeocodeRequest& WithQueryComponents(GeocodeQueryComponents&& value) { SetQueryComponents(std::move(value)); return *this;}
70
72
75 inline int GetMaxResults() const{ return m_maxResults; }
76 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
77 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
78 inline GeocodeRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
80
82
89 inline const Aws::Vector<double>& GetBiasPosition() const{ return m_biasPosition; }
90 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
91 inline void SetBiasPosition(const Aws::Vector<double>& value) { m_biasPositionHasBeenSet = true; m_biasPosition = value; }
92 inline void SetBiasPosition(Aws::Vector<double>&& value) { m_biasPositionHasBeenSet = true; m_biasPosition = std::move(value); }
93 inline GeocodeRequest& WithBiasPosition(const Aws::Vector<double>& value) { SetBiasPosition(value); return *this;}
94 inline GeocodeRequest& WithBiasPosition(Aws::Vector<double>&& value) { SetBiasPosition(std::move(value)); return *this;}
95 inline GeocodeRequest& AddBiasPosition(double value) { m_biasPositionHasBeenSet = true; m_biasPosition.push_back(value); return *this; }
97
99
103 inline const GeocodeFilter& GetFilter() const{ return m_filter; }
104 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
105 inline void SetFilter(const GeocodeFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
106 inline void SetFilter(GeocodeFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
107 inline GeocodeRequest& WithFilter(const GeocodeFilter& value) { SetFilter(value); return *this;}
108 inline GeocodeRequest& WithFilter(GeocodeFilter&& value) { SetFilter(std::move(value)); return *this;}
110
112
116 inline const Aws::Vector<GeocodeAdditionalFeature>& GetAdditionalFeatures() const{ return m_additionalFeatures; }
117 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
118 inline void SetAdditionalFeatures(const Aws::Vector<GeocodeAdditionalFeature>& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = value; }
119 inline void SetAdditionalFeatures(Aws::Vector<GeocodeAdditionalFeature>&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::move(value); }
122 inline GeocodeRequest& AddAdditionalFeatures(const GeocodeAdditionalFeature& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
123 inline GeocodeRequest& AddAdditionalFeatures(GeocodeAdditionalFeature&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(std::move(value)); return *this; }
125
127
133 inline const Aws::String& GetLanguage() const{ return m_language; }
134 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
135 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
136 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
137 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
138 inline GeocodeRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
139 inline GeocodeRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
140 inline GeocodeRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
142
144
149 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
150 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
151 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
152 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
153 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
154 inline GeocodeRequest& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
155 inline GeocodeRequest& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
156 inline GeocodeRequest& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
158
160
164 inline const GeocodeIntendedUse& GetIntendedUse() const{ return m_intendedUse; }
165 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
166 inline void SetIntendedUse(const GeocodeIntendedUse& value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
167 inline void SetIntendedUse(GeocodeIntendedUse&& value) { m_intendedUseHasBeenSet = true; m_intendedUse = std::move(value); }
168 inline GeocodeRequest& WithIntendedUse(const GeocodeIntendedUse& value) { SetIntendedUse(value); return *this;}
169 inline GeocodeRequest& WithIntendedUse(GeocodeIntendedUse&& value) { SetIntendedUse(std::move(value)); return *this;}
171
173
177 inline const Aws::String& GetKey() const{ return m_key; }
178 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
179 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
180 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
181 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
182 inline GeocodeRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
183 inline GeocodeRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
184 inline GeocodeRequest& WithKey(const char* value) { SetKey(value); return *this;}
186 private:
187
188 Aws::String m_queryText;
189 bool m_queryTextHasBeenSet = false;
190
191 GeocodeQueryComponents m_queryComponents;
192 bool m_queryComponentsHasBeenSet = false;
193
194 int m_maxResults;
195 bool m_maxResultsHasBeenSet = false;
196
197 Aws::Vector<double> m_biasPosition;
198 bool m_biasPositionHasBeenSet = false;
199
200 GeocodeFilter m_filter;
201 bool m_filterHasBeenSet = false;
202
203 Aws::Vector<GeocodeAdditionalFeature> m_additionalFeatures;
204 bool m_additionalFeaturesHasBeenSet = false;
205
206 Aws::String m_language;
207 bool m_languageHasBeenSet = false;
208
209 Aws::String m_politicalView;
210 bool m_politicalViewHasBeenSet = false;
211
212 GeocodeIntendedUse m_intendedUse;
213 bool m_intendedUseHasBeenSet = false;
214
215 Aws::String m_key;
216 bool m_keyHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace GeoPlaces
221} // namespace Aws
void SetPoliticalView(const char *value)
const Aws::String & GetPoliticalView() const
GeocodeRequest & WithLanguage(const char *value)
void SetIntendedUse(const GeocodeIntendedUse &value)
const Aws::String & GetKey() const
const Aws::Vector< GeocodeAdditionalFeature > & GetAdditionalFeatures() const
GeocodeRequest & WithAdditionalFeatures(Aws::Vector< GeocodeAdditionalFeature > &&value)
const GeocodeQueryComponents & GetQueryComponents() const
GeocodeRequest & WithQueryComponents(const GeocodeQueryComponents &value)
GeocodeRequest & WithQueryText(const char *value)
void SetBiasPosition(const Aws::Vector< double > &value)
void SetQueryText(const Aws::String &value)
void SetIntendedUse(GeocodeIntendedUse &&value)
GeocodeRequest & WithQueryText(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GeocodeRequest & WithBiasPosition(const Aws::Vector< double > &value)
void SetPoliticalView(const Aws::String &value)
const Aws::String & GetQueryText() const
GeocodeRequest & WithKey(const char *value)
void SetQueryText(const char *value)
GeocodeRequest & AddAdditionalFeatures(GeocodeAdditionalFeature &&value)
void SetFilter(const GeocodeFilter &value)
const Aws::Vector< double > & GetBiasPosition() const
GeocodeRequest & WithIntendedUse(GeocodeIntendedUse &&value)
void SetLanguage(const Aws::String &value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetQueryComponents(GeocodeQueryComponents &&value)
void SetAdditionalFeatures(Aws::Vector< GeocodeAdditionalFeature > &&value)
void SetQueryText(Aws::String &&value)
GeocodeRequest & WithKey(const Aws::String &value)
GeocodeRequest & WithFilter(const GeocodeFilter &value)
const GeocodeIntendedUse & GetIntendedUse() const
const GeocodeFilter & GetFilter() const
void SetPoliticalView(Aws::String &&value)
GeocodeRequest & WithAdditionalFeatures(const Aws::Vector< GeocodeAdditionalFeature > &value)
GeocodeRequest & WithIntendedUse(const GeocodeIntendedUse &value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
GeocodeRequest & WithMaxResults(int value)
GeocodeRequest & WithFilter(GeocodeFilter &&value)
GeocodeRequest & WithQueryText(Aws::String &&value)
GeocodeRequest & WithLanguage(const Aws::String &value)
void SetKey(const Aws::String &value)
GeocodeRequest & WithLanguage(Aws::String &&value)
void SetFilter(GeocodeFilter &&value)
GeocodeRequest & WithQueryComponents(GeocodeQueryComponents &&value)
GeocodeRequest & WithKey(Aws::String &&value)
void SetBiasPosition(Aws::Vector< double > &&value)
const Aws::String & GetLanguage() const
GeocodeRequest & WithPoliticalView(Aws::String &&value)
GeocodeRequest & WithPoliticalView(const Aws::String &value)
GeocodeRequest & WithPoliticalView(const char *value)
void SetQueryComponents(const GeocodeQueryComponents &value)
GeocodeRequest & AddAdditionalFeatures(const GeocodeAdditionalFeature &value)
GeocodeRequest & WithBiasPosition(Aws::Vector< double > &&value)
GeocodeRequest & AddBiasPosition(double value)
void SetLanguage(Aws::String &&value)
void SetAdditionalFeatures(const Aws::Vector< GeocodeAdditionalFeature > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector