AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
RouteSpanSpeedLimitDetails.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GeoRoutes {
17namespace Model {
18
26 public:
27 AWS_GEOROUTES_API RouteSpanSpeedLimitDetails() = default;
30 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline double GetMaxSpeed() const { return m_maxSpeed; }
37 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
38 inline void SetMaxSpeed(double value) {
39 m_maxSpeedHasBeenSet = true;
40 m_maxSpeed = value;
41 }
43 SetMaxSpeed(value);
44 return *this;
45 }
47
49
52 inline bool GetUnlimited() const { return m_unlimited; }
53 inline bool UnlimitedHasBeenSet() const { return m_unlimitedHasBeenSet; }
54 inline void SetUnlimited(bool value) {
55 m_unlimitedHasBeenSet = true;
56 m_unlimited = value;
57 }
59 SetUnlimited(value);
60 return *this;
61 }
63 private:
64 double m_maxSpeed{0.0};
65
66 bool m_unlimited{false};
67 bool m_maxSpeedHasBeenSet = false;
68 bool m_unlimitedHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace GeoRoutes
73} // namespace Aws
AWS_GEOROUTES_API RouteSpanSpeedLimitDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteSpanSpeedLimitDetails & WithMaxSpeed(double value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteSpanSpeedLimitDetails()=default
RouteSpanSpeedLimitDetails & WithUnlimited(bool value)
AWS_GEOROUTES_API RouteSpanSpeedLimitDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue