AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename QueryPositionT = Aws::Vector<double>>
54 void SetQueryPosition(QueryPositionT&& value) { m_queryPositionHasBeenSet = true; m_queryPosition = std::forward<QueryPositionT>(value); }
55 template<typename QueryPositionT = Aws::Vector<double>>
56 SearchNearbyRequest& WithQueryPosition(QueryPositionT&& value) { SetQueryPosition(std::forward<QueryPositionT>(value)); return *this;}
57 inline SearchNearbyRequest& AddQueryPosition(double value) { m_queryPositionHasBeenSet = true; m_queryPosition.push_back(value); return *this; }
59
61
66 inline long long GetQueryRadius() const { return m_queryRadius; }
67 inline bool QueryRadiusHasBeenSet() const { return m_queryRadiusHasBeenSet; }
68 inline void SetQueryRadius(long long value) { m_queryRadiusHasBeenSet = true; m_queryRadius = value; }
69 inline SearchNearbyRequest& WithQueryRadius(long long value) { SetQueryRadius(value); return *this;}
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline SearchNearbyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
87 inline const SearchNearbyFilter& GetFilter() const { return m_filter; }
88 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
89 template<typename FilterT = SearchNearbyFilter>
90 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
91 template<typename FilterT = SearchNearbyFilter>
92 SearchNearbyRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
94
96
100 inline const Aws::Vector<SearchNearbyAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
101 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
102 template<typename AdditionalFeaturesT = Aws::Vector<SearchNearbyAdditionalFeature>>
103 void SetAdditionalFeatures(AdditionalFeaturesT&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::forward<AdditionalFeaturesT>(value); }
104 template<typename AdditionalFeaturesT = Aws::Vector<SearchNearbyAdditionalFeature>>
105 SearchNearbyRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) { SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value)); return *this;}
106 inline SearchNearbyRequest& AddAdditionalFeatures(SearchNearbyAdditionalFeature value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
108
110
116 inline const Aws::String& GetLanguage() const { return m_language; }
117 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
118 template<typename LanguageT = Aws::String>
119 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
120 template<typename LanguageT = Aws::String>
121 SearchNearbyRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
123
125
130 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
131 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
132 template<typename PoliticalViewT = Aws::String>
133 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
134 template<typename PoliticalViewT = Aws::String>
135 SearchNearbyRequest& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
137
139
148 inline SearchNearbyIntendedUse GetIntendedUse() const { return m_intendedUse; }
149 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
150 inline void SetIntendedUse(SearchNearbyIntendedUse value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
153
155
159 inline const Aws::String& GetNextToken() const { return m_nextToken; }
160 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
161 template<typename NextTokenT = Aws::String>
162 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
163 template<typename NextTokenT = Aws::String>
164 SearchNearbyRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
166
168
172 inline const Aws::String& GetKey() const { return m_key; }
173 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
174 template<typename KeyT = Aws::String>
175 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
176 template<typename KeyT = Aws::String>
177 SearchNearbyRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
179 private:
180
181 Aws::Vector<double> m_queryPosition;
182 bool m_queryPositionHasBeenSet = false;
183
184 long long m_queryRadius{0};
185 bool m_queryRadiusHasBeenSet = false;
186
187 int m_maxResults{0};
188 bool m_maxResultsHasBeenSet = false;
189
190 SearchNearbyFilter m_filter;
191 bool m_filterHasBeenSet = false;
192
194 bool m_additionalFeaturesHasBeenSet = false;
195
196 Aws::String m_language;
197 bool m_languageHasBeenSet = false;
198
199 Aws::String m_politicalView;
200 bool m_politicalViewHasBeenSet = false;
201
203 bool m_intendedUseHasBeenSet = false;
204
205 Aws::String m_nextToken;
206 bool m_nextTokenHasBeenSet = false;
207
208 Aws::String m_key;
209 bool m_keyHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace GeoPlaces
214} // namespace Aws
const SearchNearbyFilter & GetFilter() const
SearchNearbyRequest & WithQueryRadius(long long value)
SearchNearbyRequest & WithQueryPosition(QueryPositionT &&value)
const Aws::Vector< double > & GetQueryPosition() const
AWS_GEOPLACES_API Aws::String SerializePayload() const override
SearchNearbyIntendedUse GetIntendedUse() const
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
SearchNearbyRequest & AddAdditionalFeatures(SearchNearbyAdditionalFeature value)
SearchNearbyRequest & WithIntendedUse(SearchNearbyIntendedUse value)
AWS_GEOPLACES_API SearchNearbyRequest()=default
SearchNearbyRequest & WithKey(KeyT &&value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchNearbyRequest & WithLanguage(LanguageT &&value)
const Aws::Vector< SearchNearbyAdditionalFeature > & GetAdditionalFeatures() const
void SetIntendedUse(SearchNearbyIntendedUse value)
void SetQueryPosition(QueryPositionT &&value)
SearchNearbyRequest & WithFilter(FilterT &&value)
virtual const char * GetServiceRequestName() const override
SearchNearbyRequest & AddQueryPosition(double value)
SearchNearbyRequest & WithNextToken(NextTokenT &&value)
SearchNearbyRequest & WithMaxResults(int value)
SearchNearbyRequest & WithPoliticalView(PoliticalViewT &&value)
SearchNearbyRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector