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

A RetryPolicy object that includes information about the retry * policy settings.

See Also:

AWS * API Reference

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

The maximum number of retry attempts to make before the request fails. Retry * attempts continue until either the maximum number of attempts is made or until * the duration of the MaximumEventAgeInSeconds is met.

*/ inline int GetMaximumRetryAttempts() const{ return m_maximumRetryAttempts; } /** *

The maximum number of retry attempts to make before the request fails. Retry * attempts continue until either the maximum number of attempts is made or until * the duration of the MaximumEventAgeInSeconds is met.

*/ inline bool MaximumRetryAttemptsHasBeenSet() const { return m_maximumRetryAttemptsHasBeenSet; } /** *

The maximum number of retry attempts to make before the request fails. Retry * attempts continue until either the maximum number of attempts is made or until * the duration of the MaximumEventAgeInSeconds is met.

*/ inline void SetMaximumRetryAttempts(int value) { m_maximumRetryAttemptsHasBeenSet = true; m_maximumRetryAttempts = value; } /** *

The maximum number of retry attempts to make before the request fails. Retry * attempts continue until either the maximum number of attempts is made or until * the duration of the MaximumEventAgeInSeconds is met.

*/ inline RetryPolicy& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} /** *

The maximum amount of time, in seconds, to continue to make retry * attempts.

*/ inline int GetMaximumEventAgeInSeconds() const{ return m_maximumEventAgeInSeconds; } /** *

The maximum amount of time, in seconds, to continue to make retry * attempts.

*/ inline bool MaximumEventAgeInSecondsHasBeenSet() const { return m_maximumEventAgeInSecondsHasBeenSet; } /** *

The maximum amount of time, in seconds, to continue to make retry * attempts.

*/ inline void SetMaximumEventAgeInSeconds(int value) { m_maximumEventAgeInSecondsHasBeenSet = true; m_maximumEventAgeInSeconds = value; } /** *

The maximum amount of time, in seconds, to continue to make retry * attempts.

*/ inline RetryPolicy& WithMaximumEventAgeInSeconds(int value) { SetMaximumEventAgeInSeconds(value); return *this;} private: int m_maximumRetryAttempts; bool m_maximumRetryAttemptsHasBeenSet = false; int m_maximumEventAgeInSeconds; bool m_maximumEventAgeInSecondsHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws