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

Paginated representation of a workflow history for a workflow execution. This * is the up to date, complete and authoritative record of the events related to * all tasks and events in the life of the workflow execution.

See * Also:

AWS API * Reference

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

The list of history events.

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

The list of history events.

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

The list of history events.

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

The list of history events.

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

The list of history events.

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

The list of history events.

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

The list of history events.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

*/ inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); } /** *

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

*/ inline GetWorkflowExecutionHistoryResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

*/ inline GetWorkflowExecutionHistoryResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

*/ inline GetWorkflowExecutionHistoryResult& WithNextPageToken(const char* value) { SetNextPageToken(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 GetWorkflowExecutionHistoryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetWorkflowExecutionHistoryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetWorkflowExecutionHistoryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_events; Aws::String m_nextPageToken; Aws::String m_requestId; }; } // namespace Model } // namespace SWF } // namespace Aws