/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchEvents { namespace Model { class AWS_CLOUDWATCHEVENTS_API PutEventsResult { public: PutEventsResult(); PutEventsResult(const Aws::AmazonWebServiceResult& result); 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ inline PutEventsResult& AddEntries(PutEventsResultEntry&& value) { m_entries.push_back(std::move(value)); return *this; } private: int m_failedEntryCount; Aws::Vector m_entries; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws