AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchPutGeofenceRequestEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/LocationService_EXPORTS.h>
10#include <aws/location/model/GeofenceGeometry.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LocationService {
22namespace Model {
23
30 public:
31 AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry() = default;
32 AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
42 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
43 template <typename GeofenceIdT = Aws::String>
44 void SetGeofenceId(GeofenceIdT&& value) {
45 m_geofenceIdHasBeenSet = true;
46 m_geofenceId = std::forward<GeofenceIdT>(value);
47 }
48 template <typename GeofenceIdT = Aws::String>
50 SetGeofenceId(std::forward<GeofenceIdT>(value));
51 return *this;
52 }
54
56
66 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
67 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
68 template <typename GeometryT = GeofenceGeometry>
69 void SetGeometry(GeometryT&& value) {
70 m_geometryHasBeenSet = true;
71 m_geometry = std::forward<GeometryT>(value);
72 }
73 template <typename GeometryT = GeofenceGeometry>
75 SetGeometry(std::forward<GeometryT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
87 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
88 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
89 void SetGeofenceProperties(GeofencePropertiesT&& value) {
90 m_geofencePropertiesHasBeenSet = true;
91 m_geofenceProperties = std::forward<GeofencePropertiesT>(value);
92 }
93 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
95 SetGeofenceProperties(std::forward<GeofencePropertiesT>(value));
96 return *this;
97 }
98 template <typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
99 BatchPutGeofenceRequestEntry& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
100 m_geofencePropertiesHasBeenSet = true;
101 m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_geofenceId;
107
108 GeofenceGeometry m_geometry;
109
110 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
111 bool m_geofenceIdHasBeenSet = false;
112 bool m_geometryHasBeenSet = false;
113 bool m_geofencePropertiesHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace LocationService
118} // namespace Aws
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchPutGeofenceRequestEntry & WithGeofenceId(GeofenceIdT &&value)
BatchPutGeofenceRequestEntry & WithGeofenceProperties(GeofencePropertiesT &&value)
const Aws::String & GetGeofenceId() const
void SetGeofenceId(GeofenceIdT &&value)
BatchPutGeofenceRequestEntry & WithGeometry(GeometryT &&value)
AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry()=default
const GeofenceGeometry & GetGeometry() const
void SetGeometry(GeometryT &&value)
BatchPutGeofenceRequestEntry & AddGeofenceProperties(GeofencePropertiesKeyT &&key, GeofencePropertiesValueT &&value)
bool GeofencePropertiesHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetGeofenceProperties() const
bool GeometryHasBeenSet() const
void SetGeofenceProperties(GeofencePropertiesT &&value)
bool GeofenceIdHasBeenSet() 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