AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
52 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
53 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
54 inline ForecastedEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
55 inline ForecastedEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
56 inline ForecastedEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
58
60
63 inline const Aws::String& GetGeofenceId() const{ return m_geofenceId; }
64 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
65 inline void SetGeofenceId(const Aws::String& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = value; }
66 inline void SetGeofenceId(Aws::String&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::move(value); }
67 inline void SetGeofenceId(const char* value) { m_geofenceIdHasBeenSet = true; m_geofenceId.assign(value); }
68 inline ForecastedEvent& WithGeofenceId(const Aws::String& value) { SetGeofenceId(value); return *this;}
69 inline ForecastedEvent& WithGeofenceId(Aws::String&& value) { SetGeofenceId(std::move(value)); return *this;}
70 inline ForecastedEvent& WithGeofenceId(const char* value) { SetGeofenceId(value); return *this;}
72
74
77 inline bool GetIsDeviceInGeofence() const{ return m_isDeviceInGeofence; }
78 inline bool IsDeviceInGeofenceHasBeenSet() const { return m_isDeviceInGeofenceHasBeenSet; }
79 inline void SetIsDeviceInGeofence(bool value) { m_isDeviceInGeofenceHasBeenSet = true; m_isDeviceInGeofence = value; }
80 inline ForecastedEvent& WithIsDeviceInGeofence(bool value) { SetIsDeviceInGeofence(value); return *this;}
82
84
87 inline double GetNearestDistance() const{ return m_nearestDistance; }
88 inline bool NearestDistanceHasBeenSet() const { return m_nearestDistanceHasBeenSet; }
89 inline void SetNearestDistance(double value) { m_nearestDistanceHasBeenSet = true; m_nearestDistance = value; }
90 inline ForecastedEvent& WithNearestDistance(double value) { SetNearestDistance(value); return *this;}
92
94
103 inline const ForecastedGeofenceEventType& GetEventType() const{ return m_eventType; }
104 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
105 inline void SetEventType(const ForecastedGeofenceEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
106 inline void SetEventType(ForecastedGeofenceEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
107 inline ForecastedEvent& WithEventType(const ForecastedGeofenceEventType& value) { SetEventType(value); return *this;}
108 inline ForecastedEvent& WithEventType(ForecastedGeofenceEventType&& value) { SetEventType(std::move(value)); return *this;}
110
112
117 inline const Aws::Utils::DateTime& GetForecastedBreachTime() const{ return m_forecastedBreachTime; }
118 inline bool ForecastedBreachTimeHasBeenSet() const { return m_forecastedBreachTimeHasBeenSet; }
119 inline void SetForecastedBreachTime(const Aws::Utils::DateTime& value) { m_forecastedBreachTimeHasBeenSet = true; m_forecastedBreachTime = value; }
120 inline void SetForecastedBreachTime(Aws::Utils::DateTime&& value) { m_forecastedBreachTimeHasBeenSet = true; m_forecastedBreachTime = std::move(value); }
124
126
129 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const{ return m_geofenceProperties; }
130 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
131 inline void SetGeofenceProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = value; }
132 inline void SetGeofenceProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::move(value); }
135 inline ForecastedEvent& AddGeofenceProperties(const Aws::String& key, const Aws::String& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, value); return *this; }
136 inline ForecastedEvent& AddGeofenceProperties(Aws::String&& key, const Aws::String& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), value); return *this; }
137 inline ForecastedEvent& AddGeofenceProperties(const Aws::String& key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, std::move(value)); return *this; }
138 inline ForecastedEvent& AddGeofenceProperties(Aws::String&& key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), std::move(value)); return *this; }
139 inline ForecastedEvent& AddGeofenceProperties(const char* key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, std::move(value)); return *this; }
140 inline ForecastedEvent& AddGeofenceProperties(Aws::String&& key, const char* value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), value); return *this; }
141 inline ForecastedEvent& AddGeofenceProperties(const char* key, const char* value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, value); return *this; }
143 private:
144
145 Aws::String m_eventId;
146 bool m_eventIdHasBeenSet = false;
147
148 Aws::String m_geofenceId;
149 bool m_geofenceIdHasBeenSet = false;
150
151 bool m_isDeviceInGeofence;
152 bool m_isDeviceInGeofenceHasBeenSet = false;
153
154 double m_nearestDistance;
155 bool m_nearestDistanceHasBeenSet = false;
156
157 ForecastedGeofenceEventType m_eventType;
158 bool m_eventTypeHasBeenSet = false;
159
160 Aws::Utils::DateTime m_forecastedBreachTime;
161 bool m_forecastedBreachTimeHasBeenSet = false;
162
163 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
164 bool m_geofencePropertiesHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace LocationService
169} // namespace Aws
ForecastedEvent & WithEventId(const char *value)
void SetEventType(ForecastedGeofenceEventType &&value)
AWS_LOCATIONSERVICE_API ForecastedEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const ForecastedGeofenceEventType & GetEventType() const
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ForecastedEvent & WithEventType(const ForecastedGeofenceEventType &value)
void SetEventType(const ForecastedGeofenceEventType &value)
void SetGeofenceId(const Aws::String &value)
void SetEventId(const Aws::String &value)
ForecastedEvent & WithForecastedBreachTime(Aws::Utils::DateTime &&value)
ForecastedEvent & AddGeofenceProperties(const char *key, Aws::String &&value)
ForecastedEvent & WithGeofenceId(Aws::String &&value)
void SetGeofenceProperties(Aws::Map< Aws::String, Aws::String > &&value)
ForecastedEvent & WithGeofenceId(const Aws::String &value)
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 & WithGeofenceId(const char *value)
ForecastedEvent & WithEventId(const Aws::String &value)
void SetForecastedBreachTime(Aws::Utils::DateTime &&value)
ForecastedEvent & AddGeofenceProperties(Aws::String &&key, Aws::String &&value)
ForecastedEvent & WithIsDeviceInGeofence(bool value)
ForecastedEvent & WithForecastedBreachTime(const Aws::Utils::DateTime &value)
void SetGeofenceProperties(const Aws::Map< Aws::String, Aws::String > &value)
ForecastedEvent & AddGeofenceProperties(Aws::String &&key, const char *value)
ForecastedEvent & WithNearestDistance(double value)
ForecastedEvent & WithGeofenceProperties(const Aws::Map< Aws::String, Aws::String > &value)
AWS_LOCATIONSERVICE_API ForecastedEvent()
void SetForecastedBreachTime(const Aws::Utils::DateTime &value)
ForecastedEvent & AddGeofenceProperties(Aws::String &&key, const Aws::String &value)
ForecastedEvent & AddGeofenceProperties(const char *key, const char *value)
ForecastedEvent & WithGeofenceProperties(Aws::Map< Aws::String, Aws::String > &&value)
ForecastedEvent & AddGeofenceProperties(const Aws::String &key, const Aws::String &value)
ForecastedEvent & AddGeofenceProperties(const Aws::String &key, Aws::String &&value)
ForecastedEvent & WithEventType(ForecastedGeofenceEventType &&value)
ForecastedEvent & WithEventId(Aws::String &&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