AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
GetPlaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/GeoPlacesRequest.h>
10#include <aws/geo-places/GeoPlaces_EXPORTS.h>
11#include <aws/geo-places/model/GetPlaceAdditionalFeature.h>
12#include <aws/geo-places/model/GetPlaceAddressNamesMode.h>
13#include <aws/geo-places/model/GetPlaceIntendedUse.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace GeoPlaces {
22namespace Model {
23
27 public:
28 AWS_GEOPLACES_API GetPlaceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetPlace"; }
35
36 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
37
38 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
45 inline const Aws::String& GetPlaceId() const { return m_placeId; }
46 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
47 template <typename PlaceIdT = Aws::String>
48 void SetPlaceId(PlaceIdT&& value) {
49 m_placeIdHasBeenSet = true;
50 m_placeId = std::forward<PlaceIdT>(value);
51 }
52 template <typename PlaceIdT = Aws::String>
53 GetPlaceRequest& WithPlaceId(PlaceIdT&& value) {
54 SetPlaceId(std::forward<PlaceIdT>(value));
55 return *this;
56 }
58
60
67 inline const Aws::Vector<GetPlaceAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
68 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
69 template <typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
70 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
71 m_additionalFeaturesHasBeenSet = true;
72 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
73 }
74 template <typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
75 GetPlaceRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
76 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
77 return *this;
78 }
80 m_additionalFeaturesHasBeenSet = true;
81 m_additionalFeatures.push_back(value);
82 return *this;
83 }
85
87
98 inline const Aws::String& GetLanguage() const { return m_language; }
99 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
100 template <typename LanguageT = Aws::String>
101 void SetLanguage(LanguageT&& value) {
102 m_languageHasBeenSet = true;
103 m_language = std::forward<LanguageT>(value);
104 }
105 template <typename LanguageT = Aws::String>
106 GetPlaceRequest& WithLanguage(LanguageT&& value) {
107 SetLanguage(std::forward<LanguageT>(value));
108 return *this;
109 }
111
113
122 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
123 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
124 template <typename PoliticalViewT = Aws::String>
125 void SetPoliticalView(PoliticalViewT&& value) {
126 m_politicalViewHasBeenSet = true;
127 m_politicalView = std::forward<PoliticalViewT>(value);
128 }
129 template <typename PoliticalViewT = Aws::String>
130 GetPlaceRequest& WithPoliticalView(PoliticalViewT&& value) {
131 SetPoliticalView(std::forward<PoliticalViewT>(value));
132 return *this;
133 }
135
137
149 inline GetPlaceIntendedUse GetIntendedUse() const { return m_intendedUse; }
150 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
152 m_intendedUseHasBeenSet = true;
153 m_intendedUse = value;
154 }
156 SetIntendedUse(value);
157 return *this;
158 }
160
162
166 inline const Aws::String& GetKey() const { return m_key; }
167 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
168 template <typename KeyT = Aws::String>
169 void SetKey(KeyT&& value) {
170 m_keyHasBeenSet = true;
171 m_key = std::forward<KeyT>(value);
172 }
173 template <typename KeyT = Aws::String>
174 GetPlaceRequest& WithKey(KeyT&& value) {
175 SetKey(std::forward<KeyT>(value));
176 return *this;
177 }
179
181
187 inline GetPlaceAddressNamesMode GetAddressNamesMode() const { return m_addressNamesMode; }
188 inline bool AddressNamesModeHasBeenSet() const { return m_addressNamesModeHasBeenSet; }
190 m_addressNamesModeHasBeenSet = true;
191 m_addressNamesMode = value;
192 }
194 SetAddressNamesMode(value);
195 return *this;
196 }
198 private:
199 Aws::String m_placeId;
200
201 Aws::Vector<GetPlaceAdditionalFeature> m_additionalFeatures;
202
203 Aws::String m_language;
204
205 Aws::String m_politicalView;
206
208
209 Aws::String m_key;
210
212 bool m_placeIdHasBeenSet = false;
213 bool m_additionalFeaturesHasBeenSet = false;
214 bool m_languageHasBeenSet = false;
215 bool m_politicalViewHasBeenSet = false;
216 bool m_intendedUseHasBeenSet = false;
217 bool m_keyHasBeenSet = false;
218 bool m_addressNamesModeHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace GeoPlaces
223} // namespace Aws
const Aws::String & GetPlaceId() const
GetPlaceRequest & AddAdditionalFeatures(GetPlaceAdditionalFeature value)
GetPlaceAddressNamesMode GetAddressNamesMode() const
void SetIntendedUse(GetPlaceIntendedUse value)
GetPlaceRequest & WithAddressNamesMode(GetPlaceAddressNamesMode value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
GetPlaceRequest & WithLanguage(LanguageT &&value)
GetPlaceIntendedUse GetIntendedUse() const
GetPlaceRequest & WithIntendedUse(GetPlaceIntendedUse value)
const Aws::Vector< GetPlaceAdditionalFeature > & GetAdditionalFeatures() const
GetPlaceRequest & WithKey(KeyT &&value)
const Aws::String & GetPoliticalView() const
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetKey() const
GetPlaceRequest & WithPlaceId(PlaceIdT &&value)
GetPlaceRequest & WithPoliticalView(PoliticalViewT &&value)
void SetAddressNamesMode(GetPlaceAddressNamesMode value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetLanguage() const
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
GetPlaceRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
void SetPoliticalView(PoliticalViewT &&value)
AWS_GEOPLACES_API GetPlaceRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector