AWS SDK for C++

AWS SDK for C++ Version 1.11.795

Loading...
Searching...
No Matches
RouteDestinationOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteMatchingOptions.h>
9#include <aws/geo-routes/model/RouteSideOfStreetOptions.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
29 public:
30 AWS_GEOROUTES_API RouteDestinationOptions() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline long long GetAvoidActionsForDistance() const { return m_avoidActionsForDistance; }
43 inline bool AvoidActionsForDistanceHasBeenSet() const { return m_avoidActionsForDistanceHasBeenSet; }
44 inline void SetAvoidActionsForDistance(long long value) {
45 m_avoidActionsForDistanceHasBeenSet = true;
46 m_avoidActionsForDistance = value;
47 }
50 return *this;
51 }
53
55
58 inline bool GetAvoidUTurns() const { return m_avoidUTurns; }
59 inline bool AvoidUTurnsHasBeenSet() const { return m_avoidUTurnsHasBeenSet; }
60 inline void SetAvoidUTurns(bool value) {
61 m_avoidUTurnsHasBeenSet = true;
62 m_avoidUTurns = value;
63 }
65 SetAvoidUTurns(value);
66 return *this;
67 }
69
71
74 inline double GetHeading() const { return m_heading; }
75 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
76 inline void SetHeading(double value) {
77 m_headingHasBeenSet = true;
78 m_heading = value;
79 }
80 inline RouteDestinationOptions& WithHeading(double value) {
81 SetHeading(value);
82 return *this;
83 }
85
87
90 inline const RouteMatchingOptions& GetMatching() const { return m_matching; }
91 inline bool MatchingHasBeenSet() const { return m_matchingHasBeenSet; }
92 template <typename MatchingT = RouteMatchingOptions>
93 void SetMatching(MatchingT&& value) {
94 m_matchingHasBeenSet = true;
95 m_matching = std::forward<MatchingT>(value);
96 }
97 template <typename MatchingT = RouteMatchingOptions>
99 SetMatching(std::forward<MatchingT>(value));
100 return *this;
101 }
103
105
109 inline const RouteSideOfStreetOptions& GetSideOfStreet() const { return m_sideOfStreet; }
110 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
111 template <typename SideOfStreetT = RouteSideOfStreetOptions>
112 void SetSideOfStreet(SideOfStreetT&& value) {
113 m_sideOfStreetHasBeenSet = true;
114 m_sideOfStreet = std::forward<SideOfStreetT>(value);
115 }
116 template <typename SideOfStreetT = RouteSideOfStreetOptions>
118 SetSideOfStreet(std::forward<SideOfStreetT>(value));
119 return *this;
120 }
122
124
127 inline long long GetStopDuration() const { return m_stopDuration; }
128 inline bool StopDurationHasBeenSet() const { return m_stopDurationHasBeenSet; }
129 inline void SetStopDuration(long long value) {
130 m_stopDurationHasBeenSet = true;
131 m_stopDuration = value;
132 }
133 inline RouteDestinationOptions& WithStopDuration(long long value) {
134 SetStopDuration(value);
135 return *this;
136 }
138 private:
139 long long m_avoidActionsForDistance{0};
140
141 bool m_avoidUTurns{false};
142
143 double m_heading{0.0};
144
145 RouteMatchingOptions m_matching;
146
147 RouteSideOfStreetOptions m_sideOfStreet;
148
149 long long m_stopDuration{0};
150 bool m_avoidActionsForDistanceHasBeenSet = false;
151 bool m_avoidUTurnsHasBeenSet = false;
152 bool m_headingHasBeenSet = false;
153 bool m_matchingHasBeenSet = false;
154 bool m_sideOfStreetHasBeenSet = false;
155 bool m_stopDurationHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace GeoRoutes
160} // namespace Aws
RouteDestinationOptions & WithAvoidUTurns(bool value)
AWS_GEOROUTES_API RouteDestinationOptions()=default
RouteDestinationOptions & WithHeading(double value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteDestinationOptions(Aws::Utils::Json::JsonView jsonValue)
RouteDestinationOptions & WithSideOfStreet(SideOfStreetT &&value)
const RouteSideOfStreetOptions & GetSideOfStreet() const
RouteDestinationOptions & WithMatching(MatchingT &&value)
RouteDestinationOptions & WithStopDuration(long long value)
RouteDestinationOptions & WithAvoidActionsForDistance(long long value)
AWS_GEOROUTES_API RouteDestinationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const RouteMatchingOptions & GetMatching() const
Aws::Utils::Json::JsonValue JsonValue