AWS SDK for C++

AWS SDK for C++ Version 1.11.635

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
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) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
70 template<typename GeometryT = GeofenceGeometry>
71 BatchPutGeofenceRequestEntry& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
73
75
80 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
81 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
82 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
83 void SetGeofenceProperties(GeofencePropertiesT&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::forward<GeofencePropertiesT>(value); }
84 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
85 BatchPutGeofenceRequestEntry& WithGeofenceProperties(GeofencePropertiesT&& value) { SetGeofenceProperties(std::forward<GeofencePropertiesT>(value)); return *this;}
86 template<typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
87 BatchPutGeofenceRequestEntry& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
88 m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value)); return *this;
89 }
91 private:
92
93 Aws::String m_geofenceId;
94 bool m_geofenceIdHasBeenSet = false;
95
96 GeofenceGeometry m_geometry;
97 bool m_geometryHasBeenSet = false;
98
99 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
100 bool m_geofencePropertiesHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace LocationService
105} // 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