/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LocationService { namespace Model { class GetGeofenceResult { public: AWS_LOCATIONSERVICE_API GetGeofenceResult(); AWS_LOCATIONSERVICE_API GetGeofenceResult(const Aws::AmazonWebServiceResult& result); AWS_LOCATIONSERVICE_API GetGeofenceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The timestamp for when the geofence collection was created in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The timestamp for when the geofence collection was created in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTime = value; } /** *

The timestamp for when the geofence collection was created in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTime = std::move(value); } /** *

The timestamp for when the geofence collection was created in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline GetGeofenceResult& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The timestamp for when the geofence collection was created in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline GetGeofenceResult& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The geofence identifier.

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

The geofence identifier.

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

The geofence identifier.

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

The geofence identifier.

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

The geofence identifier.

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

The geofence identifier.

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

The geofence identifier.

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

User defined properties of 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; } /** *

User defined properties of 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_geofenceProperties = value; } /** *

User defined properties of 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_geofenceProperties = std::move(value); } /** *

User defined properties of 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 GetGeofenceResult& WithGeofenceProperties(const Aws::Map& value) { SetGeofenceProperties(value); return *this;} /** *

User defined properties of 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 GetGeofenceResult& WithGeofenceProperties(Aws::Map&& value) { SetGeofenceProperties(std::move(value)); return *this;} /** *

User defined properties of 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 GetGeofenceResult& AddGeofenceProperties(const Aws::String& key, const Aws::String& value) { m_geofenceProperties.emplace(key, value); return *this; } /** *

User defined properties of 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 GetGeofenceResult& AddGeofenceProperties(Aws::String&& key, const Aws::String& value) { m_geofenceProperties.emplace(std::move(key), value); return *this; } /** *

User defined properties of 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 GetGeofenceResult& AddGeofenceProperties(const Aws::String& key, Aws::String&& value) { m_geofenceProperties.emplace(key, std::move(value)); return *this; } /** *

User defined properties of 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 GetGeofenceResult& AddGeofenceProperties(Aws::String&& key, Aws::String&& value) { m_geofenceProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

User defined properties of 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 GetGeofenceResult& AddGeofenceProperties(const char* key, Aws::String&& value) { m_geofenceProperties.emplace(key, std::move(value)); return *this; } /** *

User defined properties of 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 GetGeofenceResult& AddGeofenceProperties(Aws::String&& key, const char* value) { m_geofenceProperties.emplace(std::move(key), value); return *this; } /** *

User defined properties of 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 GetGeofenceResult& AddGeofenceProperties(const char* key, const char* value) { m_geofenceProperties.emplace(key, value); return *this; } /** *

Contains the geofence geometry details describing a polygon or a circle.

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

Contains the geofence geometry details describing a polygon or a circle.

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

Contains the geofence geometry details describing a polygon or a circle.

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

Contains the geofence geometry details describing a polygon or a circle.

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

Contains the geofence geometry details describing a polygon or a circle.

*/ inline GetGeofenceResult& WithGeometry(GeofenceGeometry&& value) { SetGeometry(std::move(value)); return *this;} /** *

Identifies the state of the geofence. A geofence will hold one of the * following states:

  • ACTIVE — The geofence has been * indexed by the system.

  • PENDING — The geofence * is being processed by the system.

  • FAILED — The * geofence failed to be indexed by the system.

  • * DELETED — The geofence has been deleted from the system index.

    *
  • DELETING — The geofence is being deleted from the * system index.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

Identifies the state of the geofence. A geofence will hold one of the * following states:

  • ACTIVE — The geofence has been * indexed by the system.

  • PENDING — The geofence * is being processed by the system.

  • FAILED — The * geofence failed to be indexed by the system.

  • * DELETED — The geofence has been deleted from the system index.

    *
  • DELETING — The geofence is being deleted from the * system index.

*/ inline void SetStatus(const Aws::String& value) { m_status = value; } /** *

Identifies the state of the geofence. A geofence will hold one of the * following states:

  • ACTIVE — The geofence has been * indexed by the system.

  • PENDING — The geofence * is being processed by the system.

  • FAILED — The * geofence failed to be indexed by the system.

  • * DELETED — The geofence has been deleted from the system index.

    *
  • DELETING — The geofence is being deleted from the * system index.

*/ inline void SetStatus(Aws::String&& value) { m_status = std::move(value); } /** *

Identifies the state of the geofence. A geofence will hold one of the * following states:

  • ACTIVE — The geofence has been * indexed by the system.

  • PENDING — The geofence * is being processed by the system.

  • FAILED — The * geofence failed to be indexed by the system.

  • * DELETED — The geofence has been deleted from the system index.

    *
  • DELETING — The geofence is being deleted from the * system index.

*/ inline void SetStatus(const char* value) { m_status.assign(value); } /** *

Identifies the state of the geofence. A geofence will hold one of the * following states:

  • ACTIVE — The geofence has been * indexed by the system.

  • PENDING — The geofence * is being processed by the system.

  • FAILED — The * geofence failed to be indexed by the system.

  • * DELETED — The geofence has been deleted from the system index.

    *
  • DELETING — The geofence is being deleted from the * system index.

*/ inline GetGeofenceResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

Identifies the state of the geofence. A geofence will hold one of the * following states:

  • ACTIVE — The geofence has been * indexed by the system.

  • PENDING — The geofence * is being processed by the system.

  • FAILED — The * geofence failed to be indexed by the system.

  • * DELETED — The geofence has been deleted from the system index.

    *
  • DELETING — The geofence is being deleted from the * system index.

*/ inline GetGeofenceResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

Identifies the state of the geofence. A geofence will hold one of the * following states:

  • ACTIVE — The geofence has been * indexed by the system.

  • PENDING — The geofence * is being processed by the system.

  • FAILED — The * geofence failed to be indexed by the system.

  • * DELETED — The geofence has been deleted from the system index.

    *
  • DELETING — The geofence is being deleted from the * system index.

*/ inline GetGeofenceResult& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The timestamp for when the geofence collection was last updated in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *

The timestamp for when the geofence collection was last updated in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTime = value; } /** *

The timestamp for when the geofence collection was last updated in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTime = std::move(value); } /** *

The timestamp for when the geofence collection was last updated in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline GetGeofenceResult& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *

The timestamp for when the geofence collection was last updated in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline GetGeofenceResult& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetGeofenceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetGeofenceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetGeofenceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_createTime; Aws::String m_geofenceId; Aws::Map m_geofenceProperties; GeofenceGeometry m_geometry; Aws::String m_status; Aws::Utils::DateTime m_updateTime; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws