/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

Represents the output of a DescribeEvents * operation.

See Also:

AWS * API Reference

*/ class DescribeEventsResult { public: AWS_ELASTICACHE_API DescribeEventsResult(); AWS_ELASTICACHE_API DescribeEventsResult(const Aws::AmazonWebServiceResult& result); AWS_ELASTICACHE_API DescribeEventsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Provides an identifier to allow retrieval of paginated results.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

Provides an identifier to allow retrieval of paginated results.

*/ inline void SetMarker(const Aws::String& value) { m_marker = value; } /** *

Provides an identifier to allow retrieval of paginated results.

*/ inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); } /** *

Provides an identifier to allow retrieval of paginated results.

*/ inline void SetMarker(const char* value) { m_marker.assign(value); } /** *

Provides an identifier to allow retrieval of paginated results.

*/ inline DescribeEventsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

Provides an identifier to allow retrieval of paginated results.

*/ inline DescribeEventsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

Provides an identifier to allow retrieval of paginated results.

*/ inline DescribeEventsResult& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

A list of events. Each element in the list contains detailed information * about one event.

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

A list of events. Each element in the list contains detailed information * about one event.

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

A list of events. Each element in the list contains detailed information * about one event.

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

A list of events. Each element in the list contains detailed information * about one event.

*/ inline DescribeEventsResult& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

A list of events. Each element in the list contains detailed information * about one event.

*/ inline DescribeEventsResult& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

A list of events. Each element in the list contains detailed information * about one event.

*/ inline DescribeEventsResult& AddEvents(const Event& value) { m_events.push_back(value); return *this; } /** *

A list of events. Each element in the list contains detailed information * about one event.

*/ inline DescribeEventsResult& AddEvents(Event&& value) { m_events.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DescribeEventsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeEventsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_marker; Aws::Vector m_events; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElastiCache } // namespace Aws