AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteRoad.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/model/RouteRoadType.h>
10#include <aws/geo-routes/model/LocalizedString.h>
11#include <aws/geo-routes/model/RouteNumber.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoRoutes
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GEOROUTES_API RouteRoad() = default;
38 AWS_GEOROUTES_API RouteRoad(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOROUTES_API RouteRoad& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<LocalizedString>& GetRoadName() const { return m_roadName; }
48 inline bool RoadNameHasBeenSet() const { return m_roadNameHasBeenSet; }
49 template<typename RoadNameT = Aws::Vector<LocalizedString>>
50 void SetRoadName(RoadNameT&& value) { m_roadNameHasBeenSet = true; m_roadName = std::forward<RoadNameT>(value); }
51 template<typename RoadNameT = Aws::Vector<LocalizedString>>
52 RouteRoad& WithRoadName(RoadNameT&& value) { SetRoadName(std::forward<RoadNameT>(value)); return *this;}
53 template<typename RoadNameT = LocalizedString>
54 RouteRoad& AddRoadName(RoadNameT&& value) { m_roadNameHasBeenSet = true; m_roadName.emplace_back(std::forward<RoadNameT>(value)); return *this; }
56
58
61 inline const Aws::Vector<RouteNumber>& GetRouteNumber() const { return m_routeNumber; }
62 inline bool RouteNumberHasBeenSet() const { return m_routeNumberHasBeenSet; }
63 template<typename RouteNumberT = Aws::Vector<RouteNumber>>
64 void SetRouteNumber(RouteNumberT&& value) { m_routeNumberHasBeenSet = true; m_routeNumber = std::forward<RouteNumberT>(value); }
65 template<typename RouteNumberT = Aws::Vector<RouteNumber>>
66 RouteRoad& WithRouteNumber(RouteNumberT&& value) { SetRouteNumber(std::forward<RouteNumberT>(value)); return *this;}
67 template<typename RouteNumberT = RouteNumber>
68 RouteRoad& AddRouteNumber(RouteNumberT&& value) { m_routeNumberHasBeenSet = true; m_routeNumber.emplace_back(std::forward<RouteNumberT>(value)); return *this; }
70
72
75 inline const Aws::Vector<LocalizedString>& GetTowards() const { return m_towards; }
76 inline bool TowardsHasBeenSet() const { return m_towardsHasBeenSet; }
77 template<typename TowardsT = Aws::Vector<LocalizedString>>
78 void SetTowards(TowardsT&& value) { m_towardsHasBeenSet = true; m_towards = std::forward<TowardsT>(value); }
79 template<typename TowardsT = Aws::Vector<LocalizedString>>
80 RouteRoad& WithTowards(TowardsT&& value) { SetTowards(std::forward<TowardsT>(value)); return *this;}
81 template<typename TowardsT = LocalizedString>
82 RouteRoad& AddTowards(TowardsT&& value) { m_towardsHasBeenSet = true; m_towards.emplace_back(std::forward<TowardsT>(value)); return *this; }
84
86
89 inline RouteRoadType GetType() const { return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(RouteRoadType value) { m_typeHasBeenSet = true; m_type = value; }
92 inline RouteRoad& WithType(RouteRoadType value) { SetType(value); return *this;}
94 private:
95
97 bool m_roadNameHasBeenSet = false;
98
99 Aws::Vector<RouteNumber> m_routeNumber;
100 bool m_routeNumberHasBeenSet = false;
101
103 bool m_towardsHasBeenSet = false;
104
106 bool m_typeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace GeoRoutes
111} // namespace Aws
RouteRoad & AddRoadName(RoadNameT &&value)
Definition RouteRoad.h:54
const Aws::Vector< LocalizedString > & GetRoadName() const
Definition RouteRoad.h:47
RouteRoad & AddTowards(TowardsT &&value)
Definition RouteRoad.h:82
void SetRouteNumber(RouteNumberT &&value)
Definition RouteRoad.h:64
RouteRoadType GetType() const
Definition RouteRoad.h:89
const Aws::Vector< RouteNumber > & GetRouteNumber() const
Definition RouteRoad.h:61
void SetTowards(TowardsT &&value)
Definition RouteRoad.h:78
RouteRoad & AddRouteNumber(RouteNumberT &&value)
Definition RouteRoad.h:68
AWS_GEOROUTES_API RouteRoad(Aws::Utils::Json::JsonView jsonValue)
void SetRoadName(RoadNameT &&value)
Definition RouteRoad.h:50
void SetType(RouteRoadType value)
Definition RouteRoad.h:91
RouteRoad & WithType(RouteRoadType value)
Definition RouteRoad.h:92
RouteRoad & WithRoadName(RoadNameT &&value)
Definition RouteRoad.h:52
AWS_GEOROUTES_API RouteRoad()=default
const Aws::Vector< LocalizedString > & GetTowards() const
Definition RouteRoad.h:75
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteRoad & WithRouteNumber(RouteNumberT &&value)
Definition RouteRoad.h:66
RouteRoad & WithTowards(TowardsT &&value)
Definition RouteRoad.h:80
AWS_GEOROUTES_API RouteRoad & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue