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

Contains error details for each device that didn't return a * position.

See Also:

AWS * API Reference

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

The ID of the device that didn't return a position.

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

The ID of the device that didn't return a position.

*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *

The ID of the device that didn't return a position.

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

The ID of the device that didn't return a position.

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

The ID of the device that didn't return a position.

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

The ID of the device that didn't return a position.

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

The ID of the device that didn't return a position.

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

The ID of the device that didn't return a position.

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

Contains details related to the error code.

*/ inline const BatchItemError& GetError() const{ return m_error; } /** *

Contains details related to the error code.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

Contains details related to the error code.

*/ inline void SetError(const BatchItemError& value) { m_errorHasBeenSet = true; m_error = value; } /** *

Contains details related to the error code.

*/ inline void SetError(BatchItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

Contains details related to the error code.

*/ inline BatchGetDevicePositionError& WithError(const BatchItemError& value) { SetError(value); return *this;} /** *

Contains details related to the error code.

*/ inline BatchGetDevicePositionError& WithError(BatchItemError&& value) { SetError(std::move(value)); return *this;} private: Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; BatchItemError m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws