AWS SDK for C++

AWS SDK for C++ Version 1.11.794

Loading...
Searching...
No Matches
RouteScooterOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteEngineType.h>
9#include <aws/geo-routes/model/RouteVehicleLicensePlate.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
33 public:
34 AWS_GEOROUTES_API RouteScooterOptions() = default;
35 AWS_GEOROUTES_API RouteScooterOptions(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline RouteEngineType GetEngineType() const { return m_engineType; }
47 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
48 inline void SetEngineType(RouteEngineType value) {
49 m_engineTypeHasBeenSet = true;
50 m_engineType = value;
51 }
53 SetEngineType(value);
54 return *this;
55 }
57
59
62 inline const RouteVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
63 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
64 template <typename LicensePlateT = RouteVehicleLicensePlate>
65 void SetLicensePlate(LicensePlateT&& value) {
66 m_licensePlateHasBeenSet = true;
67 m_licensePlate = std::forward<LicensePlateT>(value);
68 }
69 template <typename LicensePlateT = RouteVehicleLicensePlate>
70 RouteScooterOptions& WithLicensePlate(LicensePlateT&& value) {
71 SetLicensePlate(std::forward<LicensePlateT>(value));
72 return *this;
73 }
75
77
83 inline double GetMaxSpeed() const { return m_maxSpeed; }
84 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
85 inline void SetMaxSpeed(double value) {
86 m_maxSpeedHasBeenSet = true;
87 m_maxSpeed = value;
88 }
89 inline RouteScooterOptions& WithMaxSpeed(double value) {
90 SetMaxSpeed(value);
91 return *this;
92 }
94
96
102 inline int GetOccupancy() const { return m_occupancy; }
103 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
104 inline void SetOccupancy(int value) {
105 m_occupancyHasBeenSet = true;
106 m_occupancy = value;
107 }
109 SetOccupancy(value);
110 return *this;
111 }
113 private:
115
116 RouteVehicleLicensePlate m_licensePlate;
117
118 double m_maxSpeed{0.0};
119
120 int m_occupancy{0};
121 bool m_engineTypeHasBeenSet = false;
122 bool m_licensePlateHasBeenSet = false;
123 bool m_maxSpeedHasBeenSet = false;
124 bool m_occupancyHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace GeoRoutes
129} // namespace Aws
const RouteVehicleLicensePlate & GetLicensePlate() const
AWS_GEOROUTES_API RouteScooterOptions(Aws::Utils::Json::JsonView jsonValue)
RouteScooterOptions & WithLicensePlate(LicensePlateT &&value)
RouteScooterOptions & WithMaxSpeed(double value)
AWS_GEOROUTES_API RouteScooterOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteScooterOptions()=default
RouteScooterOptions & WithEngineType(RouteEngineType value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteScooterOptions & WithOccupancy(int value)
Aws::Utils::Json::JsonValue JsonValue