AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
AccessPoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/GeoPlaces_EXPORTS.h>
10#include <aws/geo-places/model/AccessPointType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoPlaces {
22namespace Model {
23
31 public:
32 AWS_GEOPLACES_API AccessPoint() = default;
33 AWS_GEOPLACES_API AccessPoint(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOPLACES_API AccessPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
43 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
44 template <typename PositionT = Aws::Vector<double>>
45 void SetPosition(PositionT&& value) {
46 m_positionHasBeenSet = true;
47 m_position = std::forward<PositionT>(value);
48 }
49 template <typename PositionT = Aws::Vector<double>>
50 AccessPoint& WithPosition(PositionT&& value) {
51 SetPosition(std::forward<PositionT>(value));
52 return *this;
53 }
54 inline AccessPoint& AddPosition(double value) {
55 m_positionHasBeenSet = true;
56 m_position.push_back(value);
57 return *this;
58 }
60
62
66 inline AccessPointType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(AccessPointType value) {
69 m_typeHasBeenSet = true;
70 m_type = value;
71 }
73 SetType(value);
74 return *this;
75 }
77
79
83 inline bool GetPrimary() const { return m_primary; }
84 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
85 inline void SetPrimary(bool value) {
86 m_primaryHasBeenSet = true;
87 m_primary = value;
88 }
89 inline AccessPoint& WithPrimary(bool value) {
90 SetPrimary(value);
91 return *this;
92 }
94
96
100 inline const Aws::String& GetLabel() const { return m_label; }
101 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
102 template <typename LabelT = Aws::String>
103 void SetLabel(LabelT&& value) {
104 m_labelHasBeenSet = true;
105 m_label = std::forward<LabelT>(value);
106 }
107 template <typename LabelT = Aws::String>
108 AccessPoint& WithLabel(LabelT&& value) {
109 SetLabel(std::forward<LabelT>(value));
110 return *this;
111 }
113 private:
114 Aws::Vector<double> m_position;
115
117
118 bool m_primary{false};
119
120 Aws::String m_label;
121 bool m_positionHasBeenSet = false;
122 bool m_typeHasBeenSet = false;
123 bool m_primaryHasBeenSet = false;
124 bool m_labelHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace GeoPlaces
129} // namespace Aws
void SetPosition(PositionT &&value)
Definition AccessPoint.h:45
const Aws::Vector< double > & GetPosition() const
Definition AccessPoint.h:42
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLabel() const
void SetType(AccessPointType value)
Definition AccessPoint.h:68
AccessPoint & WithPosition(PositionT &&value)
Definition AccessPoint.h:50
AWS_GEOPLACES_API AccessPoint(Aws::Utils::Json::JsonView jsonValue)
AccessPoint & WithType(AccessPointType value)
Definition AccessPoint.h:72
AccessPoint & WithPrimary(bool value)
Definition AccessPoint.h:89
AWS_GEOPLACES_API AccessPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessPoint & WithLabel(LabelT &&value)
AccessPoint & AddPosition(double value)
Definition AccessPoint.h:54
AWS_GEOPLACES_API AccessPoint()=default
AccessPointType GetType() const
Definition AccessPoint.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue