AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RouteCarOptions.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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GEOROUTES_API RouteCarOptions() = default;
37 AWS_GEOROUTES_API RouteCarOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline RouteEngineType GetEngineType() const { return m_engineType; }
47 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
48 inline void SetEngineType(RouteEngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
49 inline RouteCarOptions& WithEngineType(RouteEngineType value) { SetEngineType(value); return *this;}
51
53
56 inline const RouteVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
57 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
58 template<typename LicensePlateT = RouteVehicleLicensePlate>
59 void SetLicensePlate(LicensePlateT&& value) { m_licensePlateHasBeenSet = true; m_licensePlate = std::forward<LicensePlateT>(value); }
60 template<typename LicensePlateT = RouteVehicleLicensePlate>
61 RouteCarOptions& WithLicensePlate(LicensePlateT&& value) { SetLicensePlate(std::forward<LicensePlateT>(value)); return *this;}
63
65
69 inline double GetMaxSpeed() const { return m_maxSpeed; }
70 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
71 inline void SetMaxSpeed(double value) { m_maxSpeedHasBeenSet = true; m_maxSpeed = value; }
72 inline RouteCarOptions& WithMaxSpeed(double value) { SetMaxSpeed(value); return *this;}
74
76
80 inline int GetOccupancy() const { return m_occupancy; }
81 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
82 inline void SetOccupancy(int value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
83 inline RouteCarOptions& WithOccupancy(int value) { SetOccupancy(value); return *this;}
85 private:
86
88 bool m_engineTypeHasBeenSet = false;
89
90 RouteVehicleLicensePlate m_licensePlate;
91 bool m_licensePlateHasBeenSet = false;
92
93 double m_maxSpeed{0.0};
94 bool m_maxSpeedHasBeenSet = false;
95
96 int m_occupancy{0};
97 bool m_occupancyHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace GeoRoutes
102} // namespace Aws
RouteCarOptions & WithLicensePlate(LicensePlateT &&value)
void SetEngineType(RouteEngineType value)
AWS_GEOROUTES_API RouteCarOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const RouteVehicleLicensePlate & GetLicensePlate() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteCarOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteCarOptions()=default
RouteCarOptions & WithMaxSpeed(double value)
RouteCarOptions & WithEngineType(RouteEngineType value)
RouteCarOptions & WithOccupancy(int value)
void SetLicensePlate(LicensePlateT &&value)
Aws::Utils::Json::JsonValue JsonValue