AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
IsolineScooterOptions.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
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
30 public:
31 AWS_GEOROUTES_API IsolineScooterOptions() = default;
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline IsolineEngineType GetEngineType() const { return m_engineType; }
41 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
42 inline void SetEngineType(IsolineEngineType value) {
43 m_engineTypeHasBeenSet = true;
44 m_engineType = value;
45 }
47 SetEngineType(value);
48 return *this;
49 }
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) {
60 m_licensePlateHasBeenSet = true;
61 m_licensePlate = std::forward<LicensePlateT>(value);
62 }
63 template <typename LicensePlateT = IsolineVehicleLicensePlate>
64 IsolineScooterOptions& WithLicensePlate(LicensePlateT&& value) {
65 SetLicensePlate(std::forward<LicensePlateT>(value));
66 return *this;
67 }
69
71
75 inline double GetMaxSpeed() const { return m_maxSpeed; }
76 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
77 inline void SetMaxSpeed(double value) {
78 m_maxSpeedHasBeenSet = true;
79 m_maxSpeed = value;
80 }
81 inline IsolineScooterOptions& WithMaxSpeed(double value) {
82 SetMaxSpeed(value);
83 return *this;
84 }
86
88
92 inline int GetOccupancy() const { return m_occupancy; }
93 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
94 inline void SetOccupancy(int value) {
95 m_occupancyHasBeenSet = true;
96 m_occupancy = value;
97 }
99 SetOccupancy(value);
100 return *this;
101 }
103 private:
105
106 IsolineVehicleLicensePlate m_licensePlate;
107
108 double m_maxSpeed{0.0};
109
110 int m_occupancy{0};
111 bool m_engineTypeHasBeenSet = false;
112 bool m_licensePlateHasBeenSet = false;
113 bool m_maxSpeedHasBeenSet = false;
114 bool m_occupancyHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace GeoRoutes
119} // namespace Aws
IsolineScooterOptions & WithMaxSpeed(double value)
AWS_GEOROUTES_API IsolineScooterOptions(Aws::Utils::Json::JsonView jsonValue)
IsolineScooterOptions & WithEngineType(IsolineEngineType value)
AWS_GEOROUTES_API IsolineScooterOptions()=default
IsolineScooterOptions & WithOccupancy(int value)
AWS_GEOROUTES_API IsolineScooterOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const IsolineVehicleLicensePlate & GetLicensePlate() const
IsolineScooterOptions & WithLicensePlate(LicensePlateT &&value)
Aws::Utils::Json::JsonValue JsonValue