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

Contains additional error details for each geofence that failed to be stored * in a geofence collection.

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

Contains additional error details for each geofence that failed to be stored * in a geofence collection.

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

Contains additional error details for each geofence that failed to be stored * in a geofence collection.

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

Contains additional error details for each geofence that failed to be stored * in a geofence collection.

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

Contains additional error details for each geofence that failed to be stored * in a geofence collection.

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

Contains additional error details for each geofence that failed to be stored * in a geofence collection.

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

Contains additional error details for each geofence that failed to be stored * in a geofence collection.

*/ inline BatchPutGeofenceResult& AddErrors(BatchPutGeofenceError&& value) { m_errors.push_back(std::move(value)); return *this; } /** *

Contains each geofence that was successfully stored in a geofence * collection.

*/ inline const Aws::Vector& GetSuccesses() const{ return m_successes; } /** *

Contains each geofence that was successfully stored in a geofence * collection.

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

Contains each geofence that was successfully stored in a geofence * collection.

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

Contains each geofence that was successfully stored in a geofence * collection.

*/ inline BatchPutGeofenceResult& WithSuccesses(const Aws::Vector& value) { SetSuccesses(value); return *this;} /** *

Contains each geofence that was successfully stored in a geofence * collection.

*/ inline BatchPutGeofenceResult& WithSuccesses(Aws::Vector&& value) { SetSuccesses(std::move(value)); return *this;} /** *

Contains each geofence that was successfully stored in a geofence * collection.

*/ inline BatchPutGeofenceResult& AddSuccesses(const BatchPutGeofenceSuccess& value) { m_successes.push_back(value); return *this; } /** *

Contains each geofence that was successfully stored in a geofence * collection.

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