AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Step.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LocationService
22{
23namespace Model
24{
25
32 class Step
33 {
34 public:
35 AWS_LOCATIONSERVICE_API Step();
36 AWS_LOCATIONSERVICE_API Step(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOCATIONSERVICE_API Step& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<double>& GetStartPosition() const{ return m_startPosition; }
47 inline bool StartPositionHasBeenSet() const { return m_startPositionHasBeenSet; }
48 inline void SetStartPosition(const Aws::Vector<double>& value) { m_startPositionHasBeenSet = true; m_startPosition = value; }
49 inline void SetStartPosition(Aws::Vector<double>&& value) { m_startPositionHasBeenSet = true; m_startPosition = std::move(value); }
50 inline Step& WithStartPosition(const Aws::Vector<double>& value) { SetStartPosition(value); return *this;}
51 inline Step& WithStartPosition(Aws::Vector<double>&& value) { SetStartPosition(std::move(value)); return *this;}
52 inline Step& AddStartPosition(double value) { m_startPositionHasBeenSet = true; m_startPosition.push_back(value); return *this; }
54
56
60 inline const Aws::Vector<double>& GetEndPosition() const{ return m_endPosition; }
61 inline bool EndPositionHasBeenSet() const { return m_endPositionHasBeenSet; }
62 inline void SetEndPosition(const Aws::Vector<double>& value) { m_endPositionHasBeenSet = true; m_endPosition = value; }
63 inline void SetEndPosition(Aws::Vector<double>&& value) { m_endPositionHasBeenSet = true; m_endPosition = std::move(value); }
64 inline Step& WithEndPosition(const Aws::Vector<double>& value) { SetEndPosition(value); return *this;}
65 inline Step& WithEndPosition(Aws::Vector<double>&& value) { SetEndPosition(std::move(value)); return *this;}
66 inline Step& AddEndPosition(double value) { m_endPositionHasBeenSet = true; m_endPosition.push_back(value); return *this; }
68
70
74 inline double GetDistance() const{ return m_distance; }
75 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
76 inline void SetDistance(double value) { m_distanceHasBeenSet = true; m_distance = value; }
77 inline Step& WithDistance(double value) { SetDistance(value); return *this;}
79
81
87 inline double GetDurationSeconds() const{ return m_durationSeconds; }
88 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
89 inline void SetDurationSeconds(double value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
90 inline Step& WithDurationSeconds(double value) { SetDurationSeconds(value); return *this;}
92
94
100 inline int GetGeometryOffset() const{ return m_geometryOffset; }
101 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
102 inline void SetGeometryOffset(int value) { m_geometryOffsetHasBeenSet = true; m_geometryOffset = value; }
103 inline Step& WithGeometryOffset(int value) { SetGeometryOffset(value); return *this;}
105 private:
106
107 Aws::Vector<double> m_startPosition;
108 bool m_startPositionHasBeenSet = false;
109
110 Aws::Vector<double> m_endPosition;
111 bool m_endPositionHasBeenSet = false;
112
113 double m_distance;
114 bool m_distanceHasBeenSet = false;
115
116 double m_durationSeconds;
117 bool m_durationSecondsHasBeenSet = false;
118
119 int m_geometryOffset;
120 bool m_geometryOffsetHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace LocationService
125} // namespace Aws
double GetDistance() const
Definition Step.h:74
void SetStartPosition(Aws::Vector< double > &&value)
Definition Step.h:49
void SetEndPosition(Aws::Vector< double > &&value)
Definition Step.h:63
Step & WithGeometryOffset(int value)
Definition Step.h:103
bool StartPositionHasBeenSet() const
Definition Step.h:47
Step & AddStartPosition(double value)
Definition Step.h:52
Step & WithDurationSeconds(double value)
Definition Step.h:90
bool GeometryOffsetHasBeenSet() const
Definition Step.h:101
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDurationSeconds(double value)
Definition Step.h:89
AWS_LOCATIONSERVICE_API Step(Aws::Utils::Json::JsonView jsonValue)
void SetGeometryOffset(int value)
Definition Step.h:102
Step & WithDistance(double value)
Definition Step.h:77
Step & WithEndPosition(Aws::Vector< double > &&value)
Definition Step.h:65
Step & WithEndPosition(const Aws::Vector< double > &value)
Definition Step.h:64
const Aws::Vector< double > & GetStartPosition() const
Definition Step.h:46
void SetEndPosition(const Aws::Vector< double > &value)
Definition Step.h:62
Step & WithStartPosition(Aws::Vector< double > &&value)
Definition Step.h:51
double GetDurationSeconds() const
Definition Step.h:87
void SetStartPosition(const Aws::Vector< double > &value)
Definition Step.h:48
const Aws::Vector< double > & GetEndPosition() const
Definition Step.h:60
void SetDistance(double value)
Definition Step.h:76
AWS_LOCATIONSERVICE_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EndPositionHasBeenSet() const
Definition Step.h:61
Step & AddEndPosition(double value)
Definition Step.h:66
Step & WithStartPosition(const Aws::Vector< double > &value)
Definition Step.h:50
AWS_LOCATIONSERVICE_API Step()
bool DistanceHasBeenSet() const
Definition Step.h:75
bool DurationSecondsHasBeenSet() const
Definition Step.h:88
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue