AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteVehiclePlace.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 <aws/geo-routes/model/RouteSideOfStreet.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoRoutes
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GEOROUTES_API RouteVehiclePlace();
38 AWS_GEOROUTES_API RouteVehiclePlace(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline RouteVehiclePlace& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline RouteVehiclePlace& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline RouteVehiclePlace& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::Vector<double>& GetOriginalPosition() const{ return m_originalPosition; }
62 inline bool OriginalPositionHasBeenSet() const { return m_originalPositionHasBeenSet; }
63 inline void SetOriginalPosition(const Aws::Vector<double>& value) { m_originalPositionHasBeenSet = true; m_originalPosition = value; }
64 inline void SetOriginalPosition(Aws::Vector<double>&& value) { m_originalPositionHasBeenSet = true; m_originalPosition = std::move(value); }
66 inline RouteVehiclePlace& WithOriginalPosition(Aws::Vector<double>&& value) { SetOriginalPosition(std::move(value)); return *this;}
67 inline RouteVehiclePlace& AddOriginalPosition(double value) { m_originalPositionHasBeenSet = true; m_originalPosition.push_back(value); return *this; }
69
71
74 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
75 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
76 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
77 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
78 inline RouteVehiclePlace& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
79 inline RouteVehiclePlace& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
80 inline RouteVehiclePlace& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
82
84
88 inline const RouteSideOfStreet& GetSideOfStreet() const{ return m_sideOfStreet; }
89 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
90 inline void SetSideOfStreet(const RouteSideOfStreet& value) { m_sideOfStreetHasBeenSet = true; m_sideOfStreet = value; }
91 inline void SetSideOfStreet(RouteSideOfStreet&& value) { m_sideOfStreetHasBeenSet = true; m_sideOfStreet = std::move(value); }
92 inline RouteVehiclePlace& WithSideOfStreet(const RouteSideOfStreet& value) { SetSideOfStreet(value); return *this;}
93 inline RouteVehiclePlace& WithSideOfStreet(RouteSideOfStreet&& value) { SetSideOfStreet(std::move(value)); return *this;}
95
97
100 inline int GetWaypointIndex() const{ return m_waypointIndex; }
101 inline bool WaypointIndexHasBeenSet() const { return m_waypointIndexHasBeenSet; }
102 inline void SetWaypointIndex(int value) { m_waypointIndexHasBeenSet = true; m_waypointIndex = value; }
103 inline RouteVehiclePlace& WithWaypointIndex(int value) { SetWaypointIndex(value); return *this;}
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::Vector<double> m_originalPosition;
111 bool m_originalPositionHasBeenSet = false;
112
113 Aws::Vector<double> m_position;
114 bool m_positionHasBeenSet = false;
115
116 RouteSideOfStreet m_sideOfStreet;
117 bool m_sideOfStreetHasBeenSet = false;
118
119 int m_waypointIndex;
120 bool m_waypointIndexHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace GeoRoutes
125} // namespace Aws
AWS_GEOROUTES_API RouteVehiclePlace(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetPosition() const
RouteVehiclePlace & WithWaypointIndex(int value)
RouteVehiclePlace & WithPosition(const Aws::Vector< double > &value)
RouteVehiclePlace & WithOriginalPosition(Aws::Vector< double > &&value)
RouteVehiclePlace & WithName(const char *value)
RouteVehiclePlace & WithOriginalPosition(const Aws::Vector< double > &value)
void SetSideOfStreet(const RouteSideOfStreet &value)
void SetPosition(const Aws::Vector< double > &value)
RouteVehiclePlace & WithName(Aws::String &&value)
void SetOriginalPosition(const Aws::Vector< double > &value)
RouteVehiclePlace & AddOriginalPosition(double value)
RouteVehiclePlace & WithSideOfStreet(const RouteSideOfStreet &value)
RouteVehiclePlace & WithPosition(Aws::Vector< double > &&value)
RouteVehiclePlace & WithName(const Aws::String &value)
const RouteSideOfStreet & GetSideOfStreet() const
const Aws::Vector< double > & GetOriginalPosition() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOriginalPosition(Aws::Vector< double > &&value)
void SetName(const Aws::String &value)
RouteVehiclePlace & AddPosition(double value)
RouteVehiclePlace & WithSideOfStreet(RouteSideOfStreet &&value)
void SetPosition(Aws::Vector< double > &&value)
AWS_GEOROUTES_API RouteVehiclePlace & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSideOfStreet(RouteSideOfStreet &&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