AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AccessPoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoPlaces {
20namespace Model {
21
29 public:
30 AWS_GEOPLACES_API AccessPoint() = default;
31 AWS_GEOPLACES_API AccessPoint(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOPLACES_API AccessPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
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>>
48 AccessPoint& WithPosition(PositionT&& value) {
49 SetPosition(std::forward<PositionT>(value));
50 return *this;
51 }
52 inline AccessPoint& AddPosition(double value) {
53 m_positionHasBeenSet = true;
54 m_position.push_back(value);
55 return *this;
56 }
58 private:
59 Aws::Vector<double> m_position;
60 bool m_positionHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace GeoPlaces
65} // namespace Aws
void SetPosition(PositionT &&value)
Definition AccessPoint.h:43
const Aws::Vector< double > & GetPosition() const
Definition AccessPoint.h:40
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AccessPoint & WithPosition(PositionT &&value)
Definition AccessPoint.h:48
AWS_GEOPLACES_API AccessPoint(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API AccessPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessPoint & AddPosition(double value)
Definition AccessPoint.h:52
AWS_GEOPLACES_API AccessPoint()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue