AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
RouteSideOfStreetOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/SideOfStreetMatchingStrategy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
30 public:
31 AWS_GEOROUTES_API RouteSideOfStreetOptions() = default;
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
41 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
42 template <typename PositionT = Aws::Vector<double>>
43 void SetPosition(PositionT&& value) {
44 m_positionHasBeenSet = true;
45 m_position = std::forward<PositionT>(value);
46 }
47 template <typename PositionT = Aws::Vector<double>>
49 SetPosition(std::forward<PositionT>(value));
50 return *this;
51 }
52 inline RouteSideOfStreetOptions& AddPosition(double value) {
53 m_positionHasBeenSet = true;
54 m_position.push_back(value);
55 return *this;
56 }
58
60
64 inline SideOfStreetMatchingStrategy GetUseWith() const { return m_useWith; }
65 inline bool UseWithHasBeenSet() const { return m_useWithHasBeenSet; }
67 m_useWithHasBeenSet = true;
68 m_useWith = value;
69 }
71 SetUseWith(value);
72 return *this;
73 }
75 private:
76 Aws::Vector<double> m_position;
77
79 bool m_positionHasBeenSet = false;
80 bool m_useWithHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace GeoRoutes
85} // namespace Aws
AWS_GEOROUTES_API RouteSideOfStreetOptions(Aws::Utils::Json::JsonView jsonValue)
RouteSideOfStreetOptions & WithPosition(PositionT &&value)
AWS_GEOROUTES_API RouteSideOfStreetOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteSideOfStreetOptions & WithUseWith(SideOfStreetMatchingStrategy value)
void SetUseWith(SideOfStreetMatchingStrategy value)
const Aws::Vector< double > & GetPosition() const
AWS_GEOROUTES_API RouteSideOfStreetOptions()=default
RouteSideOfStreetOptions & AddPosition(double value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue