AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ForecastedEvent.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/model/ForecastedGeofenceEventType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LocationService
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_LOCATIONSERVICE_API ForecastedEvent() = default;
40 AWS_LOCATIONSERVICE_API ForecastedEvent(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LOCATIONSERVICE_API ForecastedEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetEventId() const { return m_eventId; }
50 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
51 template<typename EventIdT = Aws::String>
52 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
53 template<typename EventIdT = Aws::String>
54 ForecastedEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
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) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::forward<GeofenceIdT>(value); }
65 template<typename GeofenceIdT = Aws::String>
66 ForecastedEvent& WithGeofenceId(GeofenceIdT&& value) { SetGeofenceId(std::forward<GeofenceIdT>(value)); return *this;}
68
70
73 inline bool GetIsDeviceInGeofence() const { return m_isDeviceInGeofence; }
74 inline bool IsDeviceInGeofenceHasBeenSet() const { return m_isDeviceInGeofenceHasBeenSet; }
75 inline void SetIsDeviceInGeofence(bool value) { m_isDeviceInGeofenceHasBeenSet = true; m_isDeviceInGeofence = value; }
76 inline ForecastedEvent& WithIsDeviceInGeofence(bool value) { SetIsDeviceInGeofence(value); return *this;}
78
80
83 inline double GetNearestDistance() const { return m_nearestDistance; }
84 inline bool NearestDistanceHasBeenSet() const { return m_nearestDistanceHasBeenSet; }
85 inline void SetNearestDistance(double value) { m_nearestDistanceHasBeenSet = true; m_nearestDistance = value; }
86 inline ForecastedEvent& WithNearestDistance(double value) { SetNearestDistance(value); return *this;}
88
90
99 inline ForecastedGeofenceEventType GetEventType() const { return m_eventType; }
100 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
101 inline void SetEventType(ForecastedGeofenceEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
104
106
111 inline const Aws::Utils::DateTime& GetForecastedBreachTime() const { return m_forecastedBreachTime; }
112 inline bool ForecastedBreachTimeHasBeenSet() const { return m_forecastedBreachTimeHasBeenSet; }
113 template<typename ForecastedBreachTimeT = Aws::Utils::DateTime>
114 void SetForecastedBreachTime(ForecastedBreachTimeT&& value) { m_forecastedBreachTimeHasBeenSet = true; m_forecastedBreachTime = std::forward<ForecastedBreachTimeT>(value); }
115 template<typename ForecastedBreachTimeT = Aws::Utils::DateTime>
116 ForecastedEvent& WithForecastedBreachTime(ForecastedBreachTimeT&& value) { SetForecastedBreachTime(std::forward<ForecastedBreachTimeT>(value)); return *this;}
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
124 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
125 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
126 void SetGeofenceProperties(GeofencePropertiesT&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::forward<GeofencePropertiesT>(value); }
127 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
128 ForecastedEvent& WithGeofenceProperties(GeofencePropertiesT&& value) { SetGeofenceProperties(std::forward<GeofencePropertiesT>(value)); return *this;}
129 template<typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
130 ForecastedEvent& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
131 m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value)); return *this;
132 }
134 private:
135
136 Aws::String m_eventId;
137 bool m_eventIdHasBeenSet = false;
138
139 Aws::String m_geofenceId;
140 bool m_geofenceIdHasBeenSet = false;
141
142 bool m_isDeviceInGeofence{false};
143 bool m_isDeviceInGeofenceHasBeenSet = false;
144
145 double m_nearestDistance{0.0};
146 bool m_nearestDistanceHasBeenSet = false;
147
149 bool m_eventTypeHasBeenSet = false;
150
151 Aws::Utils::DateTime m_forecastedBreachTime{};
152 bool m_forecastedBreachTimeHasBeenSet = false;
153
154 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
155 bool m_geofencePropertiesHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace LocationService
160} // 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