/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SFN { namespace Model { /** */ class UpdateMapRunRequest : public SFNRequest { public: AWS_SFN_API UpdateMapRunRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateMapRun"; } AWS_SFN_API Aws::String SerializePayload() const override; AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of a Map Run.

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

The Amazon Resource Name (ARN) of a Map Run.

*/ inline bool MapRunArnHasBeenSet() const { return m_mapRunArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a Map Run.

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

The Amazon Resource Name (ARN) of a Map Run.

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

The Amazon Resource Name (ARN) of a Map Run.

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

The Amazon Resource Name (ARN) of a Map Run.

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

The Amazon Resource Name (ARN) of a Map Run.

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

The Amazon Resource Name (ARN) of a Map Run.

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

The maximum number of child workflow executions that can be specified 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 that can be specified to run * in parallel for the Map Run at the same time.

*/ inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; } /** *

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

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

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

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

The maximum percentage of failed items before the Map Run fails.

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

The maximum percentage of failed items before the Map Run fails.

*/ inline bool ToleratedFailurePercentageHasBeenSet() const { return m_toleratedFailurePercentageHasBeenSet; } /** *

The maximum percentage of failed items before the Map Run fails.

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

The maximum percentage of failed items before the Map Run fails.

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

The maximum number of failed items before the Map Run fails.

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

The maximum number of failed items before the Map Run fails.

*/ inline bool ToleratedFailureCountHasBeenSet() const { return m_toleratedFailureCountHasBeenSet; } /** *

The maximum number of failed items before the Map Run fails.

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

The maximum number of failed items before the Map Run fails.

*/ inline UpdateMapRunRequest& WithToleratedFailureCount(long long value) { SetToleratedFailureCount(value); return *this;} private: Aws::String m_mapRunArn; bool m_mapRunArnHasBeenSet = false; int m_maxConcurrency; bool m_maxConcurrencyHasBeenSet = false; double m_toleratedFailurePercentage; bool m_toleratedFailurePercentageHasBeenSet = false; long long m_toleratedFailureCount; bool m_toleratedFailureCountHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws