AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/GetPlaceIntendedUse.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace GeoPlaces {
21namespace Model {
22
26 public:
27 AWS_GEOPLACES_API GetPlaceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetPlace"; }
34
35 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
36
37 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
44 inline const Aws::String& GetPlaceId() const { return m_placeId; }
45 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
46 template <typename PlaceIdT = Aws::String>
47 void SetPlaceId(PlaceIdT&& value) {
48 m_placeIdHasBeenSet = true;
49 m_placeId = std::forward<PlaceIdT>(value);
50 }
51 template <typename PlaceIdT = Aws::String>
52 GetPlaceRequest& WithPlaceId(PlaceIdT&& value) {
53 SetPlaceId(std::forward<PlaceIdT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::Vector<GetPlaceAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
67 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
68 template <typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
69 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
70 m_additionalFeaturesHasBeenSet = true;
71 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
72 }
73 template <typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
74 GetPlaceRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
75 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
76 return *this;
77 }
79 m_additionalFeaturesHasBeenSet = true;
80 m_additionalFeatures.push_back(value);
81 return *this;
82 }
84
86
96 inline const Aws::String& GetLanguage() const { return m_language; }
97 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
98 template <typename LanguageT = Aws::String>
99 void SetLanguage(LanguageT&& value) {
100 m_languageHasBeenSet = true;
101 m_language = std::forward<LanguageT>(value);
102 }
103 template <typename LanguageT = Aws::String>
104 GetPlaceRequest& WithLanguage(LanguageT&& value) {
105 SetLanguage(std::forward<LanguageT>(value));
106 return *this;
107 }
109
111
120 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
121 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
122 template <typename PoliticalViewT = Aws::String>
123 void SetPoliticalView(PoliticalViewT&& value) {
124 m_politicalViewHasBeenSet = true;
125 m_politicalView = std::forward<PoliticalViewT>(value);
126 }
127 template <typename PoliticalViewT = Aws::String>
128 GetPlaceRequest& WithPoliticalView(PoliticalViewT&& value) {
129 SetPoliticalView(std::forward<PoliticalViewT>(value));
130 return *this;
131 }
133
135
147 inline GetPlaceIntendedUse GetIntendedUse() const { return m_intendedUse; }
148 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
150 m_intendedUseHasBeenSet = true;
151 m_intendedUse = value;
152 }
154 SetIntendedUse(value);
155 return *this;
156 }
158
160
164 inline const Aws::String& GetKey() const { return m_key; }
165 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
166 template <typename KeyT = Aws::String>
167 void SetKey(KeyT&& value) {
168 m_keyHasBeenSet = true;
169 m_key = std::forward<KeyT>(value);
170 }
171 template <typename KeyT = Aws::String>
172 GetPlaceRequest& WithKey(KeyT&& value) {
173 SetKey(std::forward<KeyT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_placeId;
179
180 Aws::Vector<GetPlaceAdditionalFeature> m_additionalFeatures;
181
182 Aws::String m_language;
183
184 Aws::String m_politicalView;
185
187
188 Aws::String m_key;
189 bool m_placeIdHasBeenSet = false;
190 bool m_additionalFeaturesHasBeenSet = false;
191 bool m_languageHasBeenSet = false;
192 bool m_politicalViewHasBeenSet = false;
193 bool m_intendedUseHasBeenSet = false;
194 bool m_keyHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace GeoPlaces
199} // namespace Aws
const Aws::String & GetPlaceId() const
GetPlaceRequest & AddAdditionalFeatures(GetPlaceAdditionalFeature value)
void SetIntendedUse(GetPlaceIntendedUse 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)
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