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

The configuration of the retry policy that the job runs on.

See * Also:

AWS * API Reference

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

The maximum number of attempts on the job's driver.

*/ inline int GetMaxAttempts() const{ return m_maxAttempts; } /** *

The maximum number of attempts on the job's driver.

*/ inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; } /** *

The maximum number of attempts on the job's driver.

*/ inline void SetMaxAttempts(int value) { m_maxAttemptsHasBeenSet = true; m_maxAttempts = value; } /** *

The maximum number of attempts on the job's driver.

*/ inline RetryPolicyConfiguration& WithMaxAttempts(int value) { SetMaxAttempts(value); return *this;} private: int m_maxAttempts; bool m_maxAttemptsHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws