AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
WaypointOptimizationOptimizedWaypoint.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
33 {
34 public:
35 AWS_GEOROUTES_API WaypointOptimizationOptimizedWaypoint() = default;
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetArrivalTime() const { return m_arrivalTime; }
49 inline bool ArrivalTimeHasBeenSet() const { return m_arrivalTimeHasBeenSet; }
50 template<typename ArrivalTimeT = Aws::String>
51 void SetArrivalTime(ArrivalTimeT&& value) { m_arrivalTimeHasBeenSet = true; m_arrivalTime = std::forward<ArrivalTimeT>(value); }
52 template<typename ArrivalTimeT = Aws::String>
53 WaypointOptimizationOptimizedWaypoint& WithArrivalTime(ArrivalTimeT&& value) { SetArrivalTime(std::forward<ArrivalTimeT>(value)); return *this;}
55
57
62 inline int GetClusterIndex() const { return m_clusterIndex; }
63 inline bool ClusterIndexHasBeenSet() const { return m_clusterIndexHasBeenSet; }
64 inline void SetClusterIndex(int value) { m_clusterIndexHasBeenSet = true; m_clusterIndex = value; }
67
69
75 inline const Aws::String& GetDepartureTime() const { return m_departureTime; }
76 inline bool DepartureTimeHasBeenSet() const { return m_departureTimeHasBeenSet; }
77 template<typename DepartureTimeT = Aws::String>
78 void SetDepartureTime(DepartureTimeT&& value) { m_departureTimeHasBeenSet = true; m_departureTime = std::forward<DepartureTimeT>(value); }
79 template<typename DepartureTimeT = Aws::String>
80 WaypointOptimizationOptimizedWaypoint& WithDepartureTime(DepartureTimeT&& value) { SetDepartureTime(std::forward<DepartureTimeT>(value)); return *this;}
82
84
87 inline const Aws::String& GetId() const { return m_id; }
88 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
89 template<typename IdT = Aws::String>
90 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
91 template<typename IdT = Aws::String>
92 WaypointOptimizationOptimizedWaypoint& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
94
96
99 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
100 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
101 template<typename PositionT = Aws::Vector<double>>
102 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
103 template<typename PositionT = Aws::Vector<double>>
104 WaypointOptimizationOptimizedWaypoint& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
105 inline WaypointOptimizationOptimizedWaypoint& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
107 private:
108
109 Aws::String m_arrivalTime;
110 bool m_arrivalTimeHasBeenSet = false;
111
112 int m_clusterIndex{0};
113 bool m_clusterIndexHasBeenSet = false;
114
115 Aws::String m_departureTime;
116 bool m_departureTimeHasBeenSet = false;
117
118 Aws::String m_id;
119 bool m_idHasBeenSet = false;
120
121 Aws::Vector<double> m_position;
122 bool m_positionHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace GeoRoutes
127} // namespace Aws
AWS_GEOROUTES_API WaypointOptimizationOptimizedWaypoint(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationOptimizedWaypoint & WithPosition(PositionT &&value)
AWS_GEOROUTES_API WaypointOptimizationOptimizedWaypoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationOptimizedWaypoint & WithArrivalTime(ArrivalTimeT &&value)
WaypointOptimizationOptimizedWaypoint & WithDepartureTime(DepartureTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue