AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRoadName(const Aws::Vector<LocalizedString>& value) { m_roadNameHasBeenSet = true; m_roadName = value; }
50 inline void SetRoadName(Aws::Vector<LocalizedString>&& value) { m_roadNameHasBeenSet = true; m_roadName = std::move(value); }
51 inline RouteRoad& WithRoadName(const Aws::Vector<LocalizedString>& value) { SetRoadName(value); return *this;}
52 inline RouteRoad& WithRoadName(Aws::Vector<LocalizedString>&& value) { SetRoadName(std::move(value)); return *this;}
53 inline RouteRoad& AddRoadName(const LocalizedString& value) { m_roadNameHasBeenSet = true; m_roadName.push_back(value); return *this; }
54 inline RouteRoad& AddRoadName(LocalizedString&& value) { m_roadNameHasBeenSet = true; m_roadName.push_back(std::move(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 inline void SetRouteNumber(const Aws::Vector<RouteNumber>& value) { m_routeNumberHasBeenSet = true; m_routeNumber = value; }
64 inline void SetRouteNumber(Aws::Vector<RouteNumber>&& value) { m_routeNumberHasBeenSet = true; m_routeNumber = std::move(value); }
65 inline RouteRoad& WithRouteNumber(const Aws::Vector<RouteNumber>& value) { SetRouteNumber(value); return *this;}
66 inline RouteRoad& WithRouteNumber(Aws::Vector<RouteNumber>&& value) { SetRouteNumber(std::move(value)); return *this;}
67 inline RouteRoad& AddRouteNumber(const RouteNumber& value) { m_routeNumberHasBeenSet = true; m_routeNumber.push_back(value); return *this; }
68 inline RouteRoad& AddRouteNumber(RouteNumber&& value) { m_routeNumberHasBeenSet = true; m_routeNumber.push_back(std::move(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 inline void SetTowards(const Aws::Vector<LocalizedString>& value) { m_towardsHasBeenSet = true; m_towards = value; }
78 inline void SetTowards(Aws::Vector<LocalizedString>&& value) { m_towardsHasBeenSet = true; m_towards = std::move(value); }
79 inline RouteRoad& WithTowards(const Aws::Vector<LocalizedString>& value) { SetTowards(value); return *this;}
80 inline RouteRoad& WithTowards(Aws::Vector<LocalizedString>&& value) { SetTowards(std::move(value)); return *this;}
81 inline RouteRoad& AddTowards(const LocalizedString& value) { m_towardsHasBeenSet = true; m_towards.push_back(value); return *this; }
82 inline RouteRoad& AddTowards(LocalizedString&& value) { m_towardsHasBeenSet = true; m_towards.push_back(std::move(value)); return *this; }
84
86
89 inline const RouteRoadType& GetType() const{ return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(const RouteRoadType& value) { m_typeHasBeenSet = true; m_type = value; }
92 inline void SetType(RouteRoadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
93 inline RouteRoad& WithType(const RouteRoadType& value) { SetType(value); return *this;}
94 inline RouteRoad& WithType(RouteRoadType&& value) { SetType(std::move(value)); return *this;}
96 private:
97
99 bool m_roadNameHasBeenSet = false;
100
101 Aws::Vector<RouteNumber> m_routeNumber;
102 bool m_routeNumberHasBeenSet = false;
103
105 bool m_towardsHasBeenSet = false;
106
107 RouteRoadType m_type;
108 bool m_typeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace GeoRoutes
113} // namespace Aws
const Aws::Vector< LocalizedString > & GetRoadName() const
Definition RouteRoad.h:47
void SetTowards(const Aws::Vector< LocalizedString > &value)
Definition RouteRoad.h:77
RouteRoad & AddRouteNumber(RouteNumber &&value)
Definition RouteRoad.h:68
RouteRoad & WithTowards(const Aws::Vector< LocalizedString > &value)
Definition RouteRoad.h:79
RouteRoad & WithRoadName(const Aws::Vector< LocalizedString > &value)
Definition RouteRoad.h:51
const Aws::Vector< RouteNumber > & GetRouteNumber() const
Definition RouteRoad.h:61
AWS_GEOROUTES_API RouteRoad()
void SetType(RouteRoadType &&value)
Definition RouteRoad.h:92
void SetRoadName(Aws::Vector< LocalizedString > &&value)
Definition RouteRoad.h:50
RouteRoad & WithRoadName(Aws::Vector< LocalizedString > &&value)
Definition RouteRoad.h:52
void SetRoadName(const Aws::Vector< LocalizedString > &value)
Definition RouteRoad.h:49
RouteRoad & AddRoadName(LocalizedString &&value)
Definition RouteRoad.h:54
const RouteRoadType & GetType() const
Definition RouteRoad.h:89
RouteRoad & WithTowards(Aws::Vector< LocalizedString > &&value)
Definition RouteRoad.h:80
RouteRoad & WithType(const RouteRoadType &value)
Definition RouteRoad.h:93
AWS_GEOROUTES_API RouteRoad(Aws::Utils::Json::JsonView jsonValue)
RouteRoad & AddRouteNumber(const RouteNumber &value)
Definition RouteRoad.h:67
RouteRoad & AddTowards(LocalizedString &&value)
Definition RouteRoad.h:82
void SetType(const RouteRoadType &value)
Definition RouteRoad.h:91
const Aws::Vector< LocalizedString > & GetTowards() const
Definition RouteRoad.h:75
void SetTowards(Aws::Vector< LocalizedString > &&value)
Definition RouteRoad.h:78
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRouteNumber(const Aws::Vector< RouteNumber > &value)
Definition RouteRoad.h:63
RouteRoad & WithRouteNumber(Aws::Vector< RouteNumber > &&value)
Definition RouteRoad.h:66
RouteRoad & AddRoadName(const LocalizedString &value)
Definition RouteRoad.h:53
void SetRouteNumber(Aws::Vector< RouteNumber > &&value)
Definition RouteRoad.h:64
RouteRoad & WithRouteNumber(const Aws::Vector< RouteNumber > &value)
Definition RouteRoad.h:65
RouteRoad & WithType(RouteRoadType &&value)
Definition RouteRoad.h:94
AWS_GEOROUTES_API RouteRoad & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteRoad & AddTowards(const LocalizedString &value)
Definition RouteRoad.h:81
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue