AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RouteMatrixCarOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteMatrixVehicleLicensePlate.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GEOROUTES_API RouteMatrixCarOptions() = default;
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const RouteMatrixVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
46 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
47 template<typename LicensePlateT = RouteMatrixVehicleLicensePlate>
48 void SetLicensePlate(LicensePlateT&& value) { m_licensePlateHasBeenSet = true; m_licensePlate = std::forward<LicensePlateT>(value); }
49 template<typename LicensePlateT = RouteMatrixVehicleLicensePlate>
50 RouteMatrixCarOptions& WithLicensePlate(LicensePlateT&& value) { SetLicensePlate(std::forward<LicensePlateT>(value)); return *this;}
52
54
57 inline double GetMaxSpeed() const { return m_maxSpeed; }
58 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
59 inline void SetMaxSpeed(double value) { m_maxSpeedHasBeenSet = true; m_maxSpeed = value; }
60 inline RouteMatrixCarOptions& WithMaxSpeed(double value) { SetMaxSpeed(value); return *this;}
62
64
68 inline int GetOccupancy() const { return m_occupancy; }
69 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
70 inline void SetOccupancy(int value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
71 inline RouteMatrixCarOptions& WithOccupancy(int value) { SetOccupancy(value); return *this;}
73 private:
74
75 RouteMatrixVehicleLicensePlate m_licensePlate;
76 bool m_licensePlateHasBeenSet = false;
77
78 double m_maxSpeed{0.0};
79 bool m_maxSpeedHasBeenSet = false;
80
81 int m_occupancy{0};
82 bool m_occupancyHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace GeoRoutes
87} // namespace Aws
RouteMatrixCarOptions & WithLicensePlate(LicensePlateT &&value)
const RouteMatrixVehicleLicensePlate & GetLicensePlate() const
AWS_GEOROUTES_API RouteMatrixCarOptions()=default
AWS_GEOROUTES_API RouteMatrixCarOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteMatrixCarOptions(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixCarOptions & WithMaxSpeed(double value)
RouteMatrixCarOptions & WithOccupancy(int value)
Aws::Utils::Json::JsonValue JsonValue