AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
ListGeofenceResponseEntry.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/GeofenceGeometry.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 ListGeofenceResponseEntry() = default;
40 AWS_LOCATIONSERVICE_API ListGeofenceResponseEntry(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
50 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
51 template<typename GeofenceIdT = Aws::String>
52 void SetGeofenceId(GeofenceIdT&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::forward<GeofenceIdT>(value); }
53 template<typename GeofenceIdT = Aws::String>
54 ListGeofenceResponseEntry& WithGeofenceId(GeofenceIdT&& value) { SetGeofenceId(std::forward<GeofenceIdT>(value)); return *this;}
56
58
61 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
62 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
63 template<typename GeometryT = GeofenceGeometry>
64 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
65 template<typename GeometryT = GeofenceGeometry>
66 ListGeofenceResponseEntry& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
68
70
80 inline const Aws::String& GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 template<typename StatusT = Aws::String>
83 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
84 template<typename StatusT = Aws::String>
85 ListGeofenceResponseEntry& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
87
89
94 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
95 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
96 template<typename CreateTimeT = Aws::Utils::DateTime>
97 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
98 template<typename CreateTimeT = Aws::Utils::DateTime>
99 ListGeofenceResponseEntry& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
101
103
108 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
109 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
110 template<typename UpdateTimeT = Aws::Utils::DateTime>
111 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
112 template<typename UpdateTimeT = Aws::Utils::DateTime>
113 ListGeofenceResponseEntry& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
115
117
122 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
123 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
124 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
125 void SetGeofenceProperties(GeofencePropertiesT&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::forward<GeofencePropertiesT>(value); }
126 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
127 ListGeofenceResponseEntry& WithGeofenceProperties(GeofencePropertiesT&& value) { SetGeofenceProperties(std::forward<GeofencePropertiesT>(value)); return *this;}
128 template<typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
129 ListGeofenceResponseEntry& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
130 m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value)); return *this;
131 }
133 private:
134
135 Aws::String m_geofenceId;
136 bool m_geofenceIdHasBeenSet = false;
137
138 GeofenceGeometry m_geometry;
139 bool m_geometryHasBeenSet = false;
140
141 Aws::String m_status;
142 bool m_statusHasBeenSet = false;
143
144 Aws::Utils::DateTime m_createTime{};
145 bool m_createTimeHasBeenSet = false;
146
147 Aws::Utils::DateTime m_updateTime{};
148 bool m_updateTimeHasBeenSet = false;
149
150 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
151 bool m_geofencePropertiesHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace LocationService
156} // namespace Aws
void SetStatus(StatusT &&value)
ListGeofenceResponseEntry & WithGeofenceProperties(GeofencePropertiesT &&value)
ListGeofenceResponseEntry & WithCreateTime(CreateTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetGeofenceProperties() const
bool CreateTimeHasBeenSet() const
AWS_LOCATIONSERVICE_API ListGeofenceResponseEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpdateTime(UpdateTimeT &&value)
ListGeofenceResponseEntry & WithStatus(StatusT &&value)
bool GeofencePropertiesHasBeenSet() const
void SetGeofenceProperties(GeofencePropertiesT &&value)
bool GeometryHasBeenSet() const
bool UpdateTimeHasBeenSet() const
void SetCreateTime(CreateTimeT &&value)
ListGeofenceResponseEntry & WithGeofenceId(GeofenceIdT &&value)
const Aws::String & GetStatus() const
void SetGeometry(GeometryT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ListGeofenceResponseEntry & WithUpdateTime(UpdateTimeT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
bool GeofenceIdHasBeenSet() const
bool StatusHasBeenSet() const
const Aws::Utils::DateTime & GetCreateTime() const
const GeofenceGeometry & GetGeometry() const
AWS_LOCATIONSERVICE_API ListGeofenceResponseEntry(Aws::Utils::Json::JsonView jsonValue)
ListGeofenceResponseEntry & AddGeofenceProperties(GeofencePropertiesKeyT &&key, GeofencePropertiesValueT &&value)
ListGeofenceResponseEntry & WithGeometry(GeometryT &&value)
AWS_LOCATIONSERVICE_API ListGeofenceResponseEntry()=default
void SetGeofenceId(GeofenceIdT &&value)
const Aws::String & GetGeofenceId() const
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