AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
113 inline ColorScheme GetColorScheme() const { return m_colorScheme; }
114 inline bool ColorSchemeHasBeenSet() const { return m_colorSchemeHasBeenSet; }
115 inline void SetColorScheme(ColorScheme value) {
116 m_colorSchemeHasBeenSet = true;
117 m_colorScheme = value;
118 }
120 SetColorScheme(value);
121 return *this;
122 }
124
126
134 inline const Aws::String& GetCompactOverlay() const { return m_compactOverlay; }
135 inline bool CompactOverlayHasBeenSet() const { return m_compactOverlayHasBeenSet; }
136 template <typename CompactOverlayT = Aws::String>
137 void SetCompactOverlay(CompactOverlayT&& value) {
138 m_compactOverlayHasBeenSet = true;
139 m_compactOverlay = std::forward<CompactOverlayT>(value);
140 }
141 template <typename CompactOverlayT = Aws::String>
142 GetStaticMapRequest& WithCompactOverlay(CompactOverlayT&& value) {
143 SetCompactOverlay(std::forward<CompactOverlayT>(value));
144 return *this;
145 }
147
149
153 inline bool GetCropLabels() const { return m_cropLabels; }
154 inline bool CropLabelsHasBeenSet() const { return m_cropLabelsHasBeenSet; }
155 inline void SetCropLabels(bool value) {
156 m_cropLabelsHasBeenSet = true;
157 m_cropLabels = value;
158 }
160 SetCropLabels(value);
161 return *this;
162 }
164
166
174 inline const Aws::String& GetGeoJsonOverlay() const { return m_geoJsonOverlay; }
175 inline bool GeoJsonOverlayHasBeenSet() const { return m_geoJsonOverlayHasBeenSet; }
176 template <typename GeoJsonOverlayT = Aws::String>
177 void SetGeoJsonOverlay(GeoJsonOverlayT&& value) {
178 m_geoJsonOverlayHasBeenSet = true;
179 m_geoJsonOverlay = std::forward<GeoJsonOverlayT>(value);
180 }
181 template <typename GeoJsonOverlayT = Aws::String>
182 GetStaticMapRequest& WithGeoJsonOverlay(GeoJsonOverlayT&& value) {
183 SetGeoJsonOverlay(std::forward<GeoJsonOverlayT>(value));
184 return *this;
185 }
187
189
192 inline int GetHeight() const { return m_height; }
193 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
194 inline void SetHeight(int value) {
195 m_heightHasBeenSet = true;
196 m_height = value;
197 }
198 inline GetStaticMapRequest& WithHeight(int value) {
199 SetHeight(value);
200 return *this;
201 }
203
205
209 inline const Aws::String& GetKey() const { return m_key; }
210 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
211 template <typename KeyT = Aws::String>
212 void SetKey(KeyT&& value) {
213 m_keyHasBeenSet = true;
214 m_key = std::forward<KeyT>(value);
215 }
216 template <typename KeyT = Aws::String>
218 SetKey(std::forward<KeyT>(value));
219 return *this;
220 }
222
224
228 inline LabelSize GetLabelSize() const { return m_labelSize; }
229 inline bool LabelSizeHasBeenSet() const { return m_labelSizeHasBeenSet; }
230 inline void SetLabelSize(LabelSize value) {
231 m_labelSizeHasBeenSet = true;
232 m_labelSize = value;
233 }
235 SetLabelSize(value);
236 return *this;
237 }
239
241
281 inline const Aws::String& GetLanguage() const { return m_language; }
282 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
283 template <typename LanguageT = Aws::String>
284 void SetLanguage(LanguageT&& value) {
285 m_languageHasBeenSet = true;
286 m_language = std::forward<LanguageT>(value);
287 }
288 template <typename LanguageT = Aws::String>
289 GetStaticMapRequest& WithLanguage(LanguageT&& value) {
290 SetLanguage(std::forward<LanguageT>(value));
291 return *this;
292 }
294
296
302 inline int GetPadding() const { return m_padding; }
303 inline bool PaddingHasBeenSet() const { return m_paddingHasBeenSet; }
304 inline void SetPadding(int value) {
305 m_paddingHasBeenSet = true;
306 m_padding = value;
307 }
308 inline GetStaticMapRequest& WithPadding(int value) {
309 SetPadding(value);
310 return *this;
311 }
313
315
335 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
336 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
337 template <typename PoliticalViewT = Aws::String>
338 void SetPoliticalView(PoliticalViewT&& value) {
339 m_politicalViewHasBeenSet = true;
340 m_politicalView = std::forward<PoliticalViewT>(value);
341 }
342 template <typename PoliticalViewT = Aws::String>
343 GetStaticMapRequest& WithPoliticalView(PoliticalViewT&& value) {
344 SetPoliticalView(std::forward<PoliticalViewT>(value));
345 return *this;
346 }
348
350
354 inline MapFeatureMode GetPointsOfInterests() const { return m_pointsOfInterests; }
355 inline bool PointsOfInterestsHasBeenSet() const { return m_pointsOfInterestsHasBeenSet; }
357 m_pointsOfInterestsHasBeenSet = true;
358 m_pointsOfInterests = value;
359 }
362 return *this;
363 }
365
367
373 inline long long GetRadius() const { return m_radius; }
374 inline bool RadiusHasBeenSet() const { return m_radiusHasBeenSet; }
375 inline void SetRadius(long long value) {
376 m_radiusHasBeenSet = true;
377 m_radius = value;
378 }
379 inline GetStaticMapRequest& WithRadius(long long value) {
380 SetRadius(value);
381 return *this;
382 }
384
386
391 inline const Aws::String& GetFileName() const { return m_fileName; }
392 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
393 template <typename FileNameT = Aws::String>
394 void SetFileName(FileNameT&& value) {
395 m_fileNameHasBeenSet = true;
396 m_fileName = std::forward<FileNameT>(value);
397 }
398 template <typename FileNameT = Aws::String>
399 GetStaticMapRequest& WithFileName(FileNameT&& value) {
400 SetFileName(std::forward<FileNameT>(value));
401 return *this;
402 }
404
406
411 inline ScaleBarUnit GetScaleBarUnit() const { return m_scaleBarUnit; }
412 inline bool ScaleBarUnitHasBeenSet() const { return m_scaleBarUnitHasBeenSet; }
413 inline void SetScaleBarUnit(ScaleBarUnit value) {
414 m_scaleBarUnitHasBeenSet = true;
415 m_scaleBarUnit = value;
416 }
418 SetScaleBarUnit(value);
419 return *this;
420 }
422
424
427 inline StaticMapStyle GetStyle() const { return m_style; }
428 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
429 inline void SetStyle(StaticMapStyle value) {
430 m_styleHasBeenSet = true;
431 m_style = value;
432 }
434 SetStyle(value);
435 return *this;
436 }
438
440
443 inline int GetWidth() const { return m_width; }
444 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
445 inline void SetWidth(int value) {
446 m_widthHasBeenSet = true;
447 m_width = value;
448 }
449 inline GetStaticMapRequest& WithWidth(int value) {
450 SetWidth(value);
451 return *this;
452 }
454
456
460 inline double GetZoom() const { return m_zoom; }
461 inline bool ZoomHasBeenSet() const { return m_zoomHasBeenSet; }
462 inline void SetZoom(double value) {
463 m_zoomHasBeenSet = true;
464 m_zoom = value;
465 }
466 inline GetStaticMapRequest& WithZoom(double value) {
467 SetZoom(value);
468 return *this;
469 }
471 private:
472 Aws::String m_boundingBox;
473
474 Aws::String m_boundedPositions;
475
476 Aws::String m_center;
477
478 ColorScheme m_colorScheme{ColorScheme::NOT_SET};
479
480 Aws::String m_compactOverlay;
481
482 bool m_cropLabels{false};
483
484 Aws::String m_geoJsonOverlay;
485
486 int m_height{0};
487
488 Aws::String m_key;
489
490 LabelSize m_labelSize{LabelSize::NOT_SET};
491
492 Aws::String m_language;
493
494 int m_padding{0};
495
496 Aws::String m_politicalView;
497
498 MapFeatureMode m_pointsOfInterests{MapFeatureMode::NOT_SET};
499
500 long long m_radius{0};
501
502 Aws::String m_fileName;
503
504 ScaleBarUnit m_scaleBarUnit{ScaleBarUnit::NOT_SET};
505
507
508 int m_width{0};
509
510 double m_zoom{0.0};
511 bool m_boundingBoxHasBeenSet = false;
512 bool m_boundedPositionsHasBeenSet = false;
513 bool m_centerHasBeenSet = false;
514 bool m_colorSchemeHasBeenSet = false;
515 bool m_compactOverlayHasBeenSet = false;
516 bool m_cropLabelsHasBeenSet = false;
517 bool m_geoJsonOverlayHasBeenSet = false;
518 bool m_heightHasBeenSet = false;
519 bool m_keyHasBeenSet = false;
520 bool m_labelSizeHasBeenSet = false;
521 bool m_languageHasBeenSet = false;
522 bool m_paddingHasBeenSet = false;
523 bool m_politicalViewHasBeenSet = false;
524 bool m_pointsOfInterestsHasBeenSet = false;
525 bool m_radiusHasBeenSet = false;
526 bool m_fileNameHasBeenSet = false;
527 bool m_scaleBarUnitHasBeenSet = false;
528 bool m_styleHasBeenSet = false;
529 bool m_widthHasBeenSet = false;
530 bool m_zoomHasBeenSet = false;
531};
532
533} // namespace Model
534} // namespace GeoMaps
535} // 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