/** * 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 error details for each device that failed to update its * position.

See Also:

AWS * API Reference

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

The device associated with the failed location update.

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

The device associated with the failed location update.

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

The device associated with the failed location update.

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

The device associated with the failed location update.

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

The device associated with the failed location update.

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

The device associated with the failed location update.

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

The device associated with the failed location update.

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

The device associated with the failed location update.

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

Contains details related to the error code such as the error code and error * message.

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

Contains details related to the error code such as the error code and error * message.

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

Contains details related to the error code such as the error code and error * message.

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

Contains details related to the error code such as the error code and error * message.

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

Contains details related to the error code such as the error code and error * message.

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

Contains details related to the error code such as the error code and error * message.

*/ inline BatchUpdateDevicePositionError& WithError(BatchItemError&& value) { SetError(std::move(value)); return *this;} /** *

The timestamp at which the device 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 position was determined. Uses ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; } /** *

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

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

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

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

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

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

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

*/ inline BatchUpdateDevicePositionError& WithSampleTime(Aws::Utils::DateTime&& value) { SetSampleTime(std::move(value)); return *this;} private: Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; BatchItemError m_error; bool m_errorHasBeenSet = false; Aws::Utils::DateTime m_sampleTime; bool m_sampleTimeHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws