/** * 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 CloudTrailData { namespace Model { class PutAuditEventsResult { public: AWS_CLOUDTRAILDATA_API PutAuditEventsResult(); AWS_CLOUDTRAILDATA_API PutAuditEventsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAILDATA_API PutAuditEventsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Lists events in the provided event payload that could not be ingested into * CloudTrail, and includes the error code and error message returned for events * that could not be ingested.

*/ inline const Aws::Vector& GetFailed() const{ return m_failed; } /** *

Lists events in the provided event payload that could not be ingested into * CloudTrail, and includes the error code and error message returned for events * that could not be ingested.

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

Lists events in the provided event payload that could not be ingested into * CloudTrail, and includes the error code and error message returned for events * that could not be ingested.

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

Lists events in the provided event payload that could not be ingested into * CloudTrail, and includes the error code and error message returned for events * that could not be ingested.

*/ inline PutAuditEventsResult& WithFailed(const Aws::Vector& value) { SetFailed(value); return *this;} /** *

Lists events in the provided event payload that could not be ingested into * CloudTrail, and includes the error code and error message returned for events * that could not be ingested.

*/ inline PutAuditEventsResult& WithFailed(Aws::Vector&& value) { SetFailed(std::move(value)); return *this;} /** *

Lists events in the provided event payload that could not be ingested into * CloudTrail, and includes the error code and error message returned for events * that could not be ingested.

*/ inline PutAuditEventsResult& AddFailed(const ResultErrorEntry& value) { m_failed.push_back(value); return *this; } /** *

Lists events in the provided event payload that could not be ingested into * CloudTrail, and includes the error code and error message returned for events * that could not be ingested.

*/ inline PutAuditEventsResult& AddFailed(ResultErrorEntry&& value) { m_failed.push_back(std::move(value)); return *this; } /** *

Lists events in the provided event payload that were successfully ingested * into CloudTrail.

*/ inline const Aws::Vector& GetSuccessful() const{ return m_successful; } /** *

Lists events in the provided event payload that were successfully ingested * into CloudTrail.

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

Lists events in the provided event payload that were successfully ingested * into CloudTrail.

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

Lists events in the provided event payload that were successfully ingested * into CloudTrail.

*/ inline PutAuditEventsResult& WithSuccessful(const Aws::Vector& value) { SetSuccessful(value); return *this;} /** *

Lists events in the provided event payload that were successfully ingested * into CloudTrail.

*/ inline PutAuditEventsResult& WithSuccessful(Aws::Vector&& value) { SetSuccessful(std::move(value)); return *this;} /** *

Lists events in the provided event payload that were successfully ingested * into CloudTrail.

*/ inline PutAuditEventsResult& AddSuccessful(const AuditEventResultEntry& value) { m_successful.push_back(value); return *this; } /** *

Lists events in the provided event payload that were successfully ingested * into CloudTrail.

*/ inline PutAuditEventsResult& AddSuccessful(AuditEventResultEntry&& value) { m_successful.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 PutAuditEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutAuditEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutAuditEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_failed; Aws::Vector m_successful; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrailData } // namespace Aws