/** * 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 { /** *

Contains a paginated list of information about workflow * executions.

See Also:

AWS * API Reference

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

The list of workflow information structures.

*/ inline const Aws::Vector& GetExecutionInfos() const{ return m_executionInfos; } /** *

The list of workflow information structures.

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

The list of workflow information structures.

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

The list of workflow information structures.

*/ inline ListClosedWorkflowExecutionsResult& WithExecutionInfos(const Aws::Vector& value) { SetExecutionInfos(value); return *this;} /** *

The list of workflow information structures.

*/ inline ListClosedWorkflowExecutionsResult& WithExecutionInfos(Aws::Vector&& value) { SetExecutionInfos(std::move(value)); return *this;} /** *

The list of workflow information structures.

*/ inline ListClosedWorkflowExecutionsResult& AddExecutionInfos(const WorkflowExecutionInfo& value) { m_executionInfos.push_back(value); return *this; } /** *

The list of workflow information structures.

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