AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchNearbyRequest.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/AWSVector.h>
10#include <aws/geo-places/model/SearchNearbyFilter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/geo-places/model/SearchNearbyIntendedUse.h>
13#include <aws/geo-places/model/SearchNearbyAdditionalFeature.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace GeoPlaces
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_GEOPLACES_API SearchNearbyRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "SearchNearby"; }
39
40 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
41
42 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
51 inline const Aws::Vector<double>& GetQueryPosition() const{ return m_queryPosition; }
52 inline bool QueryPositionHasBeenSet() const { return m_queryPositionHasBeenSet; }
53 inline void SetQueryPosition(const Aws::Vector<double>& value) { m_queryPositionHasBeenSet = true; m_queryPosition = value; }
54 inline void SetQueryPosition(Aws::Vector<double>&& value) { m_queryPositionHasBeenSet = true; m_queryPosition = std::move(value); }
55 inline SearchNearbyRequest& WithQueryPosition(const Aws::Vector<double>& value) { SetQueryPosition(value); return *this;}
56 inline SearchNearbyRequest& WithQueryPosition(Aws::Vector<double>&& value) { SetQueryPosition(std::move(value)); return *this;}
57 inline SearchNearbyRequest& AddQueryPosition(double value) { m_queryPositionHasBeenSet = true; m_queryPosition.push_back(value); return *this; }
59
61
65 inline long long GetQueryRadius() const{ return m_queryRadius; }
66 inline bool QueryRadiusHasBeenSet() const { return m_queryRadiusHasBeenSet; }
67 inline void SetQueryRadius(long long value) { m_queryRadiusHasBeenSet = true; m_queryRadius = value; }
68 inline SearchNearbyRequest& WithQueryRadius(long long value) { SetQueryRadius(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 SearchNearbyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
80
82
86 inline const SearchNearbyFilter& GetFilter() const{ return m_filter; }
87 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
88 inline void SetFilter(const SearchNearbyFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
89 inline void SetFilter(SearchNearbyFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
90 inline SearchNearbyRequest& WithFilter(const SearchNearbyFilter& value) { SetFilter(value); return *this;}
91 inline SearchNearbyRequest& WithFilter(SearchNearbyFilter&& value) { SetFilter(std::move(value)); return *this;}
93
95
99 inline const Aws::Vector<SearchNearbyAdditionalFeature>& GetAdditionalFeatures() const{ return m_additionalFeatures; }
100 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
101 inline void SetAdditionalFeatures(const Aws::Vector<SearchNearbyAdditionalFeature>& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = value; }
102 inline void SetAdditionalFeatures(Aws::Vector<SearchNearbyAdditionalFeature>&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::move(value); }
105 inline SearchNearbyRequest& AddAdditionalFeatures(const SearchNearbyAdditionalFeature& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
106 inline SearchNearbyRequest& AddAdditionalFeatures(SearchNearbyAdditionalFeature&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(std::move(value)); return *this; }
108
110
116 inline const Aws::String& GetLanguage() const{ return m_language; }
117 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
118 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
119 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
120 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
121 inline SearchNearbyRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
122 inline SearchNearbyRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
123 inline SearchNearbyRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
125
127
132 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
133 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
134 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
135 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
136 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
137 inline SearchNearbyRequest& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
138 inline SearchNearbyRequest& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
139 inline SearchNearbyRequest& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
141
143
147 inline const SearchNearbyIntendedUse& GetIntendedUse() const{ return m_intendedUse; }
148 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
149 inline void SetIntendedUse(const SearchNearbyIntendedUse& value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
150 inline void SetIntendedUse(SearchNearbyIntendedUse&& value) { m_intendedUseHasBeenSet = true; m_intendedUse = std::move(value); }
151 inline SearchNearbyRequest& WithIntendedUse(const SearchNearbyIntendedUse& value) { SetIntendedUse(value); return *this;}
152 inline SearchNearbyRequest& WithIntendedUse(SearchNearbyIntendedUse&& value) { SetIntendedUse(std::move(value)); return *this;}
154
156
160 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
161 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
162 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
163 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
164 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
165 inline SearchNearbyRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
166 inline SearchNearbyRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
167 inline SearchNearbyRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
169
171
175 inline const Aws::String& GetKey() const{ return m_key; }
176 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
177 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
178 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
179 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
180 inline SearchNearbyRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
181 inline SearchNearbyRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
182 inline SearchNearbyRequest& WithKey(const char* value) { SetKey(value); return *this;}
184 private:
185
186 Aws::Vector<double> m_queryPosition;
187 bool m_queryPositionHasBeenSet = false;
188
189 long long m_queryRadius;
190 bool m_queryRadiusHasBeenSet = false;
191
192 int m_maxResults;
193 bool m_maxResultsHasBeenSet = false;
194
195 SearchNearbyFilter m_filter;
196 bool m_filterHasBeenSet = false;
197
199 bool m_additionalFeaturesHasBeenSet = false;
200
201 Aws::String m_language;
202 bool m_languageHasBeenSet = false;
203
204 Aws::String m_politicalView;
205 bool m_politicalViewHasBeenSet = false;
206
207 SearchNearbyIntendedUse m_intendedUse;
208 bool m_intendedUseHasBeenSet = false;
209
210 Aws::String m_nextToken;
211 bool m_nextTokenHasBeenSet = false;
212
213 Aws::String m_key;
214 bool m_keyHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace GeoPlaces
219} // namespace Aws
const SearchNearbyFilter & GetFilter() const
SearchNearbyRequest & WithAdditionalFeatures(const Aws::Vector< SearchNearbyAdditionalFeature > &value)
SearchNearbyRequest & WithQueryRadius(long long value)
SearchNearbyRequest & WithLanguage(const Aws::String &value)
const Aws::Vector< double > & GetQueryPosition() const
AWS_GEOPLACES_API Aws::String SerializePayload() const override
void SetIntendedUse(SearchNearbyIntendedUse &&value)
SearchNearbyRequest & WithLanguage(const char *value)
void SetQueryPosition(Aws::Vector< double > &&value)
SearchNearbyRequest & WithKey(const Aws::String &value)
SearchNearbyRequest & WithQueryPosition(const Aws::Vector< double > &value)
SearchNearbyRequest & WithQueryPosition(Aws::Vector< double > &&value)
void SetAdditionalFeatures(const Aws::Vector< SearchNearbyAdditionalFeature > &value)
void SetAdditionalFeatures(Aws::Vector< SearchNearbyAdditionalFeature > &&value)
void SetQueryPosition(const Aws::Vector< double > &value)
SearchNearbyRequest & WithKey(Aws::String &&value)
SearchNearbyRequest & AddAdditionalFeatures(const SearchNearbyAdditionalFeature &value)
const SearchNearbyIntendedUse & GetIntendedUse() const
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchNearbyRequest & AddAdditionalFeatures(SearchNearbyAdditionalFeature &&value)
void SetNextToken(const Aws::String &value)
SearchNearbyRequest & WithNextToken(const Aws::String &value)
SearchNearbyRequest & WithNextToken(const char *value)
const Aws::Vector< SearchNearbyAdditionalFeature > & GetAdditionalFeatures() const
void SetFilter(SearchNearbyFilter &&value)
SearchNearbyRequest & WithFilter(const SearchNearbyFilter &value)
SearchNearbyRequest & WithIntendedUse(SearchNearbyIntendedUse &&value)
SearchNearbyRequest & WithPoliticalView(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
SearchNearbyRequest & WithPoliticalView(const Aws::String &value)
SearchNearbyRequest & WithLanguage(Aws::String &&value)
SearchNearbyRequest & AddQueryPosition(double value)
SearchNearbyRequest & WithPoliticalView(const char *value)
SearchNearbyRequest & WithMaxResults(int value)
void SetPoliticalView(const Aws::String &value)
SearchNearbyRequest & WithAdditionalFeatures(Aws::Vector< SearchNearbyAdditionalFeature > &&value)
void SetIntendedUse(const SearchNearbyIntendedUse &value)
SearchNearbyRequest & WithFilter(SearchNearbyFilter &&value)
SearchNearbyRequest & WithIntendedUse(const SearchNearbyIntendedUse &value)
SearchNearbyRequest & WithKey(const char *value)
SearchNearbyRequest & WithNextToken(Aws::String &&value)
void SetFilter(const SearchNearbyFilter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector