AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; }
44 inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); }
45 inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); }
46 inline PutGeofenceRequest& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;}
47 inline PutGeofenceRequest& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;}
48 inline PutGeofenceRequest& WithCollectionName(const char* value) { SetCollectionName(value); return *this;}
50
52
56 inline const Aws::String& GetGeofenceId() const{ return m_geofenceId; }
57 inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
58 inline void SetGeofenceId(const Aws::String& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = value; }
59 inline void SetGeofenceId(Aws::String&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::move(value); }
60 inline void SetGeofenceId(const char* value) { m_geofenceIdHasBeenSet = true; m_geofenceId.assign(value); }
61 inline PutGeofenceRequest& WithGeofenceId(const Aws::String& value) { SetGeofenceId(value); return *this;}
62 inline PutGeofenceRequest& WithGeofenceId(Aws::String&& value) { SetGeofenceId(std::move(value)); return *this;}
63 inline PutGeofenceRequest& WithGeofenceId(const char* value) { SetGeofenceId(value); return *this;}
65
67
76 inline const GeofenceGeometry& GetGeometry() const{ return m_geometry; }
77 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
78 inline void SetGeometry(const GeofenceGeometry& value) { m_geometryHasBeenSet = true; m_geometry = value; }
79 inline void SetGeometry(GeofenceGeometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); }
80 inline PutGeofenceRequest& WithGeometry(const GeofenceGeometry& value) { SetGeometry(value); return *this;}
81 inline PutGeofenceRequest& WithGeometry(GeofenceGeometry&& value) { SetGeometry(std::move(value)); return *this;}
83
85
90 inline const Aws::Map<Aws::String, Aws::String>& GetGeofenceProperties() const{ return m_geofenceProperties; }
91 inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; }
92 inline void SetGeofenceProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = value; }
93 inline void SetGeofenceProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::move(value); }
96 inline PutGeofenceRequest& AddGeofenceProperties(const Aws::String& key, const Aws::String& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, value); return *this; }
97 inline PutGeofenceRequest& AddGeofenceProperties(Aws::String&& key, const Aws::String& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), value); return *this; }
98 inline PutGeofenceRequest& AddGeofenceProperties(const Aws::String& key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, std::move(value)); return *this; }
99 inline PutGeofenceRequest& AddGeofenceProperties(Aws::String&& key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), std::move(value)); return *this; }
100 inline PutGeofenceRequest& AddGeofenceProperties(const char* key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, std::move(value)); return *this; }
101 inline PutGeofenceRequest& AddGeofenceProperties(Aws::String&& key, const char* value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), value); return *this; }
102 inline PutGeofenceRequest& AddGeofenceProperties(const char* key, const char* value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, value); return *this; }
104 private:
105
106 Aws::String m_collectionName;
107 bool m_collectionNameHasBeenSet = false;
108
109 Aws::String m_geofenceId;
110 bool m_geofenceIdHasBeenSet = false;
111
112 GeofenceGeometry m_geometry;
113 bool m_geometryHasBeenSet = false;
114
115 Aws::Map<Aws::String, Aws::String> m_geofenceProperties;
116 bool m_geofencePropertiesHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace LocationService
121} // namespace Aws
PutGeofenceRequest & WithGeofenceId(const char *value)
PutGeofenceRequest & AddGeofenceProperties(Aws::String &&key, const Aws::String &value)
PutGeofenceRequest & AddGeofenceProperties(Aws::String &&key, const char *value)
PutGeofenceRequest & WithGeofenceId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetGeofenceProperties() const
PutGeofenceRequest & WithGeometry(const GeofenceGeometry &value)
PutGeofenceRequest & WithGeofenceProperties(Aws::Map< Aws::String, Aws::String > &&value)
PutGeofenceRequest & AddGeofenceProperties(const Aws::String &key, Aws::String &&value)
PutGeofenceRequest & WithGeofenceId(const Aws::String &value)
PutGeofenceRequest & AddGeofenceProperties(const char *key, Aws::String &&value)
PutGeofenceRequest & WithGeofenceProperties(const Aws::Map< Aws::String, Aws::String > &value)
PutGeofenceRequest & WithCollectionName(Aws::String &&value)
void SetGeofenceProperties(const Aws::Map< Aws::String, Aws::String > &value)
void SetGeometry(const GeofenceGeometry &value)
PutGeofenceRequest & AddGeofenceProperties(const char *key, const char *value)
PutGeofenceRequest & WithGeometry(GeofenceGeometry &&value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
void SetGeofenceProperties(Aws::Map< Aws::String, Aws::String > &&value)
PutGeofenceRequest & WithCollectionName(const char *value)
PutGeofenceRequest & WithCollectionName(const Aws::String &value)
PutGeofenceRequest & AddGeofenceProperties(const Aws::String &key, const Aws::String &value)
PutGeofenceRequest & AddGeofenceProperties(Aws::String &&key, Aws::String &&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