AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Route.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/RouteSummary.h>
10#include <aws/geo-routes/model/RouteLeg.h>
11#include <aws/geo-routes/model/RouteMajorRoadLabel.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
34 class Route
35 {
36 public:
37 AWS_GEOROUTES_API Route() = default;
38 AWS_GEOROUTES_API Route(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOROUTES_API Route& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::Vector<RouteLeg>& GetLegs() const { return m_legs; }
52 inline bool LegsHasBeenSet() const { return m_legsHasBeenSet; }
53 template<typename LegsT = Aws::Vector<RouteLeg>>
54 void SetLegs(LegsT&& value) { m_legsHasBeenSet = true; m_legs = std::forward<LegsT>(value); }
55 template<typename LegsT = Aws::Vector<RouteLeg>>
56 Route& WithLegs(LegsT&& value) { SetLegs(std::forward<LegsT>(value)); return *this;}
57 template<typename LegsT = RouteLeg>
58 Route& AddLegs(LegsT&& value) { m_legsHasBeenSet = true; m_legs.emplace_back(std::forward<LegsT>(value)); return *this; }
60
62
66 inline const Aws::Vector<RouteMajorRoadLabel>& GetMajorRoadLabels() const { return m_majorRoadLabels; }
67 inline bool MajorRoadLabelsHasBeenSet() const { return m_majorRoadLabelsHasBeenSet; }
68 template<typename MajorRoadLabelsT = Aws::Vector<RouteMajorRoadLabel>>
69 void SetMajorRoadLabels(MajorRoadLabelsT&& value) { m_majorRoadLabelsHasBeenSet = true; m_majorRoadLabels = std::forward<MajorRoadLabelsT>(value); }
70 template<typename MajorRoadLabelsT = Aws::Vector<RouteMajorRoadLabel>>
71 Route& WithMajorRoadLabels(MajorRoadLabelsT&& value) { SetMajorRoadLabels(std::forward<MajorRoadLabelsT>(value)); return *this;}
72 template<typename MajorRoadLabelsT = RouteMajorRoadLabel>
73 Route& AddMajorRoadLabels(MajorRoadLabelsT&& value) { m_majorRoadLabelsHasBeenSet = true; m_majorRoadLabels.emplace_back(std::forward<MajorRoadLabelsT>(value)); return *this; }
75
77
80 inline const RouteSummary& GetSummary() const { return m_summary; }
81 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
82 template<typename SummaryT = RouteSummary>
83 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
84 template<typename SummaryT = RouteSummary>
85 Route& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
87 private:
88
90 bool m_legsHasBeenSet = false;
91
92 Aws::Vector<RouteMajorRoadLabel> m_majorRoadLabels;
93 bool m_majorRoadLabelsHasBeenSet = false;
94
95 RouteSummary m_summary;
96 bool m_summaryHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GeoRoutes
101} // namespace Aws
Route & AddLegs(LegsT &&value)
Definition Route.h:58
Route & AddMajorRoadLabels(MajorRoadLabelsT &&value)
Definition Route.h:73
AWS_GEOROUTES_API Route()=default
Route & WithLegs(LegsT &&value)
Definition Route.h:56
const Aws::Vector< RouteMajorRoadLabel > & GetMajorRoadLabels() const
Definition Route.h:66
bool MajorRoadLabelsHasBeenSet() const
Definition Route.h:67
Route & WithMajorRoadLabels(MajorRoadLabelsT &&value)
Definition Route.h:71
const Aws::Vector< RouteLeg > & GetLegs() const
Definition Route.h:51
bool LegsHasBeenSet() const
Definition Route.h:52
void SetSummary(SummaryT &&value)
Definition Route.h:83
void SetMajorRoadLabels(MajorRoadLabelsT &&value)
Definition Route.h:69
AWS_GEOROUTES_API Route(Aws::Utils::Json::JsonView jsonValue)
Route & WithSummary(SummaryT &&value)
Definition Route.h:85
AWS_GEOROUTES_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
bool SummaryHasBeenSet() const
Definition Route.h:81
const RouteSummary & GetSummary() const
Definition Route.h:80
void SetLegs(LegsT &&value)
Definition Route.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue