AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetStaticMapRequest.h
1
6#pragma once
7#include <aws/geo-maps/GeoMaps_EXPORTS.h>
8#include <aws/geo-maps/GeoMapsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/geo-maps/model/ColorScheme.h>
11#include <aws/geo-maps/model/LabelSize.h>
12#include <aws/geo-maps/model/MapFeatureMode.h>
13#include <aws/geo-maps/model/ScaleBarUnit.h>
14#include <aws/geo-maps/model/StaticMapStyle.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Http
20{
21 class URI;
22} //namespace Http
23namespace GeoMaps
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_GEOMAPS_API GetStaticMapRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "GetStaticMap"; }
40
41 AWS_GEOMAPS_API Aws::String SerializePayload() const override;
42
43 AWS_GEOMAPS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
52 inline const Aws::String& GetBoundingBox() const { return m_boundingBox; }
53 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
54 template<typename BoundingBoxT = Aws::String>
55 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
56 template<typename BoundingBoxT = Aws::String>
57 GetStaticMapRequest& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
59
61
68 inline const Aws::String& GetBoundedPositions() const { return m_boundedPositions; }
69 inline bool BoundedPositionsHasBeenSet() const { return m_boundedPositionsHasBeenSet; }
70 template<typename BoundedPositionsT = Aws::String>
71 void SetBoundedPositions(BoundedPositionsT&& value) { m_boundedPositionsHasBeenSet = true; m_boundedPositions = std::forward<BoundedPositionsT>(value); }
72 template<typename BoundedPositionsT = Aws::String>
73 GetStaticMapRequest& WithBoundedPositions(BoundedPositionsT&& value) { SetBoundedPositions(std::forward<BoundedPositionsT>(value)); return *this;}
75
77
83 inline const Aws::String& GetCenter() const { return m_center; }
84 inline bool CenterHasBeenSet() const { return m_centerHasBeenSet; }
85 template<typename CenterT = Aws::String>
86 void SetCenter(CenterT&& value) { m_centerHasBeenSet = true; m_center = std::forward<CenterT>(value); }
87 template<typename CenterT = Aws::String>
88 GetStaticMapRequest& WithCenter(CenterT&& value) { SetCenter(std::forward<CenterT>(value)); return *this;}
90
92
98 inline ColorScheme GetColorScheme() const { return m_colorScheme; }
99 inline bool ColorSchemeHasBeenSet() const { return m_colorSchemeHasBeenSet; }
100 inline void SetColorScheme(ColorScheme value) { m_colorSchemeHasBeenSet = true; m_colorScheme = value; }
101 inline GetStaticMapRequest& WithColorScheme(ColorScheme value) { SetColorScheme(value); return *this;}
103
105
113 inline const Aws::String& GetCompactOverlay() const { return m_compactOverlay; }
114 inline bool CompactOverlayHasBeenSet() const { return m_compactOverlayHasBeenSet; }
115 template<typename CompactOverlayT = Aws::String>
116 void SetCompactOverlay(CompactOverlayT&& value) { m_compactOverlayHasBeenSet = true; m_compactOverlay = std::forward<CompactOverlayT>(value); }
117 template<typename CompactOverlayT = Aws::String>
118 GetStaticMapRequest& WithCompactOverlay(CompactOverlayT&& value) { SetCompactOverlay(std::forward<CompactOverlayT>(value)); return *this;}
120
122
126 inline bool GetCropLabels() const { return m_cropLabels; }
127 inline bool CropLabelsHasBeenSet() const { return m_cropLabelsHasBeenSet; }
128 inline void SetCropLabels(bool value) { m_cropLabelsHasBeenSet = true; m_cropLabels = value; }
129 inline GetStaticMapRequest& WithCropLabels(bool value) { SetCropLabels(value); return *this;}
131
133
141 inline const Aws::String& GetGeoJsonOverlay() const { return m_geoJsonOverlay; }
142 inline bool GeoJsonOverlayHasBeenSet() const { return m_geoJsonOverlayHasBeenSet; }
143 template<typename GeoJsonOverlayT = Aws::String>
144 void SetGeoJsonOverlay(GeoJsonOverlayT&& value) { m_geoJsonOverlayHasBeenSet = true; m_geoJsonOverlay = std::forward<GeoJsonOverlayT>(value); }
145 template<typename GeoJsonOverlayT = Aws::String>
146 GetStaticMapRequest& WithGeoJsonOverlay(GeoJsonOverlayT&& value) { SetGeoJsonOverlay(std::forward<GeoJsonOverlayT>(value)); return *this;}
148
150
153 inline int GetHeight() const { return m_height; }
154 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
155 inline void SetHeight(int value) { m_heightHasBeenSet = true; m_height = value; }
156 inline GetStaticMapRequest& WithHeight(int value) { SetHeight(value); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
168 template<typename KeyT = Aws::String>
169 GetStaticMapRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
171
173
177 inline LabelSize GetLabelSize() const { return m_labelSize; }
178 inline bool LabelSizeHasBeenSet() const { return m_labelSizeHasBeenSet; }
179 inline void SetLabelSize(LabelSize value) { m_labelSizeHasBeenSet = true; m_labelSize = value; }
180 inline GetStaticMapRequest& WithLabelSize(LabelSize value) { SetLabelSize(value); return *this;}
182
184
224 inline const Aws::String& GetLanguage() const { return m_language; }
225 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
226 template<typename LanguageT = Aws::String>
227 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
228 template<typename LanguageT = Aws::String>
229 GetStaticMapRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
231
233
239 inline int GetPadding() const { return m_padding; }
240 inline bool PaddingHasBeenSet() const { return m_paddingHasBeenSet; }
241 inline void SetPadding(int value) { m_paddingHasBeenSet = true; m_padding = value; }
242 inline GetStaticMapRequest& WithPadding(int value) { SetPadding(value); return *this;}
244
246
266 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
267 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
268 template<typename PoliticalViewT = Aws::String>
269 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
270 template<typename PoliticalViewT = Aws::String>
271 GetStaticMapRequest& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
273
275
279 inline MapFeatureMode GetPointsOfInterests() const { return m_pointsOfInterests; }
280 inline bool PointsOfInterestsHasBeenSet() const { return m_pointsOfInterestsHasBeenSet; }
281 inline void SetPointsOfInterests(MapFeatureMode value) { m_pointsOfInterestsHasBeenSet = true; m_pointsOfInterests = value; }
284
286
292 inline long long GetRadius() const { return m_radius; }
293 inline bool RadiusHasBeenSet() const { return m_radiusHasBeenSet; }
294 inline void SetRadius(long long value) { m_radiusHasBeenSet = true; m_radius = value; }
295 inline GetStaticMapRequest& WithRadius(long long value) { SetRadius(value); return *this;}
297
299
304 inline const Aws::String& GetFileName() const { return m_fileName; }
305 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
306 template<typename FileNameT = Aws::String>
307 void SetFileName(FileNameT&& value) { m_fileNameHasBeenSet = true; m_fileName = std::forward<FileNameT>(value); }
308 template<typename FileNameT = Aws::String>
309 GetStaticMapRequest& WithFileName(FileNameT&& value) { SetFileName(std::forward<FileNameT>(value)); return *this;}
311
313
318 inline ScaleBarUnit GetScaleBarUnit() const { return m_scaleBarUnit; }
319 inline bool ScaleBarUnitHasBeenSet() const { return m_scaleBarUnitHasBeenSet; }
320 inline void SetScaleBarUnit(ScaleBarUnit value) { m_scaleBarUnitHasBeenSet = true; m_scaleBarUnit = value; }
321 inline GetStaticMapRequest& WithScaleBarUnit(ScaleBarUnit value) { SetScaleBarUnit(value); return *this;}
323
325
328 inline StaticMapStyle GetStyle() const { return m_style; }
329 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
330 inline void SetStyle(StaticMapStyle value) { m_styleHasBeenSet = true; m_style = value; }
331 inline GetStaticMapRequest& WithStyle(StaticMapStyle value) { SetStyle(value); return *this;}
333
335
338 inline int GetWidth() const { return m_width; }
339 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
340 inline void SetWidth(int value) { m_widthHasBeenSet = true; m_width = value; }
341 inline GetStaticMapRequest& WithWidth(int value) { SetWidth(value); return *this;}
343
345
349 inline double GetZoom() const { return m_zoom; }
350 inline bool ZoomHasBeenSet() const { return m_zoomHasBeenSet; }
351 inline void SetZoom(double value) { m_zoomHasBeenSet = true; m_zoom = value; }
352 inline GetStaticMapRequest& WithZoom(double value) { SetZoom(value); return *this;}
354 private:
355
356 Aws::String m_boundingBox;
357 bool m_boundingBoxHasBeenSet = false;
358
359 Aws::String m_boundedPositions;
360 bool m_boundedPositionsHasBeenSet = false;
361
362 Aws::String m_center;
363 bool m_centerHasBeenSet = false;
364
365 ColorScheme m_colorScheme{ColorScheme::NOT_SET};
366 bool m_colorSchemeHasBeenSet = false;
367
368 Aws::String m_compactOverlay;
369 bool m_compactOverlayHasBeenSet = false;
370
371 bool m_cropLabels{false};
372 bool m_cropLabelsHasBeenSet = false;
373
374 Aws::String m_geoJsonOverlay;
375 bool m_geoJsonOverlayHasBeenSet = false;
376
377 int m_height{0};
378 bool m_heightHasBeenSet = false;
379
380 Aws::String m_key;
381 bool m_keyHasBeenSet = false;
382
383 LabelSize m_labelSize{LabelSize::NOT_SET};
384 bool m_labelSizeHasBeenSet = false;
385
386 Aws::String m_language;
387 bool m_languageHasBeenSet = false;
388
389 int m_padding{0};
390 bool m_paddingHasBeenSet = false;
391
392 Aws::String m_politicalView;
393 bool m_politicalViewHasBeenSet = false;
394
395 MapFeatureMode m_pointsOfInterests{MapFeatureMode::NOT_SET};
396 bool m_pointsOfInterestsHasBeenSet = false;
397
398 long long m_radius{0};
399 bool m_radiusHasBeenSet = false;
400
401 Aws::String m_fileName;
402 bool m_fileNameHasBeenSet = false;
403
404 ScaleBarUnit m_scaleBarUnit{ScaleBarUnit::NOT_SET};
405 bool m_scaleBarUnitHasBeenSet = false;
406
408 bool m_styleHasBeenSet = false;
409
410 int m_width{0};
411 bool m_widthHasBeenSet = false;
412
413 double m_zoom{0.0};
414 bool m_zoomHasBeenSet = false;
415 };
416
417} // namespace Model
418} // namespace GeoMaps
419} // namespace Aws
GetStaticMapRequest & WithCompactOverlay(CompactOverlayT &&value)
GetStaticMapRequest & WithBoundedPositions(BoundedPositionsT &&value)
GetStaticMapRequest & WithBoundingBox(BoundingBoxT &&value)
GetStaticMapRequest & WithScaleBarUnit(ScaleBarUnit value)
GetStaticMapRequest & WithStyle(StaticMapStyle value)
GetStaticMapRequest & WithCropLabels(bool value)
void SetBoundedPositions(BoundedPositionsT &&value)
void SetGeoJsonOverlay(GeoJsonOverlayT &&value)
GetStaticMapRequest & WithPoliticalView(PoliticalViewT &&value)
GetStaticMapRequest & WithWidth(int value)
const Aws::String & GetBoundedPositions() const
GetStaticMapRequest & WithCenter(CenterT &&value)
AWS_GEOMAPS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetStaticMapRequest & WithFileName(FileNameT &&value)
GetStaticMapRequest & WithLanguage(LanguageT &&value)
virtual const char * GetServiceRequestName() const override
void SetPoliticalView(PoliticalViewT &&value)
AWS_GEOMAPS_API Aws::String SerializePayload() const override
const Aws::String & GetCompactOverlay() const
GetStaticMapRequest & WithLabelSize(LabelSize value)
void SetCompactOverlay(CompactOverlayT &&value)
GetStaticMapRequest & WithHeight(int value)
GetStaticMapRequest & WithGeoJsonOverlay(GeoJsonOverlayT &&value)
AWS_GEOMAPS_API GetStaticMapRequest()=default
GetStaticMapRequest & WithKey(KeyT &&value)
GetStaticMapRequest & WithRadius(long long value)
GetStaticMapRequest & WithPointsOfInterests(MapFeatureMode value)
const Aws::String & GetGeoJsonOverlay() const
GetStaticMapRequest & WithColorScheme(ColorScheme value)
GetStaticMapRequest & WithZoom(double value)
GetStaticMapRequest & WithPadding(int value)
void SetPointsOfInterests(MapFeatureMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String