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

The number of events from this operation that could not be written to the * partner event bus.

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

The number of events from this operation that could not be written to the * partner event bus.

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

The number of events from this operation that could not be written to the * partner event bus.

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

The list of events from this operation that were successfully written to the * partner event bus.

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

The list of events from this operation that were successfully written to the * partner event bus.

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

The list of events from this operation that were successfully written to the * partner event bus.

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

The list of events from this operation that were successfully written to the * partner event bus.

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

The list of events from this operation that were successfully written to the * partner event bus.

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

The list of events from this operation that were successfully written to the * partner event bus.

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

The list of events from this operation that were successfully written to the * partner event bus.

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