AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
RouteRoad.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/LocalizedString.h>
10#include <aws/geo-routes/model/RouteNumber.h>
11#include <aws/geo-routes/model/RouteRoadType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes {
23namespace Model {
24
30class RouteRoad {
31 public:
32 AWS_GEOROUTES_API RouteRoad() = default;
33 AWS_GEOROUTES_API RouteRoad(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOROUTES_API RouteRoad& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<LocalizedString>& GetRoadName() const { return m_roadName; }
42 inline bool RoadNameHasBeenSet() const { return m_roadNameHasBeenSet; }
43 template <typename RoadNameT = Aws::Vector<LocalizedString>>
44 void SetRoadName(RoadNameT&& value) {
45 m_roadNameHasBeenSet = true;
46 m_roadName = std::forward<RoadNameT>(value);
47 }
48 template <typename RoadNameT = Aws::Vector<LocalizedString>>
49 RouteRoad& WithRoadName(RoadNameT&& value) {
50 SetRoadName(std::forward<RoadNameT>(value));
51 return *this;
52 }
53 template <typename RoadNameT = LocalizedString>
54 RouteRoad& AddRoadName(RoadNameT&& value) {
55 m_roadNameHasBeenSet = true;
56 m_roadName.emplace_back(std::forward<RoadNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<RouteNumber>& GetRouteNumber() const { return m_routeNumber; }
66 inline bool RouteNumberHasBeenSet() const { return m_routeNumberHasBeenSet; }
67 template <typename RouteNumberT = Aws::Vector<RouteNumber>>
68 void SetRouteNumber(RouteNumberT&& value) {
69 m_routeNumberHasBeenSet = true;
70 m_routeNumber = std::forward<RouteNumberT>(value);
71 }
72 template <typename RouteNumberT = Aws::Vector<RouteNumber>>
73 RouteRoad& WithRouteNumber(RouteNumberT&& value) {
74 SetRouteNumber(std::forward<RouteNumberT>(value));
75 return *this;
76 }
77 template <typename RouteNumberT = RouteNumber>
78 RouteRoad& AddRouteNumber(RouteNumberT&& value) {
79 m_routeNumberHasBeenSet = true;
80 m_routeNumber.emplace_back(std::forward<RouteNumberT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Vector<LocalizedString>& GetTowards() const { return m_towards; }
90 inline bool TowardsHasBeenSet() const { return m_towardsHasBeenSet; }
91 template <typename TowardsT = Aws::Vector<LocalizedString>>
92 void SetTowards(TowardsT&& value) {
93 m_towardsHasBeenSet = true;
94 m_towards = std::forward<TowardsT>(value);
95 }
96 template <typename TowardsT = Aws::Vector<LocalizedString>>
97 RouteRoad& WithTowards(TowardsT&& value) {
98 SetTowards(std::forward<TowardsT>(value));
99 return *this;
100 }
101 template <typename TowardsT = LocalizedString>
102 RouteRoad& AddTowards(TowardsT&& value) {
103 m_towardsHasBeenSet = true;
104 m_towards.emplace_back(std::forward<TowardsT>(value));
105 return *this;
106 }
108
110
113 inline RouteRoadType GetType() const { return m_type; }
114 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
115 inline void SetType(RouteRoadType value) {
116 m_typeHasBeenSet = true;
117 m_type = value;
118 }
120 SetType(value);
121 return *this;
122 }
124 private:
126
127 Aws::Vector<RouteNumber> m_routeNumber;
128
130
132 bool m_roadNameHasBeenSet = false;
133 bool m_routeNumberHasBeenSet = false;
134 bool m_towardsHasBeenSet = false;
135 bool m_typeHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace GeoRoutes
140} // namespace Aws
RouteRoad & AddRoadName(RoadNameT &&value)
Definition RouteRoad.h:54
const Aws::Vector< LocalizedString > & GetRoadName() const
Definition RouteRoad.h:41
RouteRoad & AddTowards(TowardsT &&value)
Definition RouteRoad.h:102
void SetRouteNumber(RouteNumberT &&value)
Definition RouteRoad.h:68
RouteRoadType GetType() const
Definition RouteRoad.h:113
const Aws::Vector< RouteNumber > & GetRouteNumber() const
Definition RouteRoad.h:65
void SetTowards(TowardsT &&value)
Definition RouteRoad.h:92
RouteRoad & AddRouteNumber(RouteNumberT &&value)
Definition RouteRoad.h:78
AWS_GEOROUTES_API RouteRoad(Aws::Utils::Json::JsonView jsonValue)
void SetRoadName(RoadNameT &&value)
Definition RouteRoad.h:44
void SetType(RouteRoadType value)
Definition RouteRoad.h:115
RouteRoad & WithType(RouteRoadType value)
Definition RouteRoad.h:119
RouteRoad & WithRoadName(RoadNameT &&value)
Definition RouteRoad.h:49
AWS_GEOROUTES_API RouteRoad()=default
const Aws::Vector< LocalizedString > & GetTowards() const
Definition RouteRoad.h:89
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteRoad & WithRouteNumber(RouteNumberT &&value)
Definition RouteRoad.h:73
RouteRoad & WithTowards(TowardsT &&value)
Definition RouteRoad.h:97
AWS_GEOROUTES_API RouteRoad & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue