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

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

*/ inline const Aws::Vector& GetEventResults() const{ return m_eventResults; } /** *

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

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

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

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

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

*/ inline PutProjectEventsResult& WithEventResults(const Aws::Vector& value) { SetEventResults(value); return *this;} /** *

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

*/ inline PutProjectEventsResult& WithEventResults(Aws::Vector&& value) { SetEventResults(std::move(value)); return *this;} /** *

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

*/ inline PutProjectEventsResult& AddEventResults(const PutProjectEventsResultEntry& value) { m_eventResults.push_back(value); return *this; } /** *

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

*/ inline PutProjectEventsResult& AddEventResults(PutProjectEventsResultEntry&& value) { m_eventResults.push_back(std::move(value)); return *this; } /** *

The number of events in the operation that could not be used by * Evidently.

*/ inline int GetFailedEventCount() const{ return m_failedEventCount; } /** *

The number of events in the operation that could not be used by * Evidently.

*/ inline void SetFailedEventCount(int value) { m_failedEventCount = value; } /** *

The number of events in the operation that could not be used by * Evidently.

*/ inline PutProjectEventsResult& WithFailedEventCount(int value) { SetFailedEventCount(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 PutProjectEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutProjectEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutProjectEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_eventResults; int m_failedEventCount; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws