/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { class PutEventsResult { public: AWS_EVENTBRIDGE_API PutEventsResult(); AWS_EVENTBRIDGE_API PutEventsResult(const Aws::AmazonWebServiceResult& result); AWS_EVENTBRIDGE_API PutEventsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The number of failed entries.

*/ inline int GetFailedEntryCount() const{ return m_failedEntryCount; } /** *

The number of failed entries.

*/ inline void SetFailedEntryCount(int value) { m_failedEntryCount = value; } /** *

The number of failed entries.

*/ inline PutEventsResult& WithFailedEntryCount(int value) { SetFailedEntryCount(value); return *this;} /** *

The successfully and unsuccessfully ingested events results. If the ingestion * was successful, the entry has the event ID in it. Otherwise, you can use the * error code and error message to identify the problem with the entry.

For * each record, the index of the response element is the same as the index in the * request array.

*/ inline const Aws::Vector& GetEntries() const{ return m_entries; } /** *

The successfully and unsuccessfully ingested events results. If the ingestion * was successful, the entry has the event ID in it. Otherwise, you can use the * error code and error message to identify the problem with the entry.

For * each record, the index of the response element is the same as the index in the * request array.

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

The successfully and unsuccessfully ingested events results. If the ingestion * was successful, the entry has the event ID in it. Otherwise, you can use the * error code and error message to identify the problem with the entry.

For * each record, the index of the response element is the same as the index in the * request array.

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

The successfully and unsuccessfully ingested events results. If the ingestion * was successful, the entry has the event ID in it. Otherwise, you can use the * error code and error message to identify the problem with the entry.

For * each record, the index of the response element is the same as the index in the * request array.

*/ inline PutEventsResult& WithEntries(const Aws::Vector& value) { SetEntries(value); return *this;} /** *

The successfully and unsuccessfully ingested events results. If the ingestion * was successful, the entry has the event ID in it. Otherwise, you can use the * error code and error message to identify the problem with the entry.

For * each record, the index of the response element is the same as the index in the * request array.

*/ inline PutEventsResult& WithEntries(Aws::Vector&& value) { SetEntries(std::move(value)); return *this;} /** *

The successfully and unsuccessfully ingested events results. If the ingestion * was successful, the entry has the event ID in it. Otherwise, you can use the * error code and error message to identify the problem with the entry.

For * each record, the index of the response element is the same as the index in the * request array.

*/ inline PutEventsResult& AddEntries(const PutEventsResultEntry& value) { m_entries.push_back(value); return *this; } /** *

The successfully and unsuccessfully ingested events results. If the ingestion * was successful, the entry has the event ID in it. Otherwise, you can use the * error code and error message to identify the problem with the entry.

For * each record, the index of the response element is the same as the index in the * request array.

*/ inline PutEventsResult& AddEntries(PutEventsResultEntry&& value) { m_entries.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 PutEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_failedEntryCount; Aws::Vector m_entries; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws