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

Contains the response to a DescribeEvents request.

*/ inline const Aws::Vector& GetServerEvents() const{ return m_serverEvents; } /** *

Contains the response to a DescribeEvents request.

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

Contains the response to a DescribeEvents request.

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

Contains the response to a DescribeEvents request.

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

Contains the response to a DescribeEvents request.

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

Contains the response to a DescribeEvents request.

*/ inline DescribeEventsResult& AddServerEvents(const ServerEvent& value) { m_serverEvents.push_back(value); return *this; } /** *

Contains the response to a DescribeEvents request.

*/ inline DescribeEventsResult& AddServerEvents(ServerEvent&& value) { m_serverEvents.push_back(std::move(value)); return *this; } /** *

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

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

NextToken is a string that is returned in some command responses. It * indicates that not all entries have been returned, and that you must run at * least one more request to get remaining items. To get remaining results, call * DescribeEvents again, and assign the token from the previous * results as the value of the nextToken parameter. If there are no * more results, the response object's nextToken parameter value is * null. Setting a nextToken value that was not returned * in your previous results causes an InvalidNextTokenException to * occur.

*/ inline DescribeEventsResult& WithNextToken(const char* value) { SetNextToken(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 DescribeEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_serverEvents; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws