AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetStaticMapRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-maps/GeoMapsRequest.h>
9#include <aws/geo-maps/GeoMaps_EXPORTS.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
16#include <utility>
17
18namespace Aws {
19namespace Http {
20class URI;
21} // namespace Http
22namespace GeoMaps {
23namespace Model {
24
28 public:
29 AWS_GEOMAPS_API GetStaticMapRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetStaticMap"; }
36
37 AWS_GEOMAPS_API Aws::String SerializePayload() const override;
38
39 AWS_GEOMAPS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
48 inline const Aws::String& GetBoundingBox() const { return m_boundingBox; }
49 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
50 template <typename BoundingBoxT = Aws::String>
51 void SetBoundingBox(BoundingBoxT&& value) {
52 m_boundingBoxHasBeenSet = true;
53 m_boundingBox = std::forward<BoundingBoxT>(value);
54 }
55 template <typename BoundingBoxT = Aws::String>
56 GetStaticMapRequest& WithBoundingBox(BoundingBoxT&& value) {
57 SetBoundingBox(std::forward<BoundingBoxT>(value));
58 return *this;
59 }
61
63
70 inline const Aws::String& GetBoundedPositions() const { return m_boundedPositions; }
71 inline bool BoundedPositionsHasBeenSet() const { return m_boundedPositionsHasBeenSet; }
72 template <typename BoundedPositionsT = Aws::String>
73 void SetBoundedPositions(BoundedPositionsT&& value) {
74 m_boundedPositionsHasBeenSet = true;
75 m_boundedPositions = std::forward<BoundedPositionsT>(value);
76 }
77 template <typename BoundedPositionsT = Aws::String>
78 GetStaticMapRequest& WithBoundedPositions(BoundedPositionsT&& value) {
79 SetBoundedPositions(std::forward<BoundedPositionsT>(value));
80 return *this;
81 }
83
85
92 inline const Aws::String& GetCenter() const { return m_center; }
93 inline bool CenterHasBeenSet() const { return m_centerHasBeenSet; }
94 template <typename CenterT = Aws::String>
95 void SetCenter(CenterT&& value) {
96 m_centerHasBeenSet = true;
97 m_center = std::forward<CenterT>(value);
98 }
99 template <typename CenterT = Aws::String>
100 GetStaticMapRequest& WithCenter(CenterT&& value) {
101 SetCenter(std::forward<CenterT>(value));
102 return *this;
103 }
105
107
112 inline ColorScheme GetColorScheme() const { return m_colorScheme; }
113 inline bool ColorSchemeHasBeenSet() const { return m_colorSchemeHasBeenSet; }
114 inline void SetColorScheme(ColorScheme value) {
115 m_colorSchemeHasBeenSet = true;
116 m_colorScheme = value;
117 }
119 SetColorScheme(value);
120 return *this;
121 }
123
125
133 inline const Aws::String& GetCompactOverlay() const { return m_compactOverlay; }
134 inline bool CompactOverlayHasBeenSet() const { return m_compactOverlayHasBeenSet; }
135 template <typename CompactOverlayT = Aws::String>
136 void SetCompactOverlay(CompactOverlayT&& value) {
137 m_compactOverlayHasBeenSet = true;
138 m_compactOverlay = std::forward<CompactOverlayT>(value);
139 }
140 template <typename CompactOverlayT = Aws::String>
141 GetStaticMapRequest& WithCompactOverlay(CompactOverlayT&& value) {
142 SetCompactOverlay(std::forward<CompactOverlayT>(value));
143 return *this;
144 }
146
148
152 inline bool GetCropLabels() const { return m_cropLabels; }
153 inline bool CropLabelsHasBeenSet() const { return m_cropLabelsHasBeenSet; }
154 inline void SetCropLabels(bool value) {
155 m_cropLabelsHasBeenSet = true;
156 m_cropLabels = value;
157 }
159 SetCropLabels(value);
160 return *this;
161 }
163
165
173 inline const Aws::String& GetGeoJsonOverlay() const { return m_geoJsonOverlay; }
174 inline bool GeoJsonOverlayHasBeenSet() const { return m_geoJsonOverlayHasBeenSet; }
175 template <typename GeoJsonOverlayT = Aws::String>
176 void SetGeoJsonOverlay(GeoJsonOverlayT&& value) {
177 m_geoJsonOverlayHasBeenSet = true;
178 m_geoJsonOverlay = std::forward<GeoJsonOverlayT>(value);
179 }
180 template <typename GeoJsonOverlayT = Aws::String>
181 GetStaticMapRequest& WithGeoJsonOverlay(GeoJsonOverlayT&& value) {
182 SetGeoJsonOverlay(std::forward<GeoJsonOverlayT>(value));
183 return *this;
184 }
186
188
191 inline int GetHeight() const { return m_height; }
192 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
193 inline void SetHeight(int value) {
194 m_heightHasBeenSet = true;
195 m_height = value;
196 }
197 inline GetStaticMapRequest& WithHeight(int value) {
198 SetHeight(value);
199 return *this;
200 }
202
204
208 inline const Aws::String& GetKey() const { return m_key; }
209 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
210 template <typename KeyT = Aws::String>
211 void SetKey(KeyT&& value) {
212 m_keyHasBeenSet = true;
213 m_key = std::forward<KeyT>(value);
214 }
215 template <typename KeyT = Aws::String>
217 SetKey(std::forward<KeyT>(value));
218 return *this;
219 }
221
223
227 inline LabelSize GetLabelSize() const { return m_labelSize; }
228 inline bool LabelSizeHasBeenSet() const { return m_labelSizeHasBeenSet; }
229 inline void SetLabelSize(LabelSize value) {
230 m_labelSizeHasBeenSet = true;
231 m_labelSize = value;
232 }
234 SetLabelSize(value);
235 return *this;
236 }
238
240
280 inline const Aws::String& GetLanguage() const { return m_language; }
281 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
282 template <typename LanguageT = Aws::String>
283 void SetLanguage(LanguageT&& value) {
284 m_languageHasBeenSet = true;
285 m_language = std::forward<LanguageT>(value);
286 }
287 template <typename LanguageT = Aws::String>
288 GetStaticMapRequest& WithLanguage(LanguageT&& value) {
289 SetLanguage(std::forward<LanguageT>(value));
290 return *this;
291 }
293
295
301 inline int GetPadding() const { return m_padding; }
302 inline bool PaddingHasBeenSet() const { return m_paddingHasBeenSet; }
303 inline void SetPadding(int value) {
304 m_paddingHasBeenSet = true;
305 m_padding = value;
306 }
307 inline GetStaticMapRequest& WithPadding(int value) {
308 SetPadding(value);
309 return *this;
310 }
312
314
334 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
335 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
336 template <typename PoliticalViewT = Aws::String>
337 void SetPoliticalView(PoliticalViewT&& value) {
338 m_politicalViewHasBeenSet = true;
339 m_politicalView = std::forward<PoliticalViewT>(value);
340 }
341 template <typename PoliticalViewT = Aws::String>
342 GetStaticMapRequest& WithPoliticalView(PoliticalViewT&& value) {
343 SetPoliticalView(std::forward<PoliticalViewT>(value));
344 return *this;
345 }
347
349
353 inline MapFeatureMode GetPointsOfInterests() const { return m_pointsOfInterests; }
354 inline bool PointsOfInterestsHasBeenSet() const { return m_pointsOfInterestsHasBeenSet; }
356 m_pointsOfInterestsHasBeenSet = true;
357 m_pointsOfInterests = value;
358 }
361 return *this;
362 }
364
366
372 inline long long GetRadius() const { return m_radius; }
373 inline bool RadiusHasBeenSet() const { return m_radiusHasBeenSet; }
374 inline void SetRadius(long long value) {
375 m_radiusHasBeenSet = true;
376 m_radius = value;
377 }
378 inline GetStaticMapRequest& WithRadius(long long value) {
379 SetRadius(value);
380 return *this;
381 }
383
385
390 inline const Aws::String& GetFileName() const { return m_fileName; }
391 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
392 template <typename FileNameT = Aws::String>
393 void SetFileName(FileNameT&& value) {
394 m_fileNameHasBeenSet = true;
395 m_fileName = std::forward<FileNameT>(value);
396 }
397 template <typename FileNameT = Aws::String>
398 GetStaticMapRequest& WithFileName(FileNameT&& value) {
399 SetFileName(std::forward<FileNameT>(value));
400 return *this;
401 }
403
405
410 inline ScaleBarUnit GetScaleBarUnit() const { return m_scaleBarUnit; }
411 inline bool ScaleBarUnitHasBeenSet() const { return m_scaleBarUnitHasBeenSet; }
412 inline void SetScaleBarUnit(ScaleBarUnit value) {
413 m_scaleBarUnitHasBeenSet = true;
414 m_scaleBarUnit = value;
415 }
417 SetScaleBarUnit(value);
418 return *this;
419 }
421
423
426 inline StaticMapStyle GetStyle() const { return m_style; }
427 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
428 inline void SetStyle(StaticMapStyle value) {
429 m_styleHasBeenSet = true;
430 m_style = value;
431 }
433 SetStyle(value);
434 return *this;
435 }
437
439
442 inline int GetWidth() const { return m_width; }
443 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
444 inline void SetWidth(int value) {
445 m_widthHasBeenSet = true;
446 m_width = value;
447 }
448 inline GetStaticMapRequest& WithWidth(int value) {
449 SetWidth(value);
450 return *this;
451 }
453
455
459 inline double GetZoom() const { return m_zoom; }
460 inline bool ZoomHasBeenSet() const { return m_zoomHasBeenSet; }
461 inline void SetZoom(double value) {
462 m_zoomHasBeenSet = true;
463 m_zoom = value;
464 }
465 inline GetStaticMapRequest& WithZoom(double value) {
466 SetZoom(value);
467 return *this;
468 }
470 private:
471 Aws::String m_boundingBox;
472
473 Aws::String m_boundedPositions;
474
475 Aws::String m_center;
476
477 ColorScheme m_colorScheme{ColorScheme::NOT_SET};
478
479 Aws::String m_compactOverlay;
480
481 bool m_cropLabels{false};
482
483 Aws::String m_geoJsonOverlay;
484
485 int m_height{0};
486
487 Aws::String m_key;
488
489 LabelSize m_labelSize{LabelSize::NOT_SET};
490
491 Aws::String m_language;
492
493 int m_padding{0};
494
495 Aws::String m_politicalView;
496
497 MapFeatureMode m_pointsOfInterests{MapFeatureMode::NOT_SET};
498
499 long long m_radius{0};
500
501 Aws::String m_fileName;
502
503 ScaleBarUnit m_scaleBarUnit{ScaleBarUnit::NOT_SET};
504
506
507 int m_width{0};
508
509 double m_zoom{0.0};
510 bool m_boundingBoxHasBeenSet = false;
511 bool m_boundedPositionsHasBeenSet = false;
512 bool m_centerHasBeenSet = false;
513 bool m_colorSchemeHasBeenSet = false;
514 bool m_compactOverlayHasBeenSet = false;
515 bool m_cropLabelsHasBeenSet = false;
516 bool m_geoJsonOverlayHasBeenSet = false;
517 bool m_heightHasBeenSet = false;
518 bool m_keyHasBeenSet = false;
519 bool m_labelSizeHasBeenSet = false;
520 bool m_languageHasBeenSet = false;
521 bool m_paddingHasBeenSet = false;
522 bool m_politicalViewHasBeenSet = false;
523 bool m_pointsOfInterestsHasBeenSet = false;
524 bool m_radiusHasBeenSet = false;
525 bool m_fileNameHasBeenSet = false;
526 bool m_scaleBarUnitHasBeenSet = false;
527 bool m_styleHasBeenSet = false;
528 bool m_widthHasBeenSet = false;
529 bool m_zoomHasBeenSet = false;
530};
531
532} // namespace Model
533} // namespace GeoMaps
534} // 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