AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetStyleDescriptorRequest.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-maps/GeoMapsRequest.h>
10#include <aws/geo-maps/GeoMaps_EXPORTS.h>
11#include <aws/geo-maps/model/ColorScheme.h>
12#include <aws/geo-maps/model/ContourDensity.h>
13#include <aws/geo-maps/model/MapStyle.h>
14#include <aws/geo-maps/model/Terrain.h>
15#include <aws/geo-maps/model/Traffic.h>
16#include <aws/geo-maps/model/TravelMode.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Http {
22class URI;
23} // namespace Http
24namespace GeoMaps {
25namespace Model {
26
30 public:
31 AWS_GEOMAPS_API GetStyleDescriptorRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetStyleDescriptor"; }
38
39 AWS_GEOMAPS_API Aws::String SerializePayload() const override;
40
41 AWS_GEOMAPS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
47 inline MapStyle GetStyle() const { return m_style; }
48 inline bool StyleHasBeenSet() const { return m_styleHasBeenSet; }
49 inline void SetStyle(MapStyle value) {
50 m_styleHasBeenSet = true;
51 m_style = value;
52 }
54 SetStyle(value);
55 return *this;
56 }
58
60
66 inline ColorScheme GetColorScheme() const { return m_colorScheme; }
67 inline bool ColorSchemeHasBeenSet() const { return m_colorSchemeHasBeenSet; }
68 inline void SetColorScheme(ColorScheme value) {
69 m_colorSchemeHasBeenSet = true;
70 m_colorScheme = value;
71 }
73 SetColorScheme(value);
74 return *this;
75 }
77
79
99 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
100 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
101 template <typename PoliticalViewT = Aws::String>
102 void SetPoliticalView(PoliticalViewT&& value) {
103 m_politicalViewHasBeenSet = true;
104 m_politicalView = std::forward<PoliticalViewT>(value);
105 }
106 template <typename PoliticalViewT = Aws::String>
108 SetPoliticalView(std::forward<PoliticalViewT>(value));
109 return *this;
110 }
112
114
121 inline Terrain GetTerrain() const { return m_terrain; }
122 inline bool TerrainHasBeenSet() const { return m_terrainHasBeenSet; }
123 inline void SetTerrain(Terrain value) {
124 m_terrainHasBeenSet = true;
125 m_terrain = value;
126 }
128 SetTerrain(value);
129 return *this;
130 }
132
134
140 inline ContourDensity GetContourDensity() const { return m_contourDensity; }
141 inline bool ContourDensityHasBeenSet() const { return m_contourDensityHasBeenSet; }
143 m_contourDensityHasBeenSet = true;
144 m_contourDensity = value;
145 }
147 SetContourDensity(value);
148 return *this;
149 }
151
153
158 inline Traffic GetTraffic() const { return m_traffic; }
159 inline bool TrafficHasBeenSet() const { return m_trafficHasBeenSet; }
160 inline void SetTraffic(Traffic value) {
161 m_trafficHasBeenSet = true;
162 m_traffic = value;
163 }
165 SetTraffic(value);
166 return *this;
167 }
169
171
177 inline const Aws::Vector<TravelMode>& GetTravelModes() const { return m_travelModes; }
178 inline bool TravelModesHasBeenSet() const { return m_travelModesHasBeenSet; }
179 template <typename TravelModesT = Aws::Vector<TravelMode>>
180 void SetTravelModes(TravelModesT&& value) {
181 m_travelModesHasBeenSet = true;
182 m_travelModes = std::forward<TravelModesT>(value);
183 }
184 template <typename TravelModesT = Aws::Vector<TravelMode>>
186 SetTravelModes(std::forward<TravelModesT>(value));
187 return *this;
188 }
190 m_travelModesHasBeenSet = true;
191 m_travelModes.push_back(value);
192 return *this;
193 }
195
197
201 inline const Aws::String& GetKey() const { return m_key; }
202 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
203 template <typename KeyT = Aws::String>
204 void SetKey(KeyT&& value) {
205 m_keyHasBeenSet = true;
206 m_key = std::forward<KeyT>(value);
207 }
208 template <typename KeyT = Aws::String>
210 SetKey(std::forward<KeyT>(value));
211 return *this;
212 }
214 private:
216
217 ColorScheme m_colorScheme{ColorScheme::NOT_SET};
218
219 Aws::String m_politicalView;
220
221 Terrain m_terrain{Terrain::NOT_SET};
222
223 ContourDensity m_contourDensity{ContourDensity::NOT_SET};
224
225 Traffic m_traffic{Traffic::NOT_SET};
226
227 Aws::Vector<TravelMode> m_travelModes;
228
229 Aws::String m_key;
230 bool m_styleHasBeenSet = false;
231 bool m_colorSchemeHasBeenSet = false;
232 bool m_politicalViewHasBeenSet = false;
233 bool m_terrainHasBeenSet = false;
234 bool m_contourDensityHasBeenSet = false;
235 bool m_trafficHasBeenSet = false;
236 bool m_travelModesHasBeenSet = false;
237 bool m_keyHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace GeoMaps
242} // namespace Aws
GetStyleDescriptorRequest & WithTraffic(Traffic value)
AWS_GEOMAPS_API Aws::String SerializePayload() const override
GetStyleDescriptorRequest & WithColorScheme(ColorScheme value)
GetStyleDescriptorRequest & WithStyle(MapStyle value)
GetStyleDescriptorRequest & WithContourDensity(ContourDensity value)
AWS_GEOMAPS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_GEOMAPS_API GetStyleDescriptorRequest()=default
const Aws::Vector< TravelMode > & GetTravelModes() const
virtual const char * GetServiceRequestName() const override
GetStyleDescriptorRequest & WithKey(KeyT &&value)
GetStyleDescriptorRequest & WithTravelModes(TravelModesT &&value)
GetStyleDescriptorRequest & AddTravelModes(TravelMode value)
GetStyleDescriptorRequest & WithPoliticalView(PoliticalViewT &&value)
GetStyleDescriptorRequest & WithTerrain(Terrain value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector