AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
PutGeofenceRequest.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/model/GeofenceGeometry.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LocationService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LOCATIONSERVICE_API PutGeofenceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutGeofence"; }
33
34 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetCollectionName() const { return m_collectionName; }
42 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
43 template<typename CollectionNameT = Aws::String>
44 void SetCollectionName(CollectionNameT&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::forward<CollectionNameT>(value); }
45 template<typename CollectionNameT = Aws::String>
46 PutGeofenceRequest& WithCollectionName(CollectionNameT&& value) { SetCollectionName(std::forward<CollectionNameT>(value)); return *this;}
48
50
54 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
55 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
56 template<typename GeofenceIdT = Aws::String>
57 void SetGeofenceId(GeofenceIdT&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::forward<GeofenceIdT>(value); }
58 template<typename GeofenceIdT = Aws::String>
59 PutGeofenceRequest& WithGeofenceId(GeofenceIdT&& value) { SetGeofenceId(std::forward<GeofenceIdT>(value)); return *this;}
61
63
73 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
74 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
75 template<typename GeometryT = GeofenceGeometry>
76 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
77 template<typename GeometryT = GeofenceGeometry>
78 PutGeofenceRequest& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
80
82
87 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
88 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
89 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
90 void SetGeofenceProperties(GeofencePropertiesT&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::forward<GeofencePropertiesT>(value); }
91 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
92 PutGeofenceRequest& WithGeofenceProperties(GeofencePropertiesT&& value) { SetGeofenceProperties(std::forward<GeofencePropertiesT>(value)); return *this;}
93 template<typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
94 PutGeofenceRequest& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
95 m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value)); return *this;
96 }
98 private:
99
100 Aws::String m_collectionName;
101 bool m_collectionNameHasBeenSet = false;
102
103 Aws::String m_geofenceId;
104 bool m_geofenceIdHasBeenSet = false;
105
106 GeofenceGeometry m_geometry;
107 bool m_geometryHasBeenSet = false;
108
109 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
110 bool m_geofencePropertiesHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LocationService
115} // namespace Aws
PutGeofenceRequest & WithGeofenceId(GeofenceIdT &&value)
virtual const char * GetServiceRequestName() const override
PutGeofenceRequest & WithGeofenceProperties(GeofencePropertiesT &&value)
void SetGeofenceProperties(GeofencePropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetGeofenceProperties() const
AWS_LOCATIONSERVICE_API PutGeofenceRequest()=default
PutGeofenceRequest & AddGeofenceProperties(GeofencePropertiesKeyT &&key, GeofencePropertiesValueT &&value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
PutGeofenceRequest & WithGeometry(GeometryT &&value)
PutGeofenceRequest & WithCollectionName(CollectionNameT &&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