AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
RouteExitStepDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/LocalizedString.h>
10#include <aws/geo-routes/model/RouteSteeringDirection.h>
11#include <aws/geo-routes/model/RouteTurnIntensity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes {
23namespace Model {
24
31 public:
32 AWS_GEOROUTES_API RouteExitStepDetails() = default;
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<LocalizedString>& GetIntersection() const { return m_intersection; }
42 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
43 template <typename IntersectionT = Aws::Vector<LocalizedString>>
44 void SetIntersection(IntersectionT&& value) {
45 m_intersectionHasBeenSet = true;
46 m_intersection = std::forward<IntersectionT>(value);
47 }
48 template <typename IntersectionT = Aws::Vector<LocalizedString>>
49 RouteExitStepDetails& WithIntersection(IntersectionT&& value) {
50 SetIntersection(std::forward<IntersectionT>(value));
51 return *this;
52 }
53 template <typename IntersectionT = LocalizedString>
54 RouteExitStepDetails& AddIntersection(IntersectionT&& value) {
55 m_intersectionHasBeenSet = true;
56 m_intersection.emplace_back(std::forward<IntersectionT>(value));
57 return *this;
58 }
60
62
65 inline int GetRelativeExit() const { return m_relativeExit; }
66 inline bool RelativeExitHasBeenSet() const { return m_relativeExitHasBeenSet; }
67 inline void SetRelativeExit(int value) {
68 m_relativeExitHasBeenSet = true;
69 m_relativeExit = value;
70 }
72 SetRelativeExit(value);
73 return *this;
74 }
76
78
81 inline RouteSteeringDirection GetSteeringDirection() const { return m_steeringDirection; }
82 inline bool SteeringDirectionHasBeenSet() const { return m_steeringDirectionHasBeenSet; }
84 m_steeringDirectionHasBeenSet = true;
85 m_steeringDirection = value;
86 }
89 return *this;
90 }
92
94
97 inline double GetTurnAngle() const { return m_turnAngle; }
98 inline bool TurnAngleHasBeenSet() const { return m_turnAngleHasBeenSet; }
99 inline void SetTurnAngle(double value) {
100 m_turnAngleHasBeenSet = true;
101 m_turnAngle = value;
102 }
103 inline RouteExitStepDetails& WithTurnAngle(double value) {
104 SetTurnAngle(value);
105 return *this;
106 }
108
110
113 inline RouteTurnIntensity GetTurnIntensity() const { return m_turnIntensity; }
114 inline bool TurnIntensityHasBeenSet() const { return m_turnIntensityHasBeenSet; }
116 m_turnIntensityHasBeenSet = true;
117 m_turnIntensity = value;
118 }
120 SetTurnIntensity(value);
121 return *this;
122 }
124 private:
125 Aws::Vector<LocalizedString> m_intersection;
126
127 int m_relativeExit{0};
128
130
131 double m_turnAngle{0.0};
132
134 bool m_intersectionHasBeenSet = false;
135 bool m_relativeExitHasBeenSet = false;
136 bool m_steeringDirectionHasBeenSet = false;
137 bool m_turnAngleHasBeenSet = false;
138 bool m_turnIntensityHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace GeoRoutes
143} // namespace Aws
RouteExitStepDetails & WithIntersection(IntersectionT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteExitStepDetails & WithRelativeExit(int value)
RouteExitStepDetails & WithTurnAngle(double value)
AWS_GEOROUTES_API RouteExitStepDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSteeringDirection(RouteSteeringDirection value)
void SetTurnIntensity(RouteTurnIntensity value)
RouteSteeringDirection GetSteeringDirection() const
RouteExitStepDetails & AddIntersection(IntersectionT &&value)
RouteExitStepDetails & WithTurnIntensity(RouteTurnIntensity value)
AWS_GEOROUTES_API RouteExitStepDetails(Aws::Utils::Json::JsonView jsonValue)
RouteExitStepDetails & WithSteeringDirection(RouteSteeringDirection value)
const Aws::Vector< LocalizedString > & GetIntersection() const
AWS_GEOROUTES_API RouteExitStepDetails()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue