/** * 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 the data repository association's automatic import policy. The * AutoImportPolicy defines how Amazon FSx keeps your file metadata and directory * listings up to date by importing changes to your Amazon FSx for Lustre file * system as you modify objects in a linked S3 bucket.

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

See Also:

AWS * API Reference

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

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

The AutoImportPolicy can have the following event values:

*
  • NEW - Amazon FSx automatically imports metadata of * files added to the linked S3 bucket that do not currently exist in the FSx file * system.

  • CHANGED - Amazon FSx automatically * updates file metadata and invalidates existing file content on the file system * as files change in the data repository.

  • DELETED * - Amazon FSx automatically deletes files on the file system as corresponding * files are deleted in the data repository.

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

*/ inline AutoImportPolicy& 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