/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
#pragma once
#include   [AMI policies only] Specifies an AMI deprecation rule for
   * cross-Region AMI copies created by an AMI policy.See Also:
   AWS
   * API Reference
The period after which to deprecate the cross-Region AMI copies. The period * must be less than or equal to the cross-Region AMI copy retention period, and it * can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or * 3650 days.
*/ inline int GetInterval() const{ return m_interval; } /** *The period after which to deprecate the cross-Region AMI copies. The period * must be less than or equal to the cross-Region AMI copy retention period, and it * can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or * 3650 days.
*/ inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; } /** *The period after which to deprecate the cross-Region AMI copies. The period * must be less than or equal to the cross-Region AMI copy retention period, and it * can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or * 3650 days.
*/ inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; } /** *The period after which to deprecate the cross-Region AMI copies. The period * must be less than or equal to the cross-Region AMI copy retention period, and it * can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or * 3650 days.
*/ inline CrossRegionCopyDeprecateRule& WithInterval(int value) { SetInterval(value); return *this;} /** *The unit of time in which to measure the Interval. For example, to
     * deprecate a cross-Region AMI copy after 3 months, specify
     * Interval=3 and IntervalUnit=MONTHS.
The unit of time in which to measure the Interval. For example, to
     * deprecate a cross-Region AMI copy after 3 months, specify
     * Interval=3 and IntervalUnit=MONTHS.
The unit of time in which to measure the Interval. For example, to
     * deprecate a cross-Region AMI copy after 3 months, specify
     * Interval=3 and IntervalUnit=MONTHS.
The unit of time in which to measure the Interval. For example, to
     * deprecate a cross-Region AMI copy after 3 months, specify
     * Interval=3 and IntervalUnit=MONTHS.
The unit of time in which to measure the Interval. For example, to
     * deprecate a cross-Region AMI copy after 3 months, specify
     * Interval=3 and IntervalUnit=MONTHS.
The unit of time in which to measure the Interval. For example, to
     * deprecate a cross-Region AMI copy after 3 months, specify
     * Interval=3 and IntervalUnit=MONTHS.