/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 GetDevicePositionResult { public: AWS_LOCATIONSERVICE_API GetDevicePositionResult(); AWS_LOCATIONSERVICE_API GetDevicePositionResult(const Aws::AmazonWebServiceResult& result); AWS_LOCATIONSERVICE_API GetDevicePositionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The accuracy of the device position.

*/ inline const PositionalAccuracy& GetAccuracy() const{ return m_accuracy; } /** *

The accuracy of the device position.

*/ inline void SetAccuracy(const PositionalAccuracy& value) { m_accuracy = value; } /** *

The accuracy of the device position.

*/ inline void SetAccuracy(PositionalAccuracy&& value) { m_accuracy = std::move(value); } /** *

The accuracy of the device position.

*/ inline GetDevicePositionResult& WithAccuracy(const PositionalAccuracy& value) { SetAccuracy(value); return *this;} /** *

The accuracy of the device position.

*/ inline GetDevicePositionResult& WithAccuracy(PositionalAccuracy&& value) { SetAccuracy(std::move(value)); return *this;} /** *

The device whose position you retrieved.

*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *

The device whose position you retrieved.

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

The device whose position you retrieved.

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

The device whose position you retrieved.

*/ inline void SetDeviceId(const char* value) { m_deviceId.assign(value); } /** *

The device whose position you retrieved.

*/ inline GetDevicePositionResult& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The device whose position you retrieved.

*/ inline GetDevicePositionResult& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *

The device whose position you retrieved.

*/ inline GetDevicePositionResult& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *

The last known device position.

*/ inline const Aws::Vector& GetPosition() const{ return m_position; } /** *

The last known device position.

*/ inline void SetPosition(const Aws::Vector& value) { m_position = value; } /** *

The last known device position.

*/ inline void SetPosition(Aws::Vector&& value) { m_position = std::move(value); } /** *

The last known device position.

*/ inline GetDevicePositionResult& WithPosition(const Aws::Vector& value) { SetPosition(value); return *this;} /** *

The last known device position.

*/ inline GetDevicePositionResult& WithPosition(Aws::Vector&& value) { SetPosition(std::move(value)); return *this;} /** *

The last known device position.

*/ inline GetDevicePositionResult& AddPosition(double value) { m_position.push_back(value); return *this; } /** *

The properties associated with the position.

*/ inline const Aws::Map& GetPositionProperties() const{ return m_positionProperties; } /** *

The properties associated with the position.

*/ inline void SetPositionProperties(const Aws::Map& value) { m_positionProperties = value; } /** *

The properties associated with the position.

*/ inline void SetPositionProperties(Aws::Map&& value) { m_positionProperties = std::move(value); } /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& WithPositionProperties(const Aws::Map& value) { SetPositionProperties(value); return *this;} /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& WithPositionProperties(Aws::Map&& value) { SetPositionProperties(std::move(value)); return *this;} /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& AddPositionProperties(const Aws::String& key, const Aws::String& value) { m_positionProperties.emplace(key, value); return *this; } /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& AddPositionProperties(Aws::String&& key, const Aws::String& value) { m_positionProperties.emplace(std::move(key), value); return *this; } /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& AddPositionProperties(const Aws::String& key, Aws::String&& value) { m_positionProperties.emplace(key, std::move(value)); return *this; } /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& AddPositionProperties(Aws::String&& key, Aws::String&& value) { m_positionProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& AddPositionProperties(const char* key, Aws::String&& value) { m_positionProperties.emplace(key, std::move(value)); return *this; } /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& AddPositionProperties(Aws::String&& key, const char* value) { m_positionProperties.emplace(std::move(key), value); return *this; } /** *

The properties associated with the position.

*/ inline GetDevicePositionResult& AddPositionProperties(const char* key, const char* value) { m_positionProperties.emplace(key, value); return *this; } /** *

The timestamp for when the tracker resource received the device position in * ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline const Aws::Utils::DateTime& GetReceivedTime() const{ return m_receivedTime; } /** *

The timestamp for when the tracker resource received the device position in * ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

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

The timestamp for when the tracker resource received the device position in * ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

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

The timestamp for when the tracker resource received the device position in * ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline GetDevicePositionResult& WithReceivedTime(const Aws::Utils::DateTime& value) { SetReceivedTime(value); return *this;} /** *

The timestamp for when the tracker resource received the device position in * ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline GetDevicePositionResult& WithReceivedTime(Aws::Utils::DateTime&& value) { SetReceivedTime(std::move(value)); return *this;} /** *

The timestamp at which the device's position was determined. Uses ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline const Aws::Utils::DateTime& GetSampleTime() const{ return m_sampleTime; } /** *

The timestamp at which the device's position was determined. Uses ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

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

The timestamp at which the device's position was determined. Uses ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

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

The timestamp at which the device's position was determined. Uses ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline GetDevicePositionResult& WithSampleTime(const Aws::Utils::DateTime& value) { SetSampleTime(value); return *this;} /** *

The timestamp at which the device's position was determined. Uses ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline GetDevicePositionResult& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(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 GetDevicePositionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDevicePositionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDevicePositionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PositionalAccuracy m_accuracy; Aws::String m_deviceId; Aws::Vector m_position; Aws::Map m_positionProperties; Aws::Utils::DateTime m_receivedTime; Aws::Utils::DateTime m_sampleTime; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws