7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
21namespace LocationService
35 AWS_LOCATIONSERVICE_API
Step() =
default;
48 template<
typename StartPositionT = Aws::Vector<
double>>
49 void SetStartPosition(StartPositionT&& value) { m_startPositionHasBeenSet =
true; m_startPosition = std::forward<StartPositionT>(value); }
50 template<
typename StartPositionT = Aws::Vector<
double>>
52 inline Step&
AddStartPosition(
double value) { m_startPositionHasBeenSet =
true; m_startPosition.push_back(value);
return *
this; }
62 template<
typename EndPositionT = Aws::Vector<
double>>
63 void SetEndPosition(EndPositionT&& value) { m_endPositionHasBeenSet =
true; m_endPosition = std::forward<EndPositionT>(value); }
64 template<
typename EndPositionT = Aws::Vector<
double>>
66 inline Step&
AddEndPosition(
double value) { m_endPositionHasBeenSet =
true; m_endPosition.push_back(value);
return *
this; }
76 inline void SetDistance(
double value) { m_distanceHasBeenSet =
true; m_distance = value; }
89 inline void SetDurationSeconds(
double value) { m_durationSecondsHasBeenSet =
true; m_durationSeconds = value; }
102 inline void SetGeometryOffset(
int value) { m_geometryOffsetHasBeenSet =
true; m_geometryOffset = value; }
108 bool m_startPositionHasBeenSet =
false;
111 bool m_endPositionHasBeenSet =
false;
113 double m_distance{0.0};
114 bool m_distanceHasBeenSet =
false;
116 double m_durationSeconds{0.0};
117 bool m_durationSecondsHasBeenSet =
false;
119 int m_geometryOffset{0};
120 bool m_geometryOffsetHasBeenSet =
false;
double GetDistance() const
Step & WithGeometryOffset(int value)
bool StartPositionHasBeenSet() const
Step & AddStartPosition(double value)
AWS_LOCATIONSERVICE_API Step()=default
void SetStartPosition(StartPositionT &&value)
Step & WithDurationSeconds(double value)
bool GeometryOffsetHasBeenSet() const
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDurationSeconds(double value)
AWS_LOCATIONSERVICE_API Step(Aws::Utils::Json::JsonView jsonValue)
void SetGeometryOffset(int value)
Step & WithDistance(double value)
const Aws::Vector< double > & GetStartPosition() const
void SetEndPosition(EndPositionT &&value)
double GetDurationSeconds() const
const Aws::Vector< double > & GetEndPosition() const
void SetDistance(double value)
AWS_LOCATIONSERVICE_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EndPositionHasBeenSet() const
Step & AddEndPosition(double value)
int GetGeometryOffset() const
bool DistanceHasBeenSet() const
Step & WithStartPosition(StartPositionT &&value)
Step & WithEndPosition(EndPositionT &&value)
bool DurationSecondsHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue