/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LocationService { namespace Model { /** *

Contains geofence geometry details.

See Also:

AWS * API Reference

*/ class BatchPutGeofenceRequestEntry { public: AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry(); AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry(Aws::Utils::Json::JsonView jsonValue); AWS_LOCATIONSERVICE_API BatchPutGeofenceRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier for the geofence to be stored in a given geofence * collection.

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

The identifier for the geofence to be stored in a given geofence * collection.

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

The identifier for the geofence to be stored in a given geofence * collection.

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

The identifier for the geofence to be stored in a given geofence * collection.

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

The identifier for the geofence to be stored in a given geofence * collection.

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

The identifier for the geofence to be stored in a given geofence * collection.

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

The identifier for the geofence to be stored in a given geofence * collection.

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

The identifier for the geofence to be stored in a given geofence * collection.

*/ inline BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& 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 BatchPutGeofenceRequestEntry& AddGeofenceProperties(const char* key, const char* value) { m_geofencePropertiesHasBeenSet = true; m_geofenceProperties.emplace(key, value); return *this; } /** *

Contains the details of 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 of 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 of 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 of 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 of 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 BatchPutGeofenceRequestEntry& WithGeometry(const GeofenceGeometry& value) { SetGeometry(value); return *this;} /** *

Contains the details of 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 BatchPutGeofenceRequestEntry& WithGeometry(GeofenceGeometry&& value) { SetGeometry(std::move(value)); return *this;} private: 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