AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetArrivalTime(const Aws::String& value) { m_arrivalTimeHasBeenSet = true; m_arrivalTime = value; }
51 inline void SetArrivalTime(Aws::String&& value) { m_arrivalTimeHasBeenSet = true; m_arrivalTime = std::move(value); }
52 inline void SetArrivalTime(const char* value) { m_arrivalTimeHasBeenSet = true; m_arrivalTime.assign(value); }
54 inline WaypointOptimizationOptimizedWaypoint& WithArrivalTime(Aws::String&& value) { SetArrivalTime(std::move(value)); return *this;}
55 inline WaypointOptimizationOptimizedWaypoint& WithArrivalTime(const char* value) { SetArrivalTime(value); return *this;}
57
59
65 inline const Aws::String& GetDepartureTime() const{ return m_departureTime; }
66 inline bool DepartureTimeHasBeenSet() const { return m_departureTimeHasBeenSet; }
67 inline void SetDepartureTime(const Aws::String& value) { m_departureTimeHasBeenSet = true; m_departureTime = value; }
68 inline void SetDepartureTime(Aws::String&& value) { m_departureTimeHasBeenSet = true; m_departureTime = std::move(value); }
69 inline void SetDepartureTime(const char* value) { m_departureTimeHasBeenSet = true; m_departureTime.assign(value); }
71 inline WaypointOptimizationOptimizedWaypoint& WithDepartureTime(Aws::String&& value) { SetDepartureTime(std::move(value)); return *this;}
72 inline WaypointOptimizationOptimizedWaypoint& WithDepartureTime(const char* value) { SetDepartureTime(value); return *this;}
74
76
79 inline const Aws::String& GetId() const{ return m_id; }
80 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
81 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
82 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
83 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
84 inline WaypointOptimizationOptimizedWaypoint& WithId(const Aws::String& value) { SetId(value); return *this;}
85 inline WaypointOptimizationOptimizedWaypoint& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
86 inline WaypointOptimizationOptimizedWaypoint& WithId(const char* value) { SetId(value); return *this;}
88
90
93 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
94 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
95 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
96 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
98 inline WaypointOptimizationOptimizedWaypoint& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
99 inline WaypointOptimizationOptimizedWaypoint& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
101 private:
102
103 Aws::String m_arrivalTime;
104 bool m_arrivalTimeHasBeenSet = false;
105
106 Aws::String m_departureTime;
107 bool m_departureTimeHasBeenSet = false;
108
109 Aws::String m_id;
110 bool m_idHasBeenSet = false;
111
112 Aws::Vector<double> m_position;
113 bool m_positionHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace GeoRoutes
118} // namespace Aws
WaypointOptimizationOptimizedWaypoint & WithArrivalTime(const Aws::String &value)
WaypointOptimizationOptimizedWaypoint & WithId(const Aws::String &value)
WaypointOptimizationOptimizedWaypoint & WithDepartureTime(Aws::String &&value)
AWS_GEOROUTES_API WaypointOptimizationOptimizedWaypoint(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationOptimizedWaypoint & WithId(Aws::String &&value)
WaypointOptimizationOptimizedWaypoint & WithDepartureTime(const Aws::String &value)
WaypointOptimizationOptimizedWaypoint & WithArrivalTime(const char *value)
AWS_GEOROUTES_API WaypointOptimizationOptimizedWaypoint & operator=(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationOptimizedWaypoint & WithArrivalTime(Aws::String &&value)
WaypointOptimizationOptimizedWaypoint & WithId(const char *value)
WaypointOptimizationOptimizedWaypoint & WithPosition(Aws::Vector< double > &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationOptimizedWaypoint & WithPosition(const Aws::Vector< double > &value)
WaypointOptimizationOptimizedWaypoint & WithDepartureTime(const char *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