AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RelatedPlace.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-places/model/PlaceType.h>
10#include <aws/geo-places/model/Address.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/geo-places/model/AccessPoint.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GeoPlaces
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_GEOPLACES_API RelatedPlace() = default;
39 AWS_GEOPLACES_API RelatedPlace(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOPLACES_API RelatedPlace& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPlaceId() const { return m_placeId; }
49 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
50 template<typename PlaceIdT = Aws::String>
51 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
52 template<typename PlaceIdT = Aws::String>
53 RelatedPlace& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
55
57
61 inline PlaceType GetPlaceType() const { return m_placeType; }
62 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
63 inline void SetPlaceType(PlaceType value) { m_placeTypeHasBeenSet = true; m_placeType = value; }
64 inline RelatedPlace& WithPlaceType(PlaceType value) { SetPlaceType(value); return *this;}
66
68
72 inline const Aws::String& GetTitle() const { return m_title; }
73 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
74 template<typename TitleT = Aws::String>
75 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
76 template<typename TitleT = Aws::String>
77 RelatedPlace& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
79
81
82 inline const Address& GetAddress() const { return m_address; }
83 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
84 template<typename AddressT = Address>
85 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
86 template<typename AddressT = Address>
87 RelatedPlace& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
89
91
94 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
95 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
96 template<typename PositionT = Aws::Vector<double>>
97 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
98 template<typename PositionT = Aws::Vector<double>>
99 RelatedPlace& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
100 inline RelatedPlace& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
102
104
107 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
108 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
109 template<typename AccessPointsT = Aws::Vector<AccessPoint>>
110 void SetAccessPoints(AccessPointsT&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::forward<AccessPointsT>(value); }
111 template<typename AccessPointsT = Aws::Vector<AccessPoint>>
112 RelatedPlace& WithAccessPoints(AccessPointsT&& value) { SetAccessPoints(std::forward<AccessPointsT>(value)); return *this;}
113 template<typename AccessPointsT = AccessPoint>
114 RelatedPlace& AddAccessPoints(AccessPointsT&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace_back(std::forward<AccessPointsT>(value)); return *this; }
116 private:
117
118 Aws::String m_placeId;
119 bool m_placeIdHasBeenSet = false;
120
121 PlaceType m_placeType{PlaceType::NOT_SET};
122 bool m_placeTypeHasBeenSet = false;
123
124 Aws::String m_title;
125 bool m_titleHasBeenSet = false;
126
127 Address m_address;
128 bool m_addressHasBeenSet = false;
129
130 Aws::Vector<double> m_position;
131 bool m_positionHasBeenSet = false;
132
133 Aws::Vector<AccessPoint> m_accessPoints;
134 bool m_accessPointsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace GeoPlaces
139} // 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