AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutGeofenceRequest.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/LocationServiceRequest.h>
10#include <aws/location/LocationService_EXPORTS.h>
11#include <aws/location/model/GeofenceGeometry.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LocationService {
17namespace Model {
18
22 public:
23 AWS_LOCATIONSERVICE_API PutGeofenceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutGeofence"; }
30
31 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetCollectionName() const { return m_collectionName; }
38 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
39 template <typename CollectionNameT = Aws::String>
40 void SetCollectionName(CollectionNameT&& value) {
41 m_collectionNameHasBeenSet = true;
42 m_collectionName = std::forward<CollectionNameT>(value);
43 }
44 template <typename CollectionNameT = Aws::String>
45 PutGeofenceRequest& WithCollectionName(CollectionNameT&& value) {
46 SetCollectionName(std::forward<CollectionNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetGeofenceId() const { return m_geofenceId; }
57 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
58 template <typename GeofenceIdT = Aws::String>
59 void SetGeofenceId(GeofenceIdT&& value) {
60 m_geofenceIdHasBeenSet = true;
61 m_geofenceId = std::forward<GeofenceIdT>(value);
62 }
63 template <typename GeofenceIdT = Aws::String>
64 PutGeofenceRequest& WithGeofenceId(GeofenceIdT&& value) {
65 SetGeofenceId(std::forward<GeofenceIdT>(value));
66 return *this;
67 }
69
71
81 inline const GeofenceGeometry& GetGeometry() const { return m_geometry; }
82 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
83 template <typename GeometryT = GeofenceGeometry>
84 void SetGeometry(GeometryT&& value) {
85 m_geometryHasBeenSet = true;
86 m_geometry = std::forward<GeometryT>(value);
87 }
88 template <typename GeometryT = GeofenceGeometry>
89 PutGeofenceRequest& WithGeometry(GeometryT&& value) {
90 SetGeometry(std::forward<GeometryT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const { return m_geofenceProperties; }
102 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
103 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
104 void SetGeofenceProperties(GeofencePropertiesT&& value) {
105 m_geofencePropertiesHasBeenSet = true;
106 m_geofenceProperties = std::forward<GeofencePropertiesT>(value);
107 }
108 template <typename GeofencePropertiesT = Aws::Map<Aws::String, Aws::String>>
109 PutGeofenceRequest& WithGeofenceProperties(GeofencePropertiesT&& value) {
110 SetGeofenceProperties(std::forward<GeofencePropertiesT>(value));
111 return *this;
112 }
113 template <typename GeofencePropertiesKeyT = Aws::String, typename GeofencePropertiesValueT = Aws::String>
114 PutGeofenceRequest& AddGeofenceProperties(GeofencePropertiesKeyT&& key, GeofencePropertiesValueT&& value) {
115 m_geofencePropertiesHasBeenSet = true;
116 m_geofenceProperties.emplace(std::forward<GeofencePropertiesKeyT>(key), std::forward<GeofencePropertiesValueT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_collectionName;
122
123 Aws::String m_geofenceId;
124
125 GeofenceGeometry m_geometry;
126
127 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
128 bool m_collectionNameHasBeenSet = false;
129 bool m_geofenceIdHasBeenSet = false;
130 bool m_geometryHasBeenSet = false;
131 bool m_geofencePropertiesHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace LocationService
136} // 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