AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
WaypointOptimizationOptimizedWaypoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.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
29 public:
30 AWS_GEOROUTES_API WaypointOptimizationOptimizedWaypoint() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::String& GetArrivalTime() const { return m_arrivalTime; }
43 inline bool ArrivalTimeHasBeenSet() const { return m_arrivalTimeHasBeenSet; }
44 template <typename ArrivalTimeT = Aws::String>
45 void SetArrivalTime(ArrivalTimeT&& value) {
46 m_arrivalTimeHasBeenSet = true;
47 m_arrivalTime = std::forward<ArrivalTimeT>(value);
48 }
49 template <typename ArrivalTimeT = Aws::String>
51 SetArrivalTime(std::forward<ArrivalTimeT>(value));
52 return *this;
53 }
55
57
62 inline int GetClusterIndex() const { return m_clusterIndex; }
63 inline bool ClusterIndexHasBeenSet() const { return m_clusterIndexHasBeenSet; }
64 inline void SetClusterIndex(int value) {
65 m_clusterIndexHasBeenSet = true;
66 m_clusterIndex = value;
67 }
69 SetClusterIndex(value);
70 return *this;
71 }
73
75
81 inline const Aws::String& GetDepartureTime() const { return m_departureTime; }
82 inline bool DepartureTimeHasBeenSet() const { return m_departureTimeHasBeenSet; }
83 template <typename DepartureTimeT = Aws::String>
84 void SetDepartureTime(DepartureTimeT&& value) {
85 m_departureTimeHasBeenSet = true;
86 m_departureTime = std::forward<DepartureTimeT>(value);
87 }
88 template <typename DepartureTimeT = Aws::String>
90 SetDepartureTime(std::forward<DepartureTimeT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetId() const { return m_id; }
100 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
101 template <typename IdT = Aws::String>
102 void SetId(IdT&& value) {
103 m_idHasBeenSet = true;
104 m_id = std::forward<IdT>(value);
105 }
106 template <typename IdT = Aws::String>
108 SetId(std::forward<IdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
118 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
119 template <typename PositionT = Aws::Vector<double>>
120 void SetPosition(PositionT&& value) {
121 m_positionHasBeenSet = true;
122 m_position = std::forward<PositionT>(value);
123 }
124 template <typename PositionT = Aws::Vector<double>>
126 SetPosition(std::forward<PositionT>(value));
127 return *this;
128 }
130 m_positionHasBeenSet = true;
131 m_position.push_back(value);
132 return *this;
133 }
135 private:
136 Aws::String m_arrivalTime;
137
138 int m_clusterIndex{0};
139
140 Aws::String m_departureTime;
141
142 Aws::String m_id;
143
144 Aws::Vector<double> m_position;
145 bool m_arrivalTimeHasBeenSet = false;
146 bool m_clusterIndexHasBeenSet = false;
147 bool m_departureTimeHasBeenSet = false;
148 bool m_idHasBeenSet = false;
149 bool m_positionHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace GeoRoutes
154} // 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