7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/location/model/LegGeometry.h>
10#include <aws/location/model/Step.h>
23namespace LocationService
50 AWS_LOCATIONSERVICE_API
Leg();
70 inline Leg&
AddStartPosition(
double value) { m_startPositionHasBeenSet =
true; m_startPosition.push_back(value);
return *
this; }
87 inline Leg&
AddEndPosition(
double value) { m_endPositionHasBeenSet =
true; m_endPosition.push_back(value);
return *
this; }
99 inline void SetDistance(
double value) { m_distanceHasBeenSet =
true; m_distance = value; }
111 inline void SetDurationSeconds(
double value) { m_durationSecondsHasBeenSet =
true; m_durationSeconds = value; }
140 inline Leg&
AddSteps(
const Step& value) { m_stepsHasBeenSet =
true; m_steps.push_back(value);
return *
this; }
141 inline Leg&
AddSteps(
Step&& value) { m_stepsHasBeenSet =
true; m_steps.push_back(std::move(value));
return *
this; }
146 bool m_startPositionHasBeenSet =
false;
149 bool m_endPositionHasBeenSet =
false;
152 bool m_distanceHasBeenSet =
false;
154 double m_durationSeconds;
155 bool m_durationSecondsHasBeenSet =
false;
158 bool m_geometryHasBeenSet =
false;
161 bool m_stepsHasBeenSet =
false;
void SetGeometry(const LegGeometry &value)
Leg & WithSteps(Aws::Vector< Step > &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
double GetDurationSeconds() const
bool StartPositionHasBeenSet() const
Leg & WithDurationSeconds(double value)
Leg & WithEndPosition(Aws::Vector< double > &&value)
bool EndPositionHasBeenSet() const
void SetDurationSeconds(double value)
void SetSteps(const Aws::Vector< Step > &value)
Leg & WithGeometry(const LegGeometry &value)
bool GeometryHasBeenSet() const
Leg & AddSteps(Step &&value)
void SetEndPosition(Aws::Vector< double > &&value)
Leg & AddEndPosition(double value)
bool DistanceHasBeenSet() const
const LegGeometry & GetGeometry() const
AWS_LOCATIONSERVICE_API Leg & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGeometry(LegGeometry &&value)
AWS_LOCATIONSERVICE_API Leg(Aws::Utils::Json::JsonView jsonValue)
Leg & WithStartPosition(const Aws::Vector< double > &value)
bool StepsHasBeenSet() const
bool DurationSecondsHasBeenSet() const
AWS_LOCATIONSERVICE_API Leg()
Leg & WithSteps(const Aws::Vector< Step > &value)
Leg & WithDistance(double value)
double GetDistance() const
Leg & AddSteps(const Step &value)
void SetEndPosition(const Aws::Vector< double > &value)
void SetSteps(Aws::Vector< Step > &&value)
Leg & AddStartPosition(double value)
Leg & WithStartPosition(Aws::Vector< double > &&value)
Leg & WithGeometry(LegGeometry &&value)
const Aws::Vector< Step > & GetSteps() const
void SetDistance(double value)
Leg & WithEndPosition(const Aws::Vector< double > &value)
void SetStartPosition(Aws::Vector< double > &&value)
const Aws::Vector< double > & GetEndPosition() const
void SetStartPosition(const Aws::Vector< double > &value)
const Aws::Vector< double > & GetStartPosition() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue