/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include [Snapshot policies only] Specifies a snapshot archiving rule for a
* schedule.See Also:
AWS API
* Reference
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