/** * 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 evaluate its position * against the geofences in a given geofence collection.

See Also:

* AWS * API Reference

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

The device associated with the position evaluation error.

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

The device associated with the position evaluation error.

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

The device associated with the position evaluation error.

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

The device associated with the position evaluation error.

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

The device associated with the position evaluation error.

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

The device associated with the position evaluation error.

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

The device associated with the position evaluation error.

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

The device associated with the position evaluation error.

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

Contains details associated to the batch error.

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

Contains details associated to the batch error.

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

Contains details associated to the batch error.

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

Contains details associated to the batch error.

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

Contains details associated to the batch error.

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

Contains details associated to the batch error.

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

Specifies a timestamp for when the error occurred in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

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

Specifies a timestamp for when the error occurred in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

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

Specifies a timestamp for when the error occurred in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

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

Specifies a timestamp for when the error occurred in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

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

Specifies a timestamp for when the error occurred in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

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

Specifies a timestamp for when the error occurred in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ

*/ inline BatchEvaluateGeofencesError& 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