AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IsolineCarOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/IsolineEngineType.h>
9#include <aws/geo-routes/model/IsolineVehicleLicensePlate.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 IsolineCarOptions() = default;
37 AWS_GEOROUTES_API IsolineCarOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline IsolineEngineType GetEngineType() const { return m_engineType; }
47 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
48 inline void SetEngineType(IsolineEngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
49 inline IsolineCarOptions& WithEngineType(IsolineEngineType value) { SetEngineType(value); return *this;}
51
53
56 inline const IsolineVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
57 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
58 template<typename LicensePlateT = IsolineVehicleLicensePlate>
59 void SetLicensePlate(LicensePlateT&& value) { m_licensePlateHasBeenSet = true; m_licensePlate = std::forward<LicensePlateT>(value); }
60 template<typename LicensePlateT = IsolineVehicleLicensePlate>
61 IsolineCarOptions& WithLicensePlate(LicensePlateT&& value) { SetLicensePlate(std::forward<LicensePlateT>(value)); return *this;}
63
65
68 inline double GetMaxSpeed() const { return m_maxSpeed; }
69 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
70 inline void SetMaxSpeed(double value) { m_maxSpeedHasBeenSet = true; m_maxSpeed = value; }
71 inline IsolineCarOptions& WithMaxSpeed(double value) { SetMaxSpeed(value); return *this;}
73
75
79 inline int GetOccupancy() const { return m_occupancy; }
80 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
81 inline void SetOccupancy(int value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
82 inline IsolineCarOptions& WithOccupancy(int value) { SetOccupancy(value); return *this;}
84 private:
85
87 bool m_engineTypeHasBeenSet = false;
88
89 IsolineVehicleLicensePlate m_licensePlate;
90 bool m_licensePlateHasBeenSet = false;
91
92 double m_maxSpeed{0.0};
93 bool m_maxSpeedHasBeenSet = false;
94
95 int m_occupancy{0};
96 bool m_occupancyHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GeoRoutes
101} // namespace Aws
IsolineCarOptions & WithEngineType(IsolineEngineType value)
AWS_GEOROUTES_API IsolineCarOptions()=default
IsolineCarOptions & WithMaxSpeed(double value)
AWS_GEOROUTES_API IsolineCarOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API IsolineCarOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
IsolineCarOptions & WithOccupancy(int value)
const IsolineVehicleLicensePlate & GetLicensePlate() const
void SetEngineType(IsolineEngineType value)
void SetLicensePlate(LicensePlateT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
IsolineCarOptions & WithLicensePlate(LicensePlateT &&value)
Aws::Utils::Json::JsonValue JsonValue