/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SWF { namespace Model { /** *

Contains the count of workflow executions returned from * CountOpenWorkflowExecutions or CountClosedWorkflowExecutions *

See Also:

AWS * API Reference

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

The number of workflow executions.

*/ inline int GetCount() const{ return m_count; } /** *

The number of workflow executions.

*/ inline void SetCount(int value) { m_count = value; } /** *

The number of workflow executions.

*/ inline CountClosedWorkflowExecutionsResult& WithCount(int value) { SetCount(value); return *this;} /** *

If set to true, indicates that the actual count was more than the maximum * supported by this API and the count returned is the truncated value.

*/ inline bool GetTruncated() const{ return m_truncated; } /** *

If set to true, indicates that the actual count was more than the maximum * supported by this API and the count returned is the truncated value.

*/ inline void SetTruncated(bool value) { m_truncated = value; } /** *

If set to true, indicates that the actual count was more than the maximum * supported by this API and the count returned is the truncated value.

*/ inline CountClosedWorkflowExecutionsResult& WithTruncated(bool value) { SetTruncated(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 CountClosedWorkflowExecutionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CountClosedWorkflowExecutionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CountClosedWorkflowExecutionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_count; bool m_truncated; Aws::String m_requestId; }; } // namespace Model } // namespace SWF } // namespace Aws