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

Contains details about all of the child workflow executions started by a Map * Run.

See Also:

AWS * API Reference

*/ class MapRunExecutionCounts { public: AWS_SFN_API MapRunExecutionCounts(); AWS_SFN_API MapRunExecutionCounts(Aws::Utils::Json::JsonView jsonValue); AWS_SFN_API MapRunExecutionCounts& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The total number of child workflow executions that were started by a Map Run, * but haven't started executing yet.

*/ inline long long GetPending() const{ return m_pending; } /** *

The total number of child workflow executions that were started by a Map Run, * but haven't started executing yet.

*/ inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; } /** *

The total number of child workflow executions that were started by a Map Run, * but haven't started executing yet.

*/ inline void SetPending(long long value) { m_pendingHasBeenSet = true; m_pending = value; } /** *

The total number of child workflow executions that were started by a Map Run, * but haven't started executing yet.

*/ inline MapRunExecutionCounts& WithPending(long long value) { SetPending(value); return *this;} /** *

The total number of child workflow executions that were started by a Map Run * and are currently in-progress.

*/ inline long long GetRunning() const{ return m_running; } /** *

The total number of child workflow executions that were started by a Map Run * and are currently in-progress.

*/ inline bool RunningHasBeenSet() const { return m_runningHasBeenSet; } /** *

The total number of child workflow executions that were started by a Map Run * and are currently in-progress.

*/ inline void SetRunning(long long value) { m_runningHasBeenSet = true; m_running = value; } /** *

The total number of child workflow executions that were started by a Map Run * and are currently in-progress.

*/ inline MapRunExecutionCounts& WithRunning(long long value) { SetRunning(value); return *this;} /** *

The total number of child workflow executions that were started by a Map Run * and have completed successfully.

*/ inline long long GetSucceeded() const{ return m_succeeded; } /** *

The total number of child workflow executions that were started by a Map Run * and have completed successfully.

*/ inline bool SucceededHasBeenSet() const { return m_succeededHasBeenSet; } /** *

The total number of child workflow executions that were started by a Map Run * and have completed successfully.

*/ inline void SetSucceeded(long long value) { m_succeededHasBeenSet = true; m_succeeded = value; } /** *

The total number of child workflow executions that were started by a Map Run * and have completed successfully.

*/ inline MapRunExecutionCounts& WithSucceeded(long long value) { SetSucceeded(value); return *this;} /** *

The total number of child workflow executions that were started by a Map Run, * but have failed.

*/ inline long long GetFailed() const{ return m_failed; } /** *

The total number of child workflow executions that were started by a Map Run, * but have failed.

*/ inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; } /** *

The total number of child workflow executions that were started by a Map Run, * but have failed.

*/ inline void SetFailed(long long value) { m_failedHasBeenSet = true; m_failed = value; } /** *

The total number of child workflow executions that were started by a Map Run, * but have failed.

*/ inline MapRunExecutionCounts& WithFailed(long long value) { SetFailed(value); return *this;} /** *

The total number of child workflow executions that were started by a Map Run * and have timed out.

*/ inline long long GetTimedOut() const{ return m_timedOut; } /** *

The total number of child workflow executions that were started by a Map Run * and have timed out.

*/ inline bool TimedOutHasBeenSet() const { return m_timedOutHasBeenSet; } /** *

The total number of child workflow executions that were started by a Map Run * and have timed out.

*/ inline void SetTimedOut(long long value) { m_timedOutHasBeenSet = true; m_timedOut = value; } /** *

The total number of child workflow executions that were started by a Map Run * and have timed out.

*/ inline MapRunExecutionCounts& WithTimedOut(long long value) { SetTimedOut(value); return *this;} /** *

The total number of child workflow executions that were started by a Map Run * and were running, but were either stopped by the user or by Step Functions * because the Map Run failed.

*/ inline long long GetAborted() const{ return m_aborted; } /** *

The total number of child workflow executions that were started by a Map Run * and were running, but were either stopped by the user or by Step Functions * because the Map Run failed.

*/ inline bool AbortedHasBeenSet() const { return m_abortedHasBeenSet; } /** *

The total number of child workflow executions that were started by a Map Run * and were running, but were either stopped by the user or by Step Functions * because the Map Run failed.

*/ inline void SetAborted(long long value) { m_abortedHasBeenSet = true; m_aborted = value; } /** *

The total number of child workflow executions that were started by a Map Run * and were running, but were either stopped by the user or by Step Functions * because the Map Run failed.

*/ inline MapRunExecutionCounts& WithAborted(long long value) { SetAborted(value); return *this;} /** *

The total number of child workflow executions that were started by a Map * Run.

*/ inline long long GetTotal() const{ return m_total; } /** *

The total number of child workflow executions that were started by a Map * Run.

*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *

The total number of child workflow executions that were started by a Map * Run.

*/ inline void SetTotal(long long value) { m_totalHasBeenSet = true; m_total = value; } /** *

The total number of child workflow executions that were started by a Map * Run.

*/ inline MapRunExecutionCounts& WithTotal(long long value) { SetTotal(value); return *this;} /** *

Returns the count of child workflow executions whose results were written by * ResultWriter. For more information, see ResultWriter * in the Step Functions Developer Guide.

*/ inline long long GetResultsWritten() const{ return m_resultsWritten; } /** *

Returns the count of child workflow executions whose results were written by * ResultWriter. For more information, see ResultWriter * in the Step Functions Developer Guide.

*/ inline bool ResultsWrittenHasBeenSet() const { return m_resultsWrittenHasBeenSet; } /** *

Returns the count of child workflow executions whose results were written by * ResultWriter. For more information, see ResultWriter * in the Step Functions Developer Guide.

*/ inline void SetResultsWritten(long long value) { m_resultsWrittenHasBeenSet = true; m_resultsWritten = value; } /** *

Returns the count of child workflow executions whose results were written by * ResultWriter. For more information, see ResultWriter * in the Step Functions Developer Guide.

*/ inline MapRunExecutionCounts& WithResultsWritten(long long value) { SetResultsWritten(value); return *this;} private: long long m_pending; bool m_pendingHasBeenSet = false; long long m_running; bool m_runningHasBeenSet = false; long long m_succeeded; bool m_succeededHasBeenSet = false; long long m_failed; bool m_failedHasBeenSet = false; long long m_timedOut; bool m_timedOutHasBeenSet = false; long long m_aborted; bool m_abortedHasBeenSet = false; long long m_total; bool m_totalHasBeenSet = false; long long m_resultsWritten; bool m_resultsWrittenHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws