AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLegs(const Aws::Vector<RouteLeg>& value) { m_legsHasBeenSet = true; m_legs = value; }
54 inline void SetLegs(Aws::Vector<RouteLeg>&& value) { m_legsHasBeenSet = true; m_legs = std::move(value); }
55 inline Route& WithLegs(const Aws::Vector<RouteLeg>& value) { SetLegs(value); return *this;}
56 inline Route& WithLegs(Aws::Vector<RouteLeg>&& value) { SetLegs(std::move(value)); return *this;}
57 inline Route& AddLegs(const RouteLeg& value) { m_legsHasBeenSet = true; m_legs.push_back(value); return *this; }
58 inline Route& AddLegs(RouteLeg&& value) { m_legsHasBeenSet = true; m_legs.push_back(std::move(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 inline void SetMajorRoadLabels(const Aws::Vector<RouteMajorRoadLabel>& value) { m_majorRoadLabelsHasBeenSet = true; m_majorRoadLabels = value; }
69 inline void SetMajorRoadLabels(Aws::Vector<RouteMajorRoadLabel>&& value) { m_majorRoadLabelsHasBeenSet = true; m_majorRoadLabels = std::move(value); }
71 inline Route& WithMajorRoadLabels(Aws::Vector<RouteMajorRoadLabel>&& value) { SetMajorRoadLabels(std::move(value)); return *this;}
72 inline Route& AddMajorRoadLabels(const RouteMajorRoadLabel& value) { m_majorRoadLabelsHasBeenSet = true; m_majorRoadLabels.push_back(value); return *this; }
73 inline Route& AddMajorRoadLabels(RouteMajorRoadLabel&& value) { m_majorRoadLabelsHasBeenSet = true; m_majorRoadLabels.push_back(std::move(value)); return *this; }
75
77
80 inline const RouteSummary& GetSummary() const{ return m_summary; }
81 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
82 inline void SetSummary(const RouteSummary& value) { m_summaryHasBeenSet = true; m_summary = value; }
83 inline void SetSummary(RouteSummary&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
84 inline Route& WithSummary(const RouteSummary& value) { SetSummary(value); return *this;}
85 inline Route& WithSummary(RouteSummary&& value) { SetSummary(std::move(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
void SetLegs(const Aws::Vector< RouteLeg > &value)
Definition Route.h:53
Route & WithLegs(const Aws::Vector< RouteLeg > &value)
Definition Route.h:55
Route & AddLegs(RouteLeg &&value)
Definition Route.h:58
Route & WithMajorRoadLabels(Aws::Vector< RouteMajorRoadLabel > &&value)
Definition Route.h:71
AWS_GEOROUTES_API Route()
const Aws::Vector< RouteMajorRoadLabel > & GetMajorRoadLabels() const
Definition Route.h:66
Route & AddLegs(const RouteLeg &value)
Definition Route.h:57
bool MajorRoadLabelsHasBeenSet() const
Definition Route.h:67
Route & AddMajorRoadLabels(const RouteMajorRoadLabel &value)
Definition Route.h:72
const Aws::Vector< RouteLeg > & GetLegs() const
Definition Route.h:51
void SetSummary(RouteSummary &&value)
Definition Route.h:83
void SetMajorRoadLabels(Aws::Vector< RouteMajorRoadLabel > &&value)
Definition Route.h:69
Route & WithMajorRoadLabels(const Aws::Vector< RouteMajorRoadLabel > &value)
Definition Route.h:70
bool LegsHasBeenSet() const
Definition Route.h:52
void SetSummary(const RouteSummary &value)
Definition Route.h:82
Route & WithSummary(RouteSummary &&value)
Definition Route.h:85
AWS_GEOROUTES_API Route(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
Route & AddMajorRoadLabels(RouteMajorRoadLabel &&value)
Definition Route.h:73
Route & WithLegs(Aws::Vector< RouteLeg > &&value)
Definition Route.h:56
void SetLegs(Aws::Vector< RouteLeg > &&value)
Definition Route.h:54
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
Route & WithSummary(const RouteSummary &value)
Definition Route.h:84
void SetMajorRoadLabels(const Aws::Vector< RouteMajorRoadLabel > &value)
Definition Route.h:68
bool SummaryHasBeenSet() const
Definition Route.h:81
const RouteSummary & GetSummary() const
Definition Route.h:80
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue