/** * 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 ElasticBeanstalk { namespace Model { /** *

Result message wrapping a list of event descriptions.

See * Also:

AWS * API Reference

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

A list of EventDescription.

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

A list of EventDescription.

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

A list of EventDescription.

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

A list of EventDescription.

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

A list of EventDescription.

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

A list of EventDescription.

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

A list of EventDescription.

*/ inline DescribeEventsResult& AddEvents(EventDescription&& value) { m_events.push_back(std::move(value)); return *this; } /** *

If returned, this indicates that there are more results to obtain. Use this * token in the next DescribeEvents call to get the next batch of events. *

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If returned, this indicates that there are more results to obtain. Use this * token in the next DescribeEvents call to get the next batch of events. *

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

If returned, this indicates that there are more results to obtain. Use this * token in the next DescribeEvents call to get the next batch of events. *

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

If returned, this indicates that there are more results to obtain. Use this * token in the next DescribeEvents call to get the next batch of events. *

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If returned, this indicates that there are more results to obtain. Use this * token in the next DescribeEvents call to get the next batch of events. *

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

If returned, this indicates that there are more results to obtain. Use this * token in the next DescribeEvents call to get the next batch of events. *

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

If returned, this indicates that there are more results to obtain. Use this * token in the next DescribeEvents call to get the next batch of events. *

*/ inline DescribeEventsResult& WithNextToken(const char* value) { SetNextToken(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::Vector m_events; Aws::String m_nextToken; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws