AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
RouteMajorRoadLabel.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/LocalizedString.h>
9#include <aws/geo-routes/model/RouteNumber.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
30 public:
31 AWS_GEOROUTES_API RouteMajorRoadLabel() = default;
32 AWS_GEOROUTES_API RouteMajorRoadLabel(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const LocalizedString& GetRoadName() const { return m_roadName; }
41 inline bool RoadNameHasBeenSet() const { return m_roadNameHasBeenSet; }
42 template <typename RoadNameT = LocalizedString>
43 void SetRoadName(RoadNameT&& value) {
44 m_roadNameHasBeenSet = true;
45 m_roadName = std::forward<RoadNameT>(value);
46 }
47 template <typename RoadNameT = LocalizedString>
48 RouteMajorRoadLabel& WithRoadName(RoadNameT&& value) {
49 SetRoadName(std::forward<RoadNameT>(value));
50 return *this;
51 }
53
55
58 inline const RouteNumber& GetRouteNumber() const { return m_routeNumber; }
59 inline bool RouteNumberHasBeenSet() const { return m_routeNumberHasBeenSet; }
60 template <typename RouteNumberT = RouteNumber>
61 void SetRouteNumber(RouteNumberT&& value) {
62 m_routeNumberHasBeenSet = true;
63 m_routeNumber = std::forward<RouteNumberT>(value);
64 }
65 template <typename RouteNumberT = RouteNumber>
66 RouteMajorRoadLabel& WithRouteNumber(RouteNumberT&& value) {
67 SetRouteNumber(std::forward<RouteNumberT>(value));
68 return *this;
69 }
71 private:
72 LocalizedString m_roadName;
73
74 RouteNumber m_routeNumber;
75 bool m_roadNameHasBeenSet = false;
76 bool m_routeNumberHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace GeoRoutes
81} // namespace Aws
AWS_GEOROUTES_API RouteMajorRoadLabel(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const LocalizedString & GetRoadName() const
RouteMajorRoadLabel & WithRoadName(RoadNameT &&value)
AWS_GEOROUTES_API RouteMajorRoadLabel()=default
AWS_GEOROUTES_API RouteMajorRoadLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteMajorRoadLabel & WithRouteNumber(RouteNumberT &&value)
Aws::Utils::Json::JsonValue JsonValue