/** * 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 Pipes { namespace Model { /** *

The retry strategy that's associated with a job. For more information, see * Automated job retries in the Batch User Guide.

See * Also:

AWS * API Reference

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

The number of times to move a job to the RUNNABLE status. If the * value of attempts is greater than one, the job is retried on * failure the same number of attempts as the value.

*/ inline int GetAttempts() const{ return m_attempts; } /** *

The number of times to move a job to the RUNNABLE status. If the * value of attempts is greater than one, the job is retried on * failure the same number of attempts as the value.

*/ inline bool AttemptsHasBeenSet() const { return m_attemptsHasBeenSet; } /** *

The number of times to move a job to the RUNNABLE status. If the * value of attempts is greater than one, the job is retried on * failure the same number of attempts as the value.

*/ inline void SetAttempts(int value) { m_attemptsHasBeenSet = true; m_attempts = value; } /** *

The number of times to move a job to the RUNNABLE status. If the * value of attempts is greater than one, the job is retried on * failure the same number of attempts as the value.

*/ inline BatchRetryStrategy& WithAttempts(int value) { SetAttempts(value); return *this;} private: int m_attempts; bool m_attemptsHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws