/** * 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 SFN { namespace Model { class DescribeMapRunResult { public: AWS_SFN_API DescribeMapRunResult(); AWS_SFN_API DescribeMapRunResult(const Aws::AmazonWebServiceResult& result); AWS_SFN_API DescribeMapRunResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) that identifies a Map Run.

*/ inline const Aws::String& GetMapRunArn() const{ return m_mapRunArn; } /** *

The Amazon Resource Name (ARN) that identifies a Map Run.

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

The Amazon Resource Name (ARN) that identifies a Map Run.

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

The Amazon Resource Name (ARN) that identifies a Map Run.

*/ inline void SetMapRunArn(const char* value) { m_mapRunArn.assign(value); } /** *

The Amazon Resource Name (ARN) that identifies a Map Run.

*/ inline DescribeMapRunResult& WithMapRunArn(const Aws::String& value) { SetMapRunArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that identifies a Map Run.

*/ inline DescribeMapRunResult& WithMapRunArn(Aws::String&& value) { SetMapRunArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that identifies a Map Run.

*/ inline DescribeMapRunResult& WithMapRunArn(const char* value) { SetMapRunArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that identifies the execution in which the Map * Run was started.

*/ inline const Aws::String& GetExecutionArn() const{ return m_executionArn; } /** *

The Amazon Resource Name (ARN) that identifies the execution in which the Map * Run was started.

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

The Amazon Resource Name (ARN) that identifies the execution in which the Map * Run was started.

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

The Amazon Resource Name (ARN) that identifies the execution in which the Map * Run was started.

*/ inline void SetExecutionArn(const char* value) { m_executionArn.assign(value); } /** *

The Amazon Resource Name (ARN) that identifies the execution in which the Map * Run was started.

*/ inline DescribeMapRunResult& WithExecutionArn(const Aws::String& value) { SetExecutionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that identifies the execution in which the Map * Run was started.

*/ inline DescribeMapRunResult& WithExecutionArn(Aws::String&& value) { SetExecutionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that identifies the execution in which the Map * Run was started.

*/ inline DescribeMapRunResult& WithExecutionArn(const char* value) { SetExecutionArn(value); return *this;} /** *

The current status of the Map Run.

*/ inline const MapRunStatus& GetStatus() const{ return m_status; } /** *

The current status of the Map Run.

*/ inline void SetStatus(const MapRunStatus& value) { m_status = value; } /** *

The current status of the Map Run.

*/ inline void SetStatus(MapRunStatus&& value) { m_status = std::move(value); } /** *

The current status of the Map Run.

*/ inline DescribeMapRunResult& WithStatus(const MapRunStatus& value) { SetStatus(value); return *this;} /** *

The current status of the Map Run.

*/ inline DescribeMapRunResult& WithStatus(MapRunStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date when the Map Run was started.

*/ inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; } /** *

The date when the Map Run was started.

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

The date when the Map Run was started.

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

The date when the Map Run was started.

*/ inline DescribeMapRunResult& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;} /** *

The date when the Map Run was started.

*/ inline DescribeMapRunResult& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;} /** *

The date when the Map Run was stopped.

*/ inline const Aws::Utils::DateTime& GetStopDate() const{ return m_stopDate; } /** *

The date when the Map Run was stopped.

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

The date when the Map Run was stopped.

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

The date when the Map Run was stopped.

*/ inline DescribeMapRunResult& WithStopDate(const Aws::Utils::DateTime& value) { SetStopDate(value); return *this;} /** *

The date when the Map Run was stopped.

*/ inline DescribeMapRunResult& WithStopDate(Aws::Utils::DateTime&& value) { SetStopDate(std::move(value)); return *this;} /** *

The maximum number of child workflow executions configured to run in parallel * for the Map Run at the same time.

*/ inline int GetMaxConcurrency() const{ return m_maxConcurrency; } /** *

The maximum number of child workflow executions configured to run in parallel * for the Map Run at the same time.

*/ inline void SetMaxConcurrency(int value) { m_maxConcurrency = value; } /** *

The maximum number of child workflow executions configured to run in parallel * for the Map Run at the same time.

*/ inline DescribeMapRunResult& WithMaxConcurrency(int value) { SetMaxConcurrency(value); return *this;} /** *

The maximum percentage of failed child workflow executions before the Map Run * fails.

*/ inline double GetToleratedFailurePercentage() const{ return m_toleratedFailurePercentage; } /** *

The maximum percentage of failed child workflow executions before the Map Run * fails.

*/ inline void SetToleratedFailurePercentage(double value) { m_toleratedFailurePercentage = value; } /** *

The maximum percentage of failed child workflow executions before the Map Run * fails.

*/ inline DescribeMapRunResult& WithToleratedFailurePercentage(double value) { SetToleratedFailurePercentage(value); return *this;} /** *

The maximum number of failed child workflow executions before the Map Run * fails.

*/ inline long long GetToleratedFailureCount() const{ return m_toleratedFailureCount; } /** *

The maximum number of failed child workflow executions before the Map Run * fails.

*/ inline void SetToleratedFailureCount(long long value) { m_toleratedFailureCount = value; } /** *

The maximum number of failed child workflow executions before the Map Run * fails.

*/ inline DescribeMapRunResult& WithToleratedFailureCount(long long value) { SetToleratedFailureCount(value); return *this;} /** *

A JSON object that contains information about the total number of items, and * the item count for each processing status, such as pending and * failed.

*/ inline const MapRunItemCounts& GetItemCounts() const{ return m_itemCounts; } /** *

A JSON object that contains information about the total number of items, and * the item count for each processing status, such as pending and * failed.

*/ inline void SetItemCounts(const MapRunItemCounts& value) { m_itemCounts = value; } /** *

A JSON object that contains information about the total number of items, and * the item count for each processing status, such as pending and * failed.

*/ inline void SetItemCounts(MapRunItemCounts&& value) { m_itemCounts = std::move(value); } /** *

A JSON object that contains information about the total number of items, and * the item count for each processing status, such as pending and * failed.

*/ inline DescribeMapRunResult& WithItemCounts(const MapRunItemCounts& value) { SetItemCounts(value); return *this;} /** *

A JSON object that contains information about the total number of items, and * the item count for each processing status, such as pending and * failed.

*/ inline DescribeMapRunResult& WithItemCounts(MapRunItemCounts&& value) { SetItemCounts(std::move(value)); return *this;} /** *

A JSON object that contains information about the total number of child * workflow executions for the Map Run, and the count of child workflow executions * for each status, such as failed and succeeded.

*/ inline const MapRunExecutionCounts& GetExecutionCounts() const{ return m_executionCounts; } /** *

A JSON object that contains information about the total number of child * workflow executions for the Map Run, and the count of child workflow executions * for each status, such as failed and succeeded.

*/ inline void SetExecutionCounts(const MapRunExecutionCounts& value) { m_executionCounts = value; } /** *

A JSON object that contains information about the total number of child * workflow executions for the Map Run, and the count of child workflow executions * for each status, such as failed and succeeded.

*/ inline void SetExecutionCounts(MapRunExecutionCounts&& value) { m_executionCounts = std::move(value); } /** *

A JSON object that contains information about the total number of child * workflow executions for the Map Run, and the count of child workflow executions * for each status, such as failed and succeeded.

*/ inline DescribeMapRunResult& WithExecutionCounts(const MapRunExecutionCounts& value) { SetExecutionCounts(value); return *this;} /** *

A JSON object that contains information about the total number of child * workflow executions for the Map Run, and the count of child workflow executions * for each status, such as failed and succeeded.

*/ inline DescribeMapRunResult& WithExecutionCounts(MapRunExecutionCounts&& value) { SetExecutionCounts(std::move(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 DescribeMapRunResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeMapRunResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeMapRunResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_mapRunArn; Aws::String m_executionArn; MapRunStatus m_status; Aws::Utils::DateTime m_startDate; Aws::Utils::DateTime m_stopDate; int m_maxConcurrency; double m_toleratedFailurePercentage; long long m_toleratedFailureCount; MapRunItemCounts m_itemCounts; MapRunExecutionCounts m_executionCounts; Aws::String m_requestId; }; } // namespace Model } // namespace SFN } // namespace Aws