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>
37 AWS_GEOROUTES_API
Route() =
default;
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>>
57 template<
typename LegsT = RouteLeg>
58 Route&
AddLegs(LegsT&& value) { m_legsHasBeenSet =
true; m_legs.emplace_back(std::forward<LegsT>(value));
return *
this; }
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>>
72 template<
typename MajorRoadLabelsT = RouteMajorRoadLabel>
73 Route&
AddMajorRoadLabels(MajorRoadLabelsT&& value) { m_majorRoadLabelsHasBeenSet =
true; m_majorRoadLabels.emplace_back(std::forward<MajorRoadLabelsT>(value));
return *
this; }
82 template<
typename SummaryT = RouteSummary>
83 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet =
true; m_summary = std::forward<SummaryT>(value); }
84 template<
typename SummaryT = RouteSummary>
90 bool m_legsHasBeenSet =
false;
93 bool m_majorRoadLabelsHasBeenSet =
false;
96 bool m_summaryHasBeenSet =
false;
Route & AddLegs(LegsT &&value)
Route & AddMajorRoadLabels(MajorRoadLabelsT &&value)
AWS_GEOROUTES_API Route()=default
Route & WithLegs(LegsT &&value)
const Aws::Vector< RouteMajorRoadLabel > & GetMajorRoadLabels() const
bool MajorRoadLabelsHasBeenSet() const
Route & WithMajorRoadLabels(MajorRoadLabelsT &&value)
const Aws::Vector< RouteLeg > & GetLegs() const
bool LegsHasBeenSet() const
void SetSummary(SummaryT &&value)
void SetMajorRoadLabels(MajorRoadLabelsT &&value)
AWS_GEOROUTES_API Route(Aws::Utils::Json::JsonView jsonValue)
Route & WithSummary(SummaryT &&value)
AWS_GEOROUTES_API Route & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
bool SummaryHasBeenSet() const
const RouteSummary & GetSummary() const
void SetLegs(LegsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue