/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace LocationService { namespace Model { /** */ class PutGeofenceRequest : public LocationServiceRequest { public: AWS_LOCATIONSERVICE_API PutGeofenceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutGeofence"; } AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override; /** *

The geofence collection to store the geofence in.

*/ inline const Aws::String& GetCollectionName() const{ return m_collectionName; } /** *

The geofence collection to store the geofence in.

*/ inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; } /** *

The geofence collection to store the geofence in.

*/ inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; } /** *

The geofence collection to store the geofence in.

*/ inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); } /** *

The geofence collection to store the geofence in.

*/ inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); } /** *

The geofence collection to store the geofence in.

*/ inline PutGeofenceRequest& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;} /** *

The geofence collection to store the geofence in.

*/ inline PutGeofenceRequest& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;} /** *

The geofence collection to store the geofence in.

*/ inline PutGeofenceRequest& WithCollectionName(const char* value) { SetCollectionName(value); return *this;} /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline const Aws::String& GetGeofenceId() const{ return m_geofenceId; } /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; } /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline void SetGeofenceId(const Aws::String& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = value; } /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline void SetGeofenceId(Aws::String&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::move(value); } /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline void SetGeofenceId(const char* value) { m_geofenceIdHasBeenSet = true; m_geofenceId.assign(value); } /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline PutGeofenceRequest& WithGeofenceId(const Aws::String& value) { SetGeofenceId(value); return *this;} /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline PutGeofenceRequest& WithGeofenceId(Aws::String&& value) { SetGeofenceId(std::move(value)); return *this;} /** *

An identifier for the geofence. For example, * ExampleGeofence-1.

*/ inline PutGeofenceRequest& WithGeofenceId(const char* value) { SetGeofenceId(value); return *this;} /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline const Aws::Map& GetGeofenceProperties() const{ return m_geofenceProperties; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline bool GeofencePropertiesHasBeenSet() const { return m_geofencePropertiesHasBeenSet; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline void SetGeofenceProperties(const Aws::Map& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = value; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline void SetGeofenceProperties(Aws::Map&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties = std::move(value); } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& WithGeofenceProperties(const Aws::Map& value) { SetGeofenceProperties(value); return *this;} /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& WithGeofenceProperties(Aws::Map&& value) { SetGeofenceProperties(std::move(value)); return *this;} /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& AddGeofenceProperties(const Aws::String& key, const Aws::String& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, value); return *this; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& AddGeofenceProperties(Aws::String&& key, const Aws::String& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), value); return *this; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& AddGeofenceProperties(const Aws::String& key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, std::move(value)); return *this; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& AddGeofenceProperties(Aws::String&& key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& AddGeofenceProperties(const char* key, Aws::String&& value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, std::move(value)); return *this; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& AddGeofenceProperties(Aws::String&& key, const char* value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(std::move(key), value); return *this; } /** *

Associates one of more properties with the geofence. A property is a * key-value pair stored with the geofence and added to any geofence event * triggered with that geofence.

Format: "key" : "value"

*/ inline PutGeofenceRequest& AddGeofenceProperties(const char* key, const char* value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, value); return *this; } /** *

Contains the details to specify the position of the geofence. Can be either a * polygon or a circle. Including both will return a validation error.

*

Each * geofence polygon can have a maximum of 1,000 vertices.

*/ inline const GeofenceGeometry& GetGeometry() const{ return m_geometry; } /** *

Contains the details to specify the position of the geofence. Can be either a * polygon or a circle. Including both will return a validation error.

*

Each * geofence polygon can have a maximum of 1,000 vertices.

*/ inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; } /** *

Contains the details to specify the position of the geofence. Can be either a * polygon or a circle. Including both will return a validation error.

*

Each * geofence polygon can have a maximum of 1,000 vertices.

*/ inline void SetGeometry(const GeofenceGeometry& value) { m_geometryHasBeenSet = true; m_geometry = value; } /** *

Contains the details to specify the position of the geofence. Can be either a * polygon or a circle. Including both will return a validation error.

*

Each * geofence polygon can have a maximum of 1,000 vertices.

*/ inline void SetGeometry(GeofenceGeometry&& value) { m_geometryHasBeenSet = true; m_geometry = std::move(value); } /** *

Contains the details to specify the position of the geofence. Can be either a * polygon or a circle. Including both will return a validation error.

*

Each * geofence polygon can have a maximum of 1,000 vertices.

*/ inline PutGeofenceRequest& WithGeometry(const GeofenceGeometry& value) { SetGeometry(value); return *this;} /** *

Contains the details to specify the position of the geofence. Can be either a * polygon or a circle. Including both will return a validation error.

*

Each * geofence polygon can have a maximum of 1,000 vertices.

*/ inline PutGeofenceRequest& WithGeometry(GeofenceGeometry&& value) { SetGeometry(std::move(value)); return *this;} private: Aws::String m_collectionName; bool m_collectionNameHasBeenSet = false; Aws::String m_geofenceId; bool m_geofenceIdHasBeenSet = false; Aws::Map m_geofenceProperties; bool m_geofencePropertiesHasBeenSet = false; GeofenceGeometry m_geometry; bool m_geometryHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws