AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
BatchPutGeofenceRequestEntry.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/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LocationService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry() = default;
37 AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
48 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
49 template<typename GeofenceIdT = Aws::String>
50 void SetGeofenceId(GeofenceIdT&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::forward<GeofenceIdT>(value); }
51 template<typename GeofenceIdT = Aws::String>
52 BatchPutGeofenceRequestEntry& WithGeofenceId(GeofenceIdT&& value) { SetGeofenceId(std::forward<GeofenceIdT>(value)); return *this;}
54
56
65 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
66 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
67 template<typename GeometryT = GeofenceGeometry>
68 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
69 template<typename GeometryT = GeofenceGeometry>
70 BatchPutGeofenceRequestEntry& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
72
74
79 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
80 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
81 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
82 void SetGeofenceProperties(GeofencePropertiesT&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::forward<GeofencePropertiesT>(value); }
83 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
84 BatchPutGeofenceRequestEntry& WithGeofenceProperties(GeofencePropertiesT&& value) { SetGeofenceProperties(std::forward<GeofencePropertiesT>(value)); return *this;}
85 template<typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
86 BatchPutGeofenceRequestEntry& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
87 m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value)); return *this;
88 }
90 private:
91
92 Aws::String m_geofenceId;
93 bool m_geofenceIdHasBeenSet = false;
94
95 GeofenceGeometry m_geometry;
96 bool m_geometryHasBeenSet = false;
97
98 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
99 bool m_geofencePropertiesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace LocationService
104} // 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