/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DLM { namespace Model { /** *

[Snapshot policies only] Specifies information about the archive * storage tier retention period.

See Also:

AWS * API Reference

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

Information about retention period in the Amazon EBS Snapshots Archive. For * more information, see Archive * Amazon EBS snapshots.

*/ inline const RetentionArchiveTier& GetRetentionArchiveTier() const{ return m_retentionArchiveTier; } /** *

Information about retention period in the Amazon EBS Snapshots Archive. For * more information, see Archive * Amazon EBS snapshots.

*/ inline bool RetentionArchiveTierHasBeenSet() const { return m_retentionArchiveTierHasBeenSet; } /** *

Information about retention period in the Amazon EBS Snapshots Archive. For * more information, see Archive * Amazon EBS snapshots.

*/ inline void SetRetentionArchiveTier(const RetentionArchiveTier& value) { m_retentionArchiveTierHasBeenSet = true; m_retentionArchiveTier = value; } /** *

Information about retention period in the Amazon EBS Snapshots Archive. For * more information, see Archive * Amazon EBS snapshots.

*/ inline void SetRetentionArchiveTier(RetentionArchiveTier&& value) { m_retentionArchiveTierHasBeenSet = true; m_retentionArchiveTier = std::move(value); } /** *

Information about retention period in the Amazon EBS Snapshots Archive. For * more information, see Archive * Amazon EBS snapshots.

*/ inline ArchiveRetainRule& WithRetentionArchiveTier(const RetentionArchiveTier& value) { SetRetentionArchiveTier(value); return *this;} /** *

Information about retention period in the Amazon EBS Snapshots Archive. For * more information, see Archive * Amazon EBS snapshots.

*/ inline ArchiveRetainRule& WithRetentionArchiveTier(RetentionArchiveTier&& value) { SetRetentionArchiveTier(std::move(value)); return *this;} private: RetentionArchiveTier m_retentionArchiveTier; bool m_retentionArchiveTierHasBeenSet = false; }; } // namespace Model } // namespace DLM } // namespace Aws