AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
72 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
73 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
74 template<typename GeometryT = GeofenceGeometry>
75 void SetGeometry(GeometryT&& value) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
76 template<typename GeometryT = GeofenceGeometry>
77 PutGeofenceRequest& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
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) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::forward<GeofencePropertiesT>(value); }
90 template<typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
91 PutGeofenceRequest& WithGeofenceProperties(GeofencePropertiesT&& value) { SetGeofenceProperties(std::forward<GeofencePropertiesT>(value)); return *this;}
92 template<typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
93 PutGeofenceRequest& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
94 m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value)); return *this;
95 }
97 private:
98
99 Aws::String m_collectionName;
100 bool m_collectionNameHasBeenSet = false;
101
102 Aws::String m_geofenceId;
103 bool m_geofenceIdHasBeenSet = false;
104
105 GeofenceGeometry m_geometry;
106 bool m_geometryHasBeenSet = false;
107
108 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
109 bool m_geofencePropertiesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace LocationService
114} // 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