AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
RelatedPlace.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/AccessPoint.h>
11#include <aws/geo-places/model/Address.h>
12#include <aws/geo-places/model/PlaceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoPlaces {
24namespace Model {
25
32 public:
33 AWS_GEOPLACES_API RelatedPlace() = default;
34 AWS_GEOPLACES_API RelatedPlace(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOPLACES_API RelatedPlace& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPlaceId() const { return m_placeId; }
43 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
44 template <typename PlaceIdT = Aws::String>
45 void SetPlaceId(PlaceIdT&& value) {
46 m_placeIdHasBeenSet = true;
47 m_placeId = std::forward<PlaceIdT>(value);
48 }
49 template <typename PlaceIdT = Aws::String>
50 RelatedPlace& WithPlaceId(PlaceIdT&& value) {
51 SetPlaceId(std::forward<PlaceIdT>(value));
52 return *this;
53 }
55
57
61 inline PlaceType GetPlaceType() const { return m_placeType; }
62 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
63 inline void SetPlaceType(PlaceType value) {
64 m_placeTypeHasBeenSet = true;
65 m_placeType = value;
66 }
68 SetPlaceType(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetTitle() const { return m_title; }
79 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
80 template <typename TitleT = Aws::String>
81 void SetTitle(TitleT&& value) {
82 m_titleHasBeenSet = true;
83 m_title = std::forward<TitleT>(value);
84 }
85 template <typename TitleT = Aws::String>
86 RelatedPlace& WithTitle(TitleT&& value) {
87 SetTitle(std::forward<TitleT>(value));
88 return *this;
89 }
91
93
94 inline const Address& GetAddress() const { return m_address; }
95 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
96 template <typename AddressT = Address>
97 void SetAddress(AddressT&& value) {
98 m_addressHasBeenSet = true;
99 m_address = std::forward<AddressT>(value);
100 }
101 template <typename AddressT = Address>
102 RelatedPlace& WithAddress(AddressT&& value) {
103 SetAddress(std::forward<AddressT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
113 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
114 template <typename PositionT = Aws::Vector<double>>
115 void SetPosition(PositionT&& value) {
116 m_positionHasBeenSet = true;
117 m_position = std::forward<PositionT>(value);
118 }
119 template <typename PositionT = Aws::Vector<double>>
120 RelatedPlace& WithPosition(PositionT&& value) {
121 SetPosition(std::forward<PositionT>(value));
122 return *this;
123 }
124 inline RelatedPlace& AddPosition(double value) {
125 m_positionHasBeenSet = true;
126 m_position.push_back(value);
127 return *this;
128 }
130
132
135 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
136 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
137 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
138 void SetAccessPoints(AccessPointsT&& value) {
139 m_accessPointsHasBeenSet = true;
140 m_accessPoints = std::forward<AccessPointsT>(value);
141 }
142 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
143 RelatedPlace& WithAccessPoints(AccessPointsT&& value) {
144 SetAccessPoints(std::forward<AccessPointsT>(value));
145 return *this;
146 }
147 template <typename AccessPointsT = AccessPoint>
148 RelatedPlace& AddAccessPoints(AccessPointsT&& value) {
149 m_accessPointsHasBeenSet = true;
150 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_placeId;
156 bool m_placeIdHasBeenSet = false;
157
158 PlaceType m_placeType{PlaceType::NOT_SET};
159 bool m_placeTypeHasBeenSet = false;
160
161 Aws::String m_title;
162 bool m_titleHasBeenSet = false;
163
164 Address m_address;
165 bool m_addressHasBeenSet = false;
166
167 Aws::Vector<double> m_position;
168 bool m_positionHasBeenSet = false;
169
170 Aws::Vector<AccessPoint> m_accessPoints;
171 bool m_accessPointsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace GeoPlaces
176} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue