AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ForecastedEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/ForecastedGeofenceEventType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LocationService {
23namespace Model {
24
33 public:
34 AWS_LOCATIONSERVICE_API ForecastedEvent() = default;
35 AWS_LOCATIONSERVICE_API ForecastedEvent(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LOCATIONSERVICE_API ForecastedEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetEventId() const { return m_eventId; }
44 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
45 template <typename EventIdT = Aws::String>
46 void SetEventId(EventIdT&& value) {
47 m_eventIdHasBeenSet = true;
48 m_eventId = std::forward<EventIdT>(value);
49 }
50 template <typename EventIdT = Aws::String>
51 ForecastedEvent& WithEventId(EventIdT&& value) {
52 SetEventId(std::forward<EventIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
62 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
63 template <typename GeofenceIdT = Aws::String>
64 void SetGeofenceId(GeofenceIdT&& value) {
65 m_geofenceIdHasBeenSet = true;
66 m_geofenceId = std::forward<GeofenceIdT>(value);
67 }
68 template <typename GeofenceIdT = Aws::String>
69 ForecastedEvent& WithGeofenceId(GeofenceIdT&& value) {
70 SetGeofenceId(std::forward<GeofenceIdT>(value));
71 return *this;
72 }
74
76
79 inline bool GetIsDeviceInGeofence() const { return m_isDeviceInGeofence; }
80 inline bool IsDeviceInGeofenceHasBeenSet() const { return m_isDeviceInGeofenceHasBeenSet; }
81 inline void SetIsDeviceInGeofence(bool value) {
82 m_isDeviceInGeofenceHasBeenSet = true;
83 m_isDeviceInGeofence = value;
84 }
87 return *this;
88 }
90
92
95 inline double GetNearestDistance() const { return m_nearestDistance; }
96 inline bool NearestDistanceHasBeenSet() const { return m_nearestDistanceHasBeenSet; }
97 inline void SetNearestDistance(double value) {
98 m_nearestDistanceHasBeenSet = true;
99 m_nearestDistance = value;
100 }
101 inline ForecastedEvent& WithNearestDistance(double value) {
102 SetNearestDistance(value);
103 return *this;
104 }
106
108
117 inline ForecastedGeofenceEventType GetEventType() const { return m_eventType; }
118 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
120 m_eventTypeHasBeenSet = true;
121 m_eventType = value;
122 }
124 SetEventType(value);
125 return *this;
126 }
128
130
135 inline const Aws::Utils::DateTime& GetForecastedBreachTime() const { return m_forecastedBreachTime; }
136 inline bool ForecastedBreachTimeHasBeenSet() const { return m_forecastedBreachTimeHasBeenSet; }
137 template <typename ForecastedBreachTimeT = Aws::Utils::DateTime>
138 void SetForecastedBreachTime(ForecastedBreachTimeT&& value) {
139 m_forecastedBreachTimeHasBeenSet = true;
140 m_forecastedBreachTime = std::forward<ForecastedBreachTimeT>(value);
141 }
142 template <typename ForecastedBreachTimeT = Aws::Utils::DateTime>
143 ForecastedEvent& WithForecastedBreachTime(ForecastedBreachTimeT&& value) {
144 SetForecastedBreachTime(std::forward<ForecastedBreachTimeT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
154 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
155 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
156 void SetGeofenceProperties(GeofencePropertiesT&& value) {
157 m_geofencePropertiesHasBeenSet = true;
158 m_geofenceProperties = std::forward<GeofencePropertiesT>(value);
159 }
160 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
161 ForecastedEvent& WithGeofenceProperties(GeofencePropertiesT&& value) {
162 SetGeofenceProperties(std::forward<GeofencePropertiesT>(value));
163 return *this;
164 }
165 template <typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
166 ForecastedEvent& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
167 m_geofencePropertiesHasBeenSet = true;
168 m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_eventId;
174
175 Aws::String m_geofenceId;
176
177 bool m_isDeviceInGeofence{false};
178
179 double m_nearestDistance{0.0};
180
182
183 Aws::Utils::DateTime m_forecastedBreachTime{};
184
185 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
186 bool m_eventIdHasBeenSet = false;
187 bool m_geofenceIdHasBeenSet = false;
188 bool m_isDeviceInGeofenceHasBeenSet = false;
189 bool m_nearestDistanceHasBeenSet = false;
190 bool m_eventTypeHasBeenSet = false;
191 bool m_forecastedBreachTimeHasBeenSet = false;
192 bool m_geofencePropertiesHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace LocationService
197} // namespace Aws
ForecastedEvent & WithEventId(EventIdT &&value)
AWS_LOCATIONSERVICE_API ForecastedEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ForecastedEvent & WithForecastedBreachTime(ForecastedBreachTimeT &&value)
ForecastedEvent & WithEventType(ForecastedGeofenceEventType value)
ForecastedEvent & WithGeofenceId(GeofenceIdT &&value)
void SetEventType(ForecastedGeofenceEventType value)
void SetForecastedBreachTime(ForecastedBreachTimeT &&value)
ForecastedGeofenceEventType GetEventType() const
const Aws::Map< Aws::String, Aws::String > & GetGeofenceProperties() const
const Aws::Utils::DateTime & GetForecastedBreachTime() const
AWS_LOCATIONSERVICE_API ForecastedEvent(Aws::Utils::Json::JsonView jsonValue)
ForecastedEvent & AddGeofenceProperties(GeofencePropertiesKeyT &&key, GeofencePropertiesValueT &&value)
ForecastedEvent & WithIsDeviceInGeofence(bool value)
ForecastedEvent & WithNearestDistance(double value)
AWS_LOCATIONSERVICE_API ForecastedEvent()=default
void SetGeofenceProperties(GeofencePropertiesT &&value)
ForecastedEvent & WithGeofenceProperties(GeofencePropertiesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue