AWS SDK for C++

AWS SDK for C++ Version 1.11.763

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
113 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
114 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
115 template <typename PositionT = Aws::Vector<double>>
116 void SetPosition(PositionT&& value) {
117 m_positionHasBeenSet = true;
118 m_position = std::forward<PositionT>(value);
119 }
120 template <typename PositionT = Aws::Vector<double>>
121 RelatedPlace& WithPosition(PositionT&& value) {
122 SetPosition(std::forward<PositionT>(value));
123 return *this;
124 }
125 inline RelatedPlace& AddPosition(double value) {
126 m_positionHasBeenSet = true;
127 m_position.push_back(value);
128 return *this;
129 }
131
133
137 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
138 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
139 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
140 void SetAccessPoints(AccessPointsT&& value) {
141 m_accessPointsHasBeenSet = true;
142 m_accessPoints = std::forward<AccessPointsT>(value);
143 }
144 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
145 RelatedPlace& WithAccessPoints(AccessPointsT&& value) {
146 SetAccessPoints(std::forward<AccessPointsT>(value));
147 return *this;
148 }
149 template <typename AccessPointsT = AccessPoint>
150 RelatedPlace& AddAccessPoints(AccessPointsT&& value) {
151 m_accessPointsHasBeenSet = true;
152 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_placeId;
158
159 PlaceType m_placeType{PlaceType::NOT_SET};
160
161 Aws::String m_title;
162
163 Address m_address;
164
165 Aws::Vector<double> m_position;
166
167 Aws::Vector<AccessPoint> m_accessPoints;
168 bool m_placeIdHasBeenSet = false;
169 bool m_placeTypeHasBeenSet = false;
170 bool m_titleHasBeenSet = false;
171 bool m_addressHasBeenSet = false;
172 bool m_positionHasBeenSet = false;
173 bool m_accessPointsHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace GeoPlaces
178} // 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