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

A RetryPolicy object that includes information about the retry * policy settings, including the maximum age of an event, and the maximum number * of times EventBridge Scheduler will try to deliver the event to a * target.

See Also:

AWS * API Reference

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

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;} /** *

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

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

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

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

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

*/ 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 with exponential backoff continue until either the maximum number of * attempts is made or until the duration of the * MaximumEventAgeInSeconds is reached.

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