AWS SDK for C++  1.9.131
AWS SDK for C++
PutGeofenceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace LocationService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutGeofence"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetCollectionName() const{ return m_collectionName; }
40 
44  inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
45 
49  inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; }
50 
54  inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); }
55 
59  inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); }
60 
64  inline PutGeofenceRequest& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;}
65 
69  inline PutGeofenceRequest& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;}
70 
74  inline PutGeofenceRequest& WithCollectionName(const char* value) { SetCollectionName(value); return *this;}
75 
76 
81  inline const Aws::String& GetGeofenceId() const{ return m_geofenceId; }
82 
87  inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; }
88 
93  inline void SetGeofenceId(const Aws::String& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = value; }
94 
99  inline void SetGeofenceId(Aws::String&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::move(value); }
100 
105  inline void SetGeofenceId(const char* value) { m_geofenceIdHasBeenSet = true; m_geofenceId.assign(value); }
106 
111  inline PutGeofenceRequest& WithGeofenceId(const Aws::String& value) { SetGeofenceId(value); return *this;}
112 
117  inline PutGeofenceRequest& WithGeofenceId(Aws::String&& value) { SetGeofenceId(std::move(value)); return *this;}
118 
123  inline PutGeofenceRequest& WithGeofenceId(const char* value) { SetGeofenceId(value); return *this;}
124 
125 
132  inline const GeofenceGeometry& GetGeometry() const{ return m_geometry; }
133 
140  inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
141 
148  inline void SetGeometry(const GeofenceGeometry& value) { m_geometryHasBeenSet = true; m_geometry = value; }
149 
156  inline void SetGeometry(GeofenceGeometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); }
157 
164  inline PutGeofenceRequest& WithGeometry(const GeofenceGeometry& value) { SetGeometry(value); return *this;}
165 
172  inline PutGeofenceRequest& WithGeometry(GeofenceGeometry&& value) { SetGeometry(std::move(value)); return *this;}
173 
174  private:
175 
176  Aws::String m_collectionName;
177  bool m_collectionNameHasBeenSet;
178 
179  Aws::String m_geofenceId;
180  bool m_geofenceIdHasBeenSet;
181 
182  GeofenceGeometry m_geometry;
183  bool m_geometryHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace LocationService
188 } // namespace Aws
Aws::LocationService::Model::PutGeofenceRequest::SetGeometry
void SetGeometry(const GeofenceGeometry &value)
Definition: PutGeofenceRequest.h:148
Aws::LocationService::Model::PutGeofenceRequest::WithCollectionName
PutGeofenceRequest & WithCollectionName(const char *value)
Definition: PutGeofenceRequest.h:74
Aws::LocationService::Model::PutGeofenceRequest::SetGeofenceId
void SetGeofenceId(const char *value)
Definition: PutGeofenceRequest.h:105
Aws::LocationService::Model::PutGeofenceRequest::WithCollectionName
PutGeofenceRequest & WithCollectionName(Aws::String &&value)
Definition: PutGeofenceRequest.h:69
Aws::LocationService::Model::PutGeofenceRequest::GeofenceIdHasBeenSet
bool GeofenceIdHasBeenSet() const
Definition: PutGeofenceRequest.h:87
Aws::LocationService::Model::PutGeofenceRequest::GetGeofenceId
const Aws::String & GetGeofenceId() const
Definition: PutGeofenceRequest.h:81
Aws::LocationService::Model::PutGeofenceRequest::WithGeometry
PutGeofenceRequest & WithGeometry(const GeofenceGeometry &value)
Definition: PutGeofenceRequest.h:164
Aws::LocationService::Model::PutGeofenceRequest::CollectionNameHasBeenSet
bool CollectionNameHasBeenSet() const
Definition: PutGeofenceRequest.h:44
Aws::LocationService::Model::PutGeofenceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutGeofenceRequest.h:31
Aws::LocationService::Model::PutGeofenceRequest::PutGeofenceRequest
PutGeofenceRequest()
Aws::LocationService::Model::PutGeofenceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LocationService::Model::PutGeofenceRequest::GetGeometry
const GeofenceGeometry & GetGeometry() const
Definition: PutGeofenceRequest.h:132
Aws::LocationService::Model::PutGeofenceRequest::WithCollectionName
PutGeofenceRequest & WithCollectionName(const Aws::String &value)
Definition: PutGeofenceRequest.h:64
AWS_LOCATIONSERVICE_API
#define AWS_LOCATIONSERVICE_API
Definition: LocationService_EXPORTS.h:28
LocationServiceRequest.h
LocationService_EXPORTS.h
Aws::LocationService::Model::GeofenceGeometry
Definition: GeofenceGeometry.h:35
Aws::LocationService::Model::PutGeofenceRequest::SetGeofenceId
void SetGeofenceId(Aws::String &&value)
Definition: PutGeofenceRequest.h:99
Aws::LocationService::Model::PutGeofenceRequest::WithGeofenceId
PutGeofenceRequest & WithGeofenceId(Aws::String &&value)
Definition: PutGeofenceRequest.h:117
Aws::LocationService::Model::PutGeofenceRequest::SetGeometry
void SetGeometry(GeofenceGeometry &&value)
Definition: PutGeofenceRequest.h:156
GeofenceGeometry.h
Aws::LocationService::Model::PutGeofenceRequest::GetCollectionName
const Aws::String & GetCollectionName() const
Definition: PutGeofenceRequest.h:39
Aws::LocationService::Model::PutGeofenceRequest::SetCollectionName
void SetCollectionName(Aws::String &&value)
Definition: PutGeofenceRequest.h:54
AWSString.h
Aws::LocationService::Model::PutGeofenceRequest::SetGeofenceId
void SetGeofenceId(const Aws::String &value)
Definition: PutGeofenceRequest.h:93
Aws::LocationService::Model::PutGeofenceRequest::WithGeofenceId
PutGeofenceRequest & WithGeofenceId(const Aws::String &value)
Definition: PutGeofenceRequest.h:111
Aws::LocationService::Model::PutGeofenceRequest
Definition: PutGeofenceRequest.h:23
Aws::LocationService::Model::PutGeofenceRequest::SetCollectionName
void SetCollectionName(const Aws::String &value)
Definition: PutGeofenceRequest.h:49
Aws::LocationService::Model::PutGeofenceRequest::SetCollectionName
void SetCollectionName(const char *value)
Definition: PutGeofenceRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::LocationService::Model::PutGeofenceRequest::WithGeometry
PutGeofenceRequest & WithGeometry(GeofenceGeometry &&value)
Definition: PutGeofenceRequest.h:172
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LocationService::Model::PutGeofenceRequest::WithGeofenceId
PutGeofenceRequest & WithGeofenceId(const char *value)
Definition: PutGeofenceRequest.h:123
Aws::LocationService::LocationServiceRequest
Definition: LocationServiceRequest.h:17
Aws::LocationService::Model::PutGeofenceRequest::GeometryHasBeenSet
bool GeometryHasBeenSet() const
Definition: PutGeofenceRequest.h:140