/** * 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 BatchGetDevicePositionResult { public: AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult(); AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult(const Aws::AmazonWebServiceResult& result); AWS_LOCATIONSERVICE_API BatchGetDevicePositionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains device position details such as the device ID, position, and * timestamps for when the position was received and sampled.

*/ inline const Aws::Vector& GetDevicePositions() const{ return m_devicePositions; } /** *

Contains device position details such as the device ID, position, and * timestamps for when the position was received and sampled.

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

Contains device position details such as the device ID, position, and * timestamps for when the position was received and sampled.

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

Contains device position details such as the device ID, position, and * timestamps for when the position was received and sampled.

*/ inline BatchGetDevicePositionResult& WithDevicePositions(const Aws::Vector& value) { SetDevicePositions(value); return *this;} /** *

Contains device position details such as the device ID, position, and * timestamps for when the position was received and sampled.

*/ inline BatchGetDevicePositionResult& WithDevicePositions(Aws::Vector&& value) { SetDevicePositions(std::move(value)); return *this;} /** *

Contains device position details such as the device ID, position, and * timestamps for when the position was received and sampled.

*/ inline BatchGetDevicePositionResult& AddDevicePositions(const DevicePosition& value) { m_devicePositions.push_back(value); return *this; } /** *

Contains device position details such as the device ID, position, and * timestamps for when the position was received and sampled.

*/ inline BatchGetDevicePositionResult& AddDevicePositions(DevicePosition&& value) { m_devicePositions.push_back(std::move(value)); return *this; } /** *

Contains error details for each device that failed to send its position to * the tracker resource.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

Contains error details for each device that failed to send its position to * the tracker resource.

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

Contains error details for each device that failed to send its position to * the tracker resource.

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

Contains error details for each device that failed to send its position to * the tracker resource.

*/ inline BatchGetDevicePositionResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

Contains error details for each device that failed to send its position to * the tracker resource.

*/ inline BatchGetDevicePositionResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

Contains error details for each device that failed to send its position to * the tracker resource.

*/ inline BatchGetDevicePositionResult& AddErrors(const BatchGetDevicePositionError& value) { m_errors.push_back(value); return *this; } /** *

Contains error details for each device that failed to send its position to * the tracker resource.

*/ inline BatchGetDevicePositionResult& AddErrors(BatchGetDevicePositionError&& value) { m_errors.push_back(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 BatchGetDevicePositionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetDevicePositionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetDevicePositionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_devicePositions; Aws::Vector m_errors; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws