AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LegGeometry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/location/LocationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LocationService {
20namespace Model {
21
29 public:
30 AWS_LOCATIONSERVICE_API LegGeometry() = default;
31 AWS_LOCATIONSERVICE_API LegGeometry(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LOCATIONSERVICE_API LegGeometry& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
43 inline const Aws::Vector<Aws::Vector<double>>& GetLineString() const { return m_lineString; }
44 inline bool LineStringHasBeenSet() const { return m_lineStringHasBeenSet; }
45 template <typename LineStringT = Aws::Vector<Aws::Vector<double>>>
46 void SetLineString(LineStringT&& value) {
47 m_lineStringHasBeenSet = true;
48 m_lineString = std::forward<LineStringT>(value);
49 }
50 template <typename LineStringT = Aws::Vector<Aws::Vector<double>>>
51 LegGeometry& WithLineString(LineStringT&& value) {
52 SetLineString(std::forward<LineStringT>(value));
53 return *this;
54 }
55 template <typename LineStringT = Aws::Vector<double>>
56 LegGeometry& AddLineString(LineStringT&& value) {
57 m_lineStringHasBeenSet = true;
58 m_lineString.emplace_back(std::forward<LineStringT>(value));
59 return *this;
60 }
62 private:
64 bool m_lineStringHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace LocationService
69} // namespace Aws
const Aws::Vector< Aws::Vector< double > > & GetLineString() const
Definition LegGeometry.h:43
AWS_LOCATIONSERVICE_API LegGeometry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
LegGeometry & AddLineString(LineStringT &&value)
Definition LegGeometry.h:56
AWS_LOCATIONSERVICE_API LegGeometry(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API LegGeometry()=default
LegGeometry & WithLineString(LineStringT &&value)
Definition LegGeometry.h:51
void SetLineString(LineStringT &&value)
Definition LegGeometry.h:46
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue