/** * 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 items that were processed in all of the child workflow * executions that were started by a Map Run.

See Also:

AWS * API Reference

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

The total number of items to process in child workflow executions that * haven't started running yet.

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

The total number of items to process in child workflow executions that * haven't started running yet.

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

The total number of items to process in child workflow executions that * haven't started running yet.

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

The total number of items to process in child workflow executions that * haven't started running yet.

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

The total number of items being processed in child workflow executions that * are currently in-progress.

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

The total number of items being processed in child workflow executions that * are currently in-progress.

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

The total number of items being processed in child workflow executions that * are currently in-progress.

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

The total number of items being processed in child workflow executions that * are currently in-progress.

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

The total number of items processed in child workflow executions that have * completed successfully.

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

The total number of items processed in child workflow executions that have * completed successfully.

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

The total number of items processed in child workflow executions that have * completed successfully.

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

The total number of items processed in child workflow executions that have * completed successfully.

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

The total number of items processed in child workflow executions that have * failed.

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

The total number of items processed in child workflow executions that have * failed.

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

The total number of items processed in child workflow executions that have * failed.

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

The total number of items processed in child workflow executions that have * failed.

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

The total number of items processed in child workflow executions that have * timed out.

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

The total number of items processed in child workflow executions that have * timed out.

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

The total number of items processed in child workflow executions that have * timed out.

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

The total number of items processed in child workflow executions that have * timed out.

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

The total number of items processed in child workflow executions that 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 items processed in child workflow executions that 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 items processed in child workflow executions that 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 items processed in child workflow executions that were * either stopped by the user or by Step Functions, because the Map Run failed.

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

The total number of items processed in all the child workflow executions * started by a Map Run.

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

The total number of items processed in all the child workflow executions * started by a Map Run.

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

The total number of items processed in all the child workflow executions * started by a Map Run.

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

The total number of items processed in all the child workflow executions * started by a Map Run.

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

Returns the count of items 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 items 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 items 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 items whose results were written by * ResultWriter. For more information, see ResultWriter * in the Step Functions Developer Guide.

*/ inline MapRunItemCounts& 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