/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 details about a workflow execution.

See Also:

AWS * API Reference

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

Information about the workflow execution.

*/ inline const WorkflowExecutionInfo& GetExecutionInfo() const{ return m_executionInfo; } /** *

Information about the workflow execution.

*/ inline void SetExecutionInfo(const WorkflowExecutionInfo& value) { m_executionInfo = value; } /** *

Information about the workflow execution.

*/ inline void SetExecutionInfo(WorkflowExecutionInfo&& value) { m_executionInfo = std::move(value); } /** *

Information about the workflow execution.

*/ inline DescribeWorkflowExecutionResult& WithExecutionInfo(const WorkflowExecutionInfo& value) { SetExecutionInfo(value); return *this;} /** *

Information about the workflow execution.

*/ inline DescribeWorkflowExecutionResult& WithExecutionInfo(WorkflowExecutionInfo&& value) { SetExecutionInfo(std::move(value)); return *this;} /** *

The configuration settings for this workflow execution including timeout * values, tasklist etc.

*/ inline const WorkflowExecutionConfiguration& GetExecutionConfiguration() const{ return m_executionConfiguration; } /** *

The configuration settings for this workflow execution including timeout * values, tasklist etc.

*/ inline void SetExecutionConfiguration(const WorkflowExecutionConfiguration& value) { m_executionConfiguration = value; } /** *

The configuration settings for this workflow execution including timeout * values, tasklist etc.

*/ inline void SetExecutionConfiguration(WorkflowExecutionConfiguration&& value) { m_executionConfiguration = std::move(value); } /** *

The configuration settings for this workflow execution including timeout * values, tasklist etc.

*/ inline DescribeWorkflowExecutionResult& WithExecutionConfiguration(const WorkflowExecutionConfiguration& value) { SetExecutionConfiguration(value); return *this;} /** *

The configuration settings for this workflow execution including timeout * values, tasklist etc.

*/ inline DescribeWorkflowExecutionResult& WithExecutionConfiguration(WorkflowExecutionConfiguration&& value) { SetExecutionConfiguration(std::move(value)); return *this;} /** *

The number of tasks for this workflow execution. This includes open and * closed tasks of all types.

*/ inline const WorkflowExecutionOpenCounts& GetOpenCounts() const{ return m_openCounts; } /** *

The number of tasks for this workflow execution. This includes open and * closed tasks of all types.

*/ inline void SetOpenCounts(const WorkflowExecutionOpenCounts& value) { m_openCounts = value; } /** *

The number of tasks for this workflow execution. This includes open and * closed tasks of all types.

*/ inline void SetOpenCounts(WorkflowExecutionOpenCounts&& value) { m_openCounts = std::move(value); } /** *

The number of tasks for this workflow execution. This includes open and * closed tasks of all types.

*/ inline DescribeWorkflowExecutionResult& WithOpenCounts(const WorkflowExecutionOpenCounts& value) { SetOpenCounts(value); return *this;} /** *

The number of tasks for this workflow execution. This includes open and * closed tasks of all types.

*/ inline DescribeWorkflowExecutionResult& WithOpenCounts(WorkflowExecutionOpenCounts&& value) { SetOpenCounts(std::move(value)); return *this;} /** *

The time when the last activity task was scheduled for this workflow * execution. You can use this information to determine if the workflow has not * made progress for an unusually long period of time and might require a * corrective action.

*/ inline const Aws::Utils::DateTime& GetLatestActivityTaskTimestamp() const{ return m_latestActivityTaskTimestamp; } /** *

The time when the last activity task was scheduled for this workflow * execution. You can use this information to determine if the workflow has not * made progress for an unusually long period of time and might require a * corrective action.

*/ inline void SetLatestActivityTaskTimestamp(const Aws::Utils::DateTime& value) { m_latestActivityTaskTimestamp = value; } /** *

The time when the last activity task was scheduled for this workflow * execution. You can use this information to determine if the workflow has not * made progress for an unusually long period of time and might require a * corrective action.

*/ inline void SetLatestActivityTaskTimestamp(Aws::Utils::DateTime&& value) { m_latestActivityTaskTimestamp = std::move(value); } /** *

The time when the last activity task was scheduled for this workflow * execution. You can use this information to determine if the workflow has not * made progress for an unusually long period of time and might require a * corrective action.

*/ inline DescribeWorkflowExecutionResult& WithLatestActivityTaskTimestamp(const Aws::Utils::DateTime& value) { SetLatestActivityTaskTimestamp(value); return *this;} /** *

The time when the last activity task was scheduled for this workflow * execution. You can use this information to determine if the workflow has not * made progress for an unusually long period of time and might require a * corrective action.

*/ inline DescribeWorkflowExecutionResult& WithLatestActivityTaskTimestamp(Aws::Utils::DateTime&& value) { SetLatestActivityTaskTimestamp(std::move(value)); return *this;} /** *

The latest executionContext provided by the decider for this workflow * execution. A decider can provide an executionContext (a free-form string) when * closing a decision task using RespondDecisionTaskCompleted.

*/ inline const Aws::String& GetLatestExecutionContext() const{ return m_latestExecutionContext; } /** *

The latest executionContext provided by the decider for this workflow * execution. A decider can provide an executionContext (a free-form string) when * closing a decision task using RespondDecisionTaskCompleted.

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

The latest executionContext provided by the decider for this workflow * execution. A decider can provide an executionContext (a free-form string) when * closing a decision task using RespondDecisionTaskCompleted.

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

The latest executionContext provided by the decider for this workflow * execution. A decider can provide an executionContext (a free-form string) when * closing a decision task using RespondDecisionTaskCompleted.

*/ inline void SetLatestExecutionContext(const char* value) { m_latestExecutionContext.assign(value); } /** *

The latest executionContext provided by the decider for this workflow * execution. A decider can provide an executionContext (a free-form string) when * closing a decision task using RespondDecisionTaskCompleted.

*/ inline DescribeWorkflowExecutionResult& WithLatestExecutionContext(const Aws::String& value) { SetLatestExecutionContext(value); return *this;} /** *

The latest executionContext provided by the decider for this workflow * execution. A decider can provide an executionContext (a free-form string) when * closing a decision task using RespondDecisionTaskCompleted.

*/ inline DescribeWorkflowExecutionResult& WithLatestExecutionContext(Aws::String&& value) { SetLatestExecutionContext(std::move(value)); return *this;} /** *

The latest executionContext provided by the decider for this workflow * execution. A decider can provide an executionContext (a free-form string) when * closing a decision task using RespondDecisionTaskCompleted.

*/ inline DescribeWorkflowExecutionResult& WithLatestExecutionContext(const char* value) { SetLatestExecutionContext(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 DescribeWorkflowExecutionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeWorkflowExecutionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeWorkflowExecutionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: WorkflowExecutionInfo m_executionInfo; WorkflowExecutionConfiguration m_executionConfiguration; WorkflowExecutionOpenCounts m_openCounts; Aws::Utils::DateTime m_latestActivityTaskTimestamp; Aws::String m_latestExecutionContext; Aws::String m_requestId; }; } // namespace Model } // namespace SWF } // namespace Aws