AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SnapToRoadsResult.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/geo-routes/model/RoadSnapSnappedGeometry.h>
11#include <aws/geo-routes/model/GeometryFormat.h>
12#include <aws/geo-routes/model/RoadSnapNotice.h>
13#include <aws/geo-routes/model/RoadSnapSnappedTracePoint.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GeoRoutes
29{
30namespace Model
31{
33 {
34 public:
35 AWS_GEOROUTES_API SnapToRoadsResult() = default;
38
39
41
45 inline const Aws::Vector<RoadSnapNotice>& GetNotices() const { return m_notices; }
46 template<typename NoticesT = Aws::Vector<RoadSnapNotice>>
47 void SetNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices = std::forward<NoticesT>(value); }
48 template<typename NoticesT = Aws::Vector<RoadSnapNotice>>
49 SnapToRoadsResult& WithNotices(NoticesT&& value) { SetNotices(std::forward<NoticesT>(value)); return *this;}
50 template<typename NoticesT = RoadSnapNotice>
51 SnapToRoadsResult& AddNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices.emplace_back(std::forward<NoticesT>(value)); return *this; }
53
55
58 inline const Aws::String& GetPricingBucket() const { return m_pricingBucket; }
59 template<typename PricingBucketT = Aws::String>
60 void SetPricingBucket(PricingBucketT&& value) { m_pricingBucketHasBeenSet = true; m_pricingBucket = std::forward<PricingBucketT>(value); }
61 template<typename PricingBucketT = Aws::String>
62 SnapToRoadsResult& WithPricingBucket(PricingBucketT&& value) { SetPricingBucket(std::forward<PricingBucketT>(value)); return *this;}
64
66
69 inline const RoadSnapSnappedGeometry& GetSnappedGeometry() const { return m_snappedGeometry; }
70 template<typename SnappedGeometryT = RoadSnapSnappedGeometry>
71 void SetSnappedGeometry(SnappedGeometryT&& value) { m_snappedGeometryHasBeenSet = true; m_snappedGeometry = std::forward<SnappedGeometryT>(value); }
72 template<typename SnappedGeometryT = RoadSnapSnappedGeometry>
73 SnapToRoadsResult& WithSnappedGeometry(SnappedGeometryT&& value) { SetSnappedGeometry(std::forward<SnappedGeometryT>(value)); return *this;}
75
77
80 inline GeometryFormat GetSnappedGeometryFormat() const { return m_snappedGeometryFormat; }
81 inline void SetSnappedGeometryFormat(GeometryFormat value) { m_snappedGeometryFormatHasBeenSet = true; m_snappedGeometryFormat = value; }
84
86
89 inline const Aws::Vector<RoadSnapSnappedTracePoint>& GetSnappedTracePoints() const { return m_snappedTracePoints; }
90 template<typename SnappedTracePointsT = Aws::Vector<RoadSnapSnappedTracePoint>>
91 void SetSnappedTracePoints(SnappedTracePointsT&& value) { m_snappedTracePointsHasBeenSet = true; m_snappedTracePoints = std::forward<SnappedTracePointsT>(value); }
92 template<typename SnappedTracePointsT = Aws::Vector<RoadSnapSnappedTracePoint>>
93 SnapToRoadsResult& WithSnappedTracePoints(SnappedTracePointsT&& value) { SetSnappedTracePoints(std::forward<SnappedTracePointsT>(value)); return *this;}
94 template<typename SnappedTracePointsT = RoadSnapSnappedTracePoint>
95 SnapToRoadsResult& AddSnappedTracePoints(SnappedTracePointsT&& value) { m_snappedTracePointsHasBeenSet = true; m_snappedTracePoints.emplace_back(std::forward<SnappedTracePointsT>(value)); return *this; }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template<typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
103 template<typename RequestIdT = Aws::String>
104 SnapToRoadsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
106 private:
107
109 bool m_noticesHasBeenSet = false;
110
111 Aws::String m_pricingBucket;
112 bool m_pricingBucketHasBeenSet = false;
113
114 RoadSnapSnappedGeometry m_snappedGeometry;
115 bool m_snappedGeometryHasBeenSet = false;
116
117 GeometryFormat m_snappedGeometryFormat{GeometryFormat::NOT_SET};
118 bool m_snappedGeometryFormatHasBeenSet = false;
119
120 Aws::Vector<RoadSnapSnappedTracePoint> m_snappedTracePoints;
121 bool m_snappedTracePointsHasBeenSet = false;
122
123 Aws::String m_requestId;
124 bool m_requestIdHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace GeoRoutes
129} // namespace Aws
const Aws::Vector< RoadSnapNotice > & GetNotices() const
void SetSnappedGeometry(SnappedGeometryT &&value)
SnapToRoadsResult & WithNotices(NoticesT &&value)
AWS_GEOROUTES_API SnapToRoadsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SnapToRoadsResult & WithPricingBucket(PricingBucketT &&value)
SnapToRoadsResult & WithSnappedGeometry(SnappedGeometryT &&value)
void SetSnappedGeometryFormat(GeometryFormat value)
SnapToRoadsResult & AddSnappedTracePoints(SnappedTracePointsT &&value)
SnapToRoadsResult & WithSnappedTracePoints(SnappedTracePointsT &&value)
const RoadSnapSnappedGeometry & GetSnappedGeometry() const
void SetSnappedTracePoints(SnappedTracePointsT &&value)
SnapToRoadsResult & AddNotices(NoticesT &&value)
SnapToRoadsResult & WithSnappedGeometryFormat(GeometryFormat value)
void SetPricingBucket(PricingBucketT &&value)
const Aws::Vector< RoadSnapSnappedTracePoint > & GetSnappedTracePoints() const
const Aws::String & GetPricingBucket() const
AWS_GEOROUTES_API SnapToRoadsResult()=default
SnapToRoadsResult & WithRequestId(RequestIdT &&value)
AWS_GEOROUTES_API SnapToRoadsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue