/** * 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 current status of the retry policy executed on the job.

See * Also:

AWS * API Reference

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

The current number of attempts made on the driver of the job.

*/ inline int GetCurrentAttemptCount() const{ return m_currentAttemptCount; } /** *

The current number of attempts made on the driver of the job.

*/ inline bool CurrentAttemptCountHasBeenSet() const { return m_currentAttemptCountHasBeenSet; } /** *

The current number of attempts made on the driver of the job.

*/ inline void SetCurrentAttemptCount(int value) { m_currentAttemptCountHasBeenSet = true; m_currentAttemptCount = value; } /** *

The current number of attempts made on the driver of the job.

*/ inline RetryPolicyExecution& WithCurrentAttemptCount(int value) { SetCurrentAttemptCount(value); return *this;} private: int m_currentAttemptCount; bool m_currentAttemptCountHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws