AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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
63 inline const Aws::Vector<GetPlaceAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
64 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
65 template <typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
66 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
67 m_additionalFeaturesHasBeenSet = true;
68 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
69 }
70 template <typename AdditionalFeaturesT = Aws::Vector<GetPlaceAdditionalFeature>>
71 GetPlaceRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
72 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
73 return *this;
74 }
76 m_additionalFeaturesHasBeenSet = true;
77 m_additionalFeatures.push_back(value);
78 return *this;
79 }
81
83
89 inline const Aws::String& GetLanguage() const { return m_language; }
90 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
91 template <typename LanguageT = Aws::String>
92 void SetLanguage(LanguageT&& value) {
93 m_languageHasBeenSet = true;
94 m_language = std::forward<LanguageT>(value);
95 }
96 template <typename LanguageT = Aws::String>
97 GetPlaceRequest& WithLanguage(LanguageT&& value) {
98 SetLanguage(std::forward<LanguageT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
110 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
111 template <typename PoliticalViewT = Aws::String>
112 void SetPoliticalView(PoliticalViewT&& value) {
113 m_politicalViewHasBeenSet = true;
114 m_politicalView = std::forward<PoliticalViewT>(value);
115 }
116 template <typename PoliticalViewT = Aws::String>
117 GetPlaceRequest& WithPoliticalView(PoliticalViewT&& value) {
118 SetPoliticalView(std::forward<PoliticalViewT>(value));
119 return *this;
120 }
122
124
133 inline GetPlaceIntendedUse GetIntendedUse() const { return m_intendedUse; }
134 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
136 m_intendedUseHasBeenSet = true;
137 m_intendedUse = value;
138 }
140 SetIntendedUse(value);
141 return *this;
142 }
144
146
150 inline const Aws::String& GetKey() const { return m_key; }
151 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
152 template <typename KeyT = Aws::String>
153 void SetKey(KeyT&& value) {
154 m_keyHasBeenSet = true;
155 m_key = std::forward<KeyT>(value);
156 }
157 template <typename KeyT = Aws::String>
158 GetPlaceRequest& WithKey(KeyT&& value) {
159 SetKey(std::forward<KeyT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_placeId;
165 bool m_placeIdHasBeenSet = false;
166
167 Aws::Vector<GetPlaceAdditionalFeature> m_additionalFeatures;
168 bool m_additionalFeaturesHasBeenSet = false;
169
170 Aws::String m_language;
171 bool m_languageHasBeenSet = false;
172
173 Aws::String m_politicalView;
174 bool m_politicalViewHasBeenSet = false;
175
177 bool m_intendedUseHasBeenSet = false;
178
179 Aws::String m_key;
180 bool m_keyHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace GeoPlaces
185} // 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