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

The backup policy for the file system used to create automatic daily backups. * If status has a value of ENABLED, the file system is being * automatically backed up. For more information, see Automatic * backups.

See Also:

AWS * API Reference

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

Describes the status of the file system's backup policy.

  • * ENABLED - EFS is automatically backing up the file * system.

  • ENABLING - EFS is turning on * automatic backups for the file system.

  • * DISABLED - Automatic back ups are turned off for the file * system.

  • DISABLING - EFS is turning off * automatic backups for the file system.

*/ inline const Status& GetStatus() const{ return m_status; } /** *

Describes the status of the file system's backup policy.

  • * ENABLED - EFS is automatically backing up the file * system.

  • ENABLING - EFS is turning on * automatic backups for the file system.

  • * DISABLED - Automatic back ups are turned off for the file * system.

  • DISABLING - EFS is turning off * automatic backups for the file system.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Describes the status of the file system's backup policy.

  • * ENABLED - EFS is automatically backing up the file * system.

  • ENABLING - EFS is turning on * automatic backups for the file system.

  • * DISABLED - Automatic back ups are turned off for the file * system.

  • DISABLING - EFS is turning off * automatic backups for the file system.

*/ inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Describes the status of the file system's backup policy.

  • * ENABLED - EFS is automatically backing up the file * system.

  • ENABLING - EFS is turning on * automatic backups for the file system.

  • * DISABLED - Automatic back ups are turned off for the file * system.

  • DISABLING - EFS is turning off * automatic backups for the file system.

*/ inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Describes the status of the file system's backup policy.

  • * ENABLED - EFS is automatically backing up the file * system.

  • ENABLING - EFS is turning on * automatic backups for the file system.

  • * DISABLED - Automatic back ups are turned off for the file * system.

  • DISABLING - EFS is turning off * automatic backups for the file system.

*/ inline BackupPolicy& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

Describes the status of the file system's backup policy.

  • * ENABLED - EFS is automatically backing up the file * system.

  • ENABLING - EFS is turning on * automatic backups for the file system.

  • * DISABLED - Automatic back ups are turned off for the file * system.

  • DISABLING - EFS is turning off * automatic backups for the file system.

*/ inline BackupPolicy& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} private: Status m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws