AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
RouteMatrixScooterOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteMatrixVehicleLicensePlate.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoRoutes {
20namespace Model {
21
29 public:
30 AWS_GEOROUTES_API RouteMatrixScooterOptions() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const RouteMatrixVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
40 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
41 template <typename LicensePlateT = RouteMatrixVehicleLicensePlate>
42 void SetLicensePlate(LicensePlateT&& value) {
43 m_licensePlateHasBeenSet = true;
44 m_licensePlate = std::forward<LicensePlateT>(value);
45 }
46 template <typename LicensePlateT = RouteMatrixVehicleLicensePlate>
48 SetLicensePlate(std::forward<LicensePlateT>(value));
49 return *this;
50 }
52
54
57 inline double GetMaxSpeed() const { return m_maxSpeed; }
58 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
59 inline void SetMaxSpeed(double value) {
60 m_maxSpeedHasBeenSet = true;
61 m_maxSpeed = value;
62 }
64 SetMaxSpeed(value);
65 return *this;
66 }
68
70
74 inline int GetOccupancy() const { return m_occupancy; }
75 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
76 inline void SetOccupancy(int value) {
77 m_occupancyHasBeenSet = true;
78 m_occupancy = value;
79 }
81 SetOccupancy(value);
82 return *this;
83 }
85 private:
86 RouteMatrixVehicleLicensePlate m_licensePlate;
87
88 double m_maxSpeed{0.0};
89
90 int m_occupancy{0};
91 bool m_licensePlateHasBeenSet = false;
92 bool m_maxSpeedHasBeenSet = false;
93 bool m_occupancyHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace GeoRoutes
98} // namespace Aws
AWS_GEOROUTES_API RouteMatrixScooterOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteMatrixScooterOptions()=default
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteMatrixScooterOptions & WithOccupancy(int value)
AWS_GEOROUTES_API RouteMatrixScooterOptions(Aws::Utils::Json::JsonView jsonValue)
const RouteMatrixVehicleLicensePlate & GetLicensePlate() const
RouteMatrixScooterOptions & WithLicensePlate(LicensePlateT &&value)
RouteMatrixScooterOptions & WithMaxSpeed(double value)
Aws::Utils::Json::JsonValue JsonValue