/** * 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 a snapshot archiving rule for a * schedule.

See Also:

AWS API * Reference

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

Information about the retention period for the snapshot archiving rule.

*/ inline const ArchiveRetainRule& GetRetainRule() const{ return m_retainRule; } /** *

Information about the retention period for the snapshot archiving rule.

*/ inline bool RetainRuleHasBeenSet() const { return m_retainRuleHasBeenSet; } /** *

Information about the retention period for the snapshot archiving rule.

*/ inline void SetRetainRule(const ArchiveRetainRule& value) { m_retainRuleHasBeenSet = true; m_retainRule = value; } /** *

Information about the retention period for the snapshot archiving rule.

*/ inline void SetRetainRule(ArchiveRetainRule&& value) { m_retainRuleHasBeenSet = true; m_retainRule = std::move(value); } /** *

Information about the retention period for the snapshot archiving rule.

*/ inline ArchiveRule& WithRetainRule(const ArchiveRetainRule& value) { SetRetainRule(value); return *this;} /** *

Information about the retention period for the snapshot archiving rule.

*/ inline ArchiveRule& WithRetainRule(ArchiveRetainRule&& value) { SetRetainRule(std::move(value)); return *this;} private: ArchiveRetainRule m_retainRule; bool m_retainRuleHasBeenSet = false; }; } // namespace Model } // namespace DLM } // namespace Aws