/** * 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 geofence that failed to delete from the * geofence collection.

See Also:

AWS * API Reference

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

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 BatchDeleteGeofenceError& WithError(const BatchItemError& value) { SetError(value); return *this;} /** *

Contains details associated to the batch error.

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

The geofence associated with the error message.

*/ inline const Aws::String& GetGeofenceId() const{ return m_geofenceId; } /** *

The geofence associated with the error message.

*/ inline bool GeofenceIdHasBeenSet() const { return m_geofenceIdHasBeenSet; } /** *

The geofence associated with the error message.

*/ inline void SetGeofenceId(const Aws::String& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = value; } /** *

The geofence associated with the error message.

*/ inline void SetGeofenceId(Aws::String&& value) { m_geofenceIdHasBeenSet = true; m_geofenceId = std::move(value); } /** *

The geofence associated with the error message.

*/ inline void SetGeofenceId(const char* value) { m_geofenceIdHasBeenSet = true; m_geofenceId.assign(value); } /** *

The geofence associated with the error message.

*/ inline BatchDeleteGeofenceError& WithGeofenceId(const Aws::String& value) { SetGeofenceId(value); return *this;} /** *

The geofence associated with the error message.

*/ inline BatchDeleteGeofenceError& WithGeofenceId(Aws::String&& value) { SetGeofenceId(std::move(value)); return *this;} /** *

The geofence associated with the error message.

*/ inline BatchDeleteGeofenceError& WithGeofenceId(const char* value) { SetGeofenceId(value); return *this;} private: BatchItemError m_error; bool m_errorHasBeenSet = false; Aws::String m_geofenceId; bool m_geofenceIdHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws