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

Describes a data repository association's automatic export policy. The * AutoExportPolicy defines the types of updated objects on the file * system that will be automatically exported to the data repository. As you * create, modify, or delete files, Amazon FSx for Lustre automatically exports the * defined changes asynchronously once your application finishes modifying the * file.

The AutoExportPolicy is only supported on Amazon FSx * for Lustre file systems with a data repository association.

See * Also:

AWS * API Reference

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

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline AutoExportPolicy& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline AutoExportPolicy& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline AutoExportPolicy& AddEvents(const EventType& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

The AutoExportPolicy can have the following event values:

*
  • NEW - New files and directories are automatically * exported to the data repository as they are added to the file system.

  • *
  • CHANGED - Changes to files and directories on the file * system are automatically exported to the data repository.

  • * DELETED - Files and directories are automatically deleted on the * data repository when they are deleted on the file system.

You * can define any combination of event types for your * AutoExportPolicy.

*/ inline AutoExportPolicy& AddEvents(EventType&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } private: Aws::Vector m_events; bool m_eventsHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws