/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { class AWS_S3_API DeleteObjectsResult { public: DeleteObjectsResult(); DeleteObjectsResult(const Aws::AmazonWebServiceResult& result); DeleteObjectsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Container element for a successful delete. It identifies the object that was * successfully deleted.

*/ inline const Aws::Vector& GetDeleted() const{ return m_deleted; } /** *

Container element for a successful delete. It identifies the object that was * successfully deleted.

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

Container element for a successful delete. It identifies the object that was * successfully deleted.

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

Container element for a successful delete. It identifies the object that was * successfully deleted.

*/ inline DeleteObjectsResult& WithDeleted(const Aws::Vector& value) { SetDeleted(value); return *this;} /** *

Container element for a successful delete. It identifies the object that was * successfully deleted.

*/ inline DeleteObjectsResult& WithDeleted(Aws::Vector&& value) { SetDeleted(std::move(value)); return *this;} /** *

Container element for a successful delete. It identifies the object that was * successfully deleted.

*/ inline DeleteObjectsResult& AddDeleted(const DeletedObject& value) { m_deleted.push_back(value); return *this; } /** *

Container element for a successful delete. It identifies the object that was * successfully deleted.

*/ inline DeleteObjectsResult& AddDeleted(DeletedObject&& value) { m_deleted.push_back(std::move(value)); return *this; } inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; } inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; } inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = std::move(value); } inline DeleteObjectsResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;} inline DeleteObjectsResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(std::move(value)); return *this;} /** *

Container for a failed delete action that describes the object that Amazon S3 * attempted to delete and the error it encountered.

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

Container for a failed delete action that describes the object that Amazon S3 * attempted to delete and the error it encountered.

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

Container for a failed delete action that describes the object that Amazon S3 * attempted to delete and the error it encountered.

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

Container for a failed delete action that describes the object that Amazon S3 * attempted to delete and the error it encountered.

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

Container for a failed delete action that describes the object that Amazon S3 * attempted to delete and the error it encountered.

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

Container for a failed delete action that describes the object that Amazon S3 * attempted to delete and the error it encountered.

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

Container for a failed delete action that describes the object that Amazon S3 * attempted to delete and the error it encountered.

*/ inline DeleteObjectsResult& AddErrors(Error&& value) { m_errors.push_back(std::move(value)); return *this; } private: Aws::Vector m_deleted; RequestCharged m_requestCharged; Aws::Vector m_errors; }; } // namespace Model } // namespace S3 } // namespace Aws