AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SnapToRoadsRequest.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/GeoRoutesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/geo-routes/model/GeometryFormat.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/geo-routes/model/RoadSnapTravelMode.h>
13#include <aws/geo-routes/model/RoadSnapTravelModeOptions.h>
14#include <aws/geo-routes/model/RoadSnapTracePoint.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Http
20{
21 class URI;
22} //namespace Http
23namespace GeoRoutes
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_GEOROUTES_API SnapToRoadsRequest();
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 "SnapToRoads"; }
40
41 AWS_GEOROUTES_API Aws::String SerializePayload() const override;
42
43 AWS_GEOROUTES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
51 inline const Aws::String& GetKey() const{ return m_key; }
52 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
54 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
55 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
56 inline SnapToRoadsRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
57 inline SnapToRoadsRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
58 inline SnapToRoadsRequest& WithKey(const char* value) { SetKey(value); return *this;}
60
62
66 inline const GeometryFormat& GetSnappedGeometryFormat() const{ return m_snappedGeometryFormat; }
67 inline bool SnappedGeometryFormatHasBeenSet() const { return m_snappedGeometryFormatHasBeenSet; }
68 inline void SetSnappedGeometryFormat(const GeometryFormat& value) { m_snappedGeometryFormatHasBeenSet = true; m_snappedGeometryFormat = value; }
69 inline void SetSnappedGeometryFormat(GeometryFormat&& value) { m_snappedGeometryFormatHasBeenSet = true; m_snappedGeometryFormat = std::move(value); }
71 inline SnapToRoadsRequest& WithSnappedGeometryFormat(GeometryFormat&& value) { SetSnappedGeometryFormat(std::move(value)); return *this;}
73
75
80 inline long long GetSnapRadius() const{ return m_snapRadius; }
81 inline bool SnapRadiusHasBeenSet() const { return m_snapRadiusHasBeenSet; }
82 inline void SetSnapRadius(long long value) { m_snapRadiusHasBeenSet = true; m_snapRadius = value; }
83 inline SnapToRoadsRequest& WithSnapRadius(long long value) { SetSnapRadius(value); return *this;}
85
87
90 inline const Aws::Vector<RoadSnapTracePoint>& GetTracePoints() const{ return m_tracePoints; }
91 inline bool TracePointsHasBeenSet() const { return m_tracePointsHasBeenSet; }
92 inline void SetTracePoints(const Aws::Vector<RoadSnapTracePoint>& value) { m_tracePointsHasBeenSet = true; m_tracePoints = value; }
93 inline void SetTracePoints(Aws::Vector<RoadSnapTracePoint>&& value) { m_tracePointsHasBeenSet = true; m_tracePoints = std::move(value); }
95 inline SnapToRoadsRequest& WithTracePoints(Aws::Vector<RoadSnapTracePoint>&& value) { SetTracePoints(std::move(value)); return *this;}
96 inline SnapToRoadsRequest& AddTracePoints(const RoadSnapTracePoint& value) { m_tracePointsHasBeenSet = true; m_tracePoints.push_back(value); return *this; }
97 inline SnapToRoadsRequest& AddTracePoints(RoadSnapTracePoint&& value) { m_tracePointsHasBeenSet = true; m_tracePoints.push_back(std::move(value)); return *this; }
99
101
106 inline const RoadSnapTravelMode& GetTravelMode() const{ return m_travelMode; }
107 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
108 inline void SetTravelMode(const RoadSnapTravelMode& value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
109 inline void SetTravelMode(RoadSnapTravelMode&& value) { m_travelModeHasBeenSet = true; m_travelMode = std::move(value); }
110 inline SnapToRoadsRequest& WithTravelMode(const RoadSnapTravelMode& value) { SetTravelMode(value); return *this;}
111 inline SnapToRoadsRequest& WithTravelMode(RoadSnapTravelMode&& value) { SetTravelMode(std::move(value)); return *this;}
113
115
118 inline const RoadSnapTravelModeOptions& GetTravelModeOptions() const{ return m_travelModeOptions; }
119 inline bool TravelModeOptionsHasBeenSet() const { return m_travelModeOptionsHasBeenSet; }
120 inline void SetTravelModeOptions(const RoadSnapTravelModeOptions& value) { m_travelModeOptionsHasBeenSet = true; m_travelModeOptions = value; }
121 inline void SetTravelModeOptions(RoadSnapTravelModeOptions&& value) { m_travelModeOptionsHasBeenSet = true; m_travelModeOptions = std::move(value); }
125 private:
126
127 Aws::String m_key;
128 bool m_keyHasBeenSet = false;
129
130 GeometryFormat m_snappedGeometryFormat;
131 bool m_snappedGeometryFormatHasBeenSet = false;
132
133 long long m_snapRadius;
134 bool m_snapRadiusHasBeenSet = false;
135
137 bool m_tracePointsHasBeenSet = false;
138
139 RoadSnapTravelMode m_travelMode;
140 bool m_travelModeHasBeenSet = false;
141
142 RoadSnapTravelModeOptions m_travelModeOptions;
143 bool m_travelModeOptionsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace GeoRoutes
148} // namespace Aws
void SetTravelModeOptions(const RoadSnapTravelModeOptions &value)
SnapToRoadsRequest & WithTracePoints(Aws::Vector< RoadSnapTracePoint > &&value)
SnapToRoadsRequest & WithSnapRadius(long long value)
SnapToRoadsRequest & WithKey(const char *value)
SnapToRoadsRequest & WithTracePoints(const Aws::Vector< RoadSnapTracePoint > &value)
void SetSnappedGeometryFormat(GeometryFormat &&value)
SnapToRoadsRequest & WithTravelModeOptions(RoadSnapTravelModeOptions &&value)
const Aws::Vector< RoadSnapTracePoint > & GetTracePoints() const
virtual const char * GetServiceRequestName() const override
SnapToRoadsRequest & WithTravelMode(RoadSnapTravelMode &&value)
AWS_GEOROUTES_API Aws::String SerializePayload() const override
void SetTravelModeOptions(RoadSnapTravelModeOptions &&value)
SnapToRoadsRequest & AddTracePoints(RoadSnapTracePoint &&value)
const RoadSnapTravelMode & GetTravelMode() const
SnapToRoadsRequest & WithSnappedGeometryFormat(GeometryFormat &&value)
AWS_GEOROUTES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SnapToRoadsRequest & WithTravelModeOptions(const RoadSnapTravelModeOptions &value)
SnapToRoadsRequest & WithKey(const Aws::String &value)
SnapToRoadsRequest & WithTravelMode(const RoadSnapTravelMode &value)
const GeometryFormat & GetSnappedGeometryFormat() const
SnapToRoadsRequest & WithSnappedGeometryFormat(const GeometryFormat &value)
void SetSnappedGeometryFormat(const GeometryFormat &value)
void SetTravelMode(const RoadSnapTravelMode &value)
const RoadSnapTravelModeOptions & GetTravelModeOptions() const
void SetTracePoints(Aws::Vector< RoadSnapTracePoint > &&value)
SnapToRoadsRequest & AddTracePoints(const RoadSnapTracePoint &value)
void SetKey(const Aws::String &value)
void SetTravelMode(RoadSnapTravelMode &&value)
SnapToRoadsRequest & WithKey(Aws::String &&value)
void SetTracePoints(const Aws::Vector< RoadSnapTracePoint > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector