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

The configuration object for Amazon FSx for Lustre file systems used in the * UpdateFileSystem operation.

See Also:

AWS * API Reference

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

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline const Aws::String& GetWeeklyMaintenanceStartTime() const{ return m_weeklyMaintenanceStartTime; } /** *

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline bool WeeklyMaintenanceStartTimeHasBeenSet() const { return m_weeklyMaintenanceStartTimeHasBeenSet; } /** *

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline void SetWeeklyMaintenanceStartTime(const Aws::String& value) { m_weeklyMaintenanceStartTimeHasBeenSet = true; m_weeklyMaintenanceStartTime = value; } /** *

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline void SetWeeklyMaintenanceStartTime(Aws::String&& value) { m_weeklyMaintenanceStartTimeHasBeenSet = true; m_weeklyMaintenanceStartTime = std::move(value); } /** *

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline void SetWeeklyMaintenanceStartTime(const char* value) { m_weeklyMaintenanceStartTimeHasBeenSet = true; m_weeklyMaintenanceStartTime.assign(value); } /** *

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline UpdateFileSystemLustreConfiguration& WithWeeklyMaintenanceStartTime(const Aws::String& value) { SetWeeklyMaintenanceStartTime(value); return *this;} /** *

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline UpdateFileSystemLustreConfiguration& WithWeeklyMaintenanceStartTime(Aws::String&& value) { SetWeeklyMaintenanceStartTime(std::move(value)); return *this;} /** *

(Optional) The preferred start time to perform weekly maintenance, formatted * d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, * beginning with Monday and ending with Sunday.

*/ inline UpdateFileSystemLustreConfiguration& WithWeeklyMaintenanceStartTime(const char* value) { SetWeeklyMaintenanceStartTime(value); return *this;} inline const Aws::String& GetDailyAutomaticBackupStartTime() const{ return m_dailyAutomaticBackupStartTime; } inline bool DailyAutomaticBackupStartTimeHasBeenSet() const { return m_dailyAutomaticBackupStartTimeHasBeenSet; } inline void SetDailyAutomaticBackupStartTime(const Aws::String& value) { m_dailyAutomaticBackupStartTimeHasBeenSet = true; m_dailyAutomaticBackupStartTime = value; } inline void SetDailyAutomaticBackupStartTime(Aws::String&& value) { m_dailyAutomaticBackupStartTimeHasBeenSet = true; m_dailyAutomaticBackupStartTime = std::move(value); } inline void SetDailyAutomaticBackupStartTime(const char* value) { m_dailyAutomaticBackupStartTimeHasBeenSet = true; m_dailyAutomaticBackupStartTime.assign(value); } inline UpdateFileSystemLustreConfiguration& WithDailyAutomaticBackupStartTime(const Aws::String& value) { SetDailyAutomaticBackupStartTime(value); return *this;} inline UpdateFileSystemLustreConfiguration& WithDailyAutomaticBackupStartTime(Aws::String&& value) { SetDailyAutomaticBackupStartTime(std::move(value)); return *this;} inline UpdateFileSystemLustreConfiguration& WithDailyAutomaticBackupStartTime(const char* value) { SetDailyAutomaticBackupStartTime(value); return *this;} /** *

The number of days to retain automatic backups. Setting this property to * 0 disables automatic backups. You can retain automatic backups for * a maximum of 90 days. The default is 0.

*/ inline int GetAutomaticBackupRetentionDays() const{ return m_automaticBackupRetentionDays; } /** *

The number of days to retain automatic backups. Setting this property to * 0 disables automatic backups. You can retain automatic backups for * a maximum of 90 days. The default is 0.

*/ inline bool AutomaticBackupRetentionDaysHasBeenSet() const { return m_automaticBackupRetentionDaysHasBeenSet; } /** *

The number of days to retain automatic backups. Setting this property to * 0 disables automatic backups. You can retain automatic backups for * a maximum of 90 days. The default is 0.

*/ inline void SetAutomaticBackupRetentionDays(int value) { m_automaticBackupRetentionDaysHasBeenSet = true; m_automaticBackupRetentionDays = value; } /** *

The number of days to retain automatic backups. Setting this property to * 0 disables automatic backups. You can retain automatic backups for * a maximum of 90 days. The default is 0.

*/ inline UpdateFileSystemLustreConfiguration& WithAutomaticBackupRetentionDays(int value) { SetAutomaticBackupRetentionDays(value); return *this;} /** *

(Optional) When you create your file system, your existing S3 objects appear * as file and directory listings. Use this property to choose how Amazon FSx keeps * your file and directory listing up to date as you add or modify objects in your * linked S3 bucket. AutoImportPolicy can have the following * values:

  • NONE - (Default) AutoImport is off. * Amazon FSx only updates file and directory listings from the linked S3 bucket * when the file system is created. FSx does not update the file and directory * listing for any new or changed objects after choosing this option.

  • *
  • NEW - AutoImport is on. Amazon FSx automatically imports * directory listings of any new objects added to the linked S3 bucket that do not * currently exist in the FSx file system.

  • * NEW_CHANGED - AutoImport is on. Amazon FSx automatically imports * file and directory listings of any new objects added to the S3 bucket and any * existing objects that are changed in the S3 bucket after you choose this * option.

  • NEW_CHANGED_DELETED - AutoImport is on. * Amazon FSx automatically imports file and directory listings of any new objects * added to the S3 bucket, any existing objects that are changed in the S3 bucket, * and any objects that were deleted in the S3 bucket.

This * parameter is not supported for file systems with a data repository * association.

*/ inline const AutoImportPolicyType& GetAutoImportPolicy() const{ return m_autoImportPolicy; } /** *

(Optional) When you create your file system, your existing S3 objects appear * as file and directory listings. Use this property to choose how Amazon FSx keeps * your file and directory listing up to date as you add or modify objects in your * linked S3 bucket. AutoImportPolicy can have the following * values:

  • NONE - (Default) AutoImport is off. * Amazon FSx only updates file and directory listings from the linked S3 bucket * when the file system is created. FSx does not update the file and directory * listing for any new or changed objects after choosing this option.

  • *
  • NEW - AutoImport is on. Amazon FSx automatically imports * directory listings of any new objects added to the linked S3 bucket that do not * currently exist in the FSx file system.

  • * NEW_CHANGED - AutoImport is on. Amazon FSx automatically imports * file and directory listings of any new objects added to the S3 bucket and any * existing objects that are changed in the S3 bucket after you choose this * option.

  • NEW_CHANGED_DELETED - AutoImport is on. * Amazon FSx automatically imports file and directory listings of any new objects * added to the S3 bucket, any existing objects that are changed in the S3 bucket, * and any objects that were deleted in the S3 bucket.

This * parameter is not supported for file systems with a data repository * association.

*/ inline bool AutoImportPolicyHasBeenSet() const { return m_autoImportPolicyHasBeenSet; } /** *

(Optional) When you create your file system, your existing S3 objects appear * as file and directory listings. Use this property to choose how Amazon FSx keeps * your file and directory listing up to date as you add or modify objects in your * linked S3 bucket. AutoImportPolicy can have the following * values:

  • NONE - (Default) AutoImport is off. * Amazon FSx only updates file and directory listings from the linked S3 bucket * when the file system is created. FSx does not update the file and directory * listing for any new or changed objects after choosing this option.

  • *
  • NEW - AutoImport is on. Amazon FSx automatically imports * directory listings of any new objects added to the linked S3 bucket that do not * currently exist in the FSx file system.

  • * NEW_CHANGED - AutoImport is on. Amazon FSx automatically imports * file and directory listings of any new objects added to the S3 bucket and any * existing objects that are changed in the S3 bucket after you choose this * option.

  • NEW_CHANGED_DELETED - AutoImport is on. * Amazon FSx automatically imports file and directory listings of any new objects * added to the S3 bucket, any existing objects that are changed in the S3 bucket, * and any objects that were deleted in the S3 bucket.

This * parameter is not supported for file systems with a data repository * association.

*/ inline void SetAutoImportPolicy(const AutoImportPolicyType& value) { m_autoImportPolicyHasBeenSet = true; m_autoImportPolicy = value; } /** *

(Optional) When you create your file system, your existing S3 objects appear * as file and directory listings. Use this property to choose how Amazon FSx keeps * your file and directory listing up to date as you add or modify objects in your * linked S3 bucket. AutoImportPolicy can have the following * values:

  • NONE - (Default) AutoImport is off. * Amazon FSx only updates file and directory listings from the linked S3 bucket * when the file system is created. FSx does not update the file and directory * listing for any new or changed objects after choosing this option.

  • *
  • NEW - AutoImport is on. Amazon FSx automatically imports * directory listings of any new objects added to the linked S3 bucket that do not * currently exist in the FSx file system.

  • * NEW_CHANGED - AutoImport is on. Amazon FSx automatically imports * file and directory listings of any new objects added to the S3 bucket and any * existing objects that are changed in the S3 bucket after you choose this * option.

  • NEW_CHANGED_DELETED - AutoImport is on. * Amazon FSx automatically imports file and directory listings of any new objects * added to the S3 bucket, any existing objects that are changed in the S3 bucket, * and any objects that were deleted in the S3 bucket.

This * parameter is not supported for file systems with a data repository * association.

*/ inline void SetAutoImportPolicy(AutoImportPolicyType&& value) { m_autoImportPolicyHasBeenSet = true; m_autoImportPolicy = std::move(value); } /** *

(Optional) When you create your file system, your existing S3 objects appear * as file and directory listings. Use this property to choose how Amazon FSx keeps * your file and directory listing up to date as you add or modify objects in your * linked S3 bucket. AutoImportPolicy can have the following * values:

  • NONE - (Default) AutoImport is off. * Amazon FSx only updates file and directory listings from the linked S3 bucket * when the file system is created. FSx does not update the file and directory * listing for any new or changed objects after choosing this option.

  • *
  • NEW - AutoImport is on. Amazon FSx automatically imports * directory listings of any new objects added to the linked S3 bucket that do not * currently exist in the FSx file system.

  • * NEW_CHANGED - AutoImport is on. Amazon FSx automatically imports * file and directory listings of any new objects added to the S3 bucket and any * existing objects that are changed in the S3 bucket after you choose this * option.

  • NEW_CHANGED_DELETED - AutoImport is on. * Amazon FSx automatically imports file and directory listings of any new objects * added to the S3 bucket, any existing objects that are changed in the S3 bucket, * and any objects that were deleted in the S3 bucket.

This * parameter is not supported for file systems with a data repository * association.

*/ inline UpdateFileSystemLustreConfiguration& WithAutoImportPolicy(const AutoImportPolicyType& value) { SetAutoImportPolicy(value); return *this;} /** *

(Optional) When you create your file system, your existing S3 objects appear * as file and directory listings. Use this property to choose how Amazon FSx keeps * your file and directory listing up to date as you add or modify objects in your * linked S3 bucket. AutoImportPolicy can have the following * values:

  • NONE - (Default) AutoImport is off. * Amazon FSx only updates file and directory listings from the linked S3 bucket * when the file system is created. FSx does not update the file and directory * listing for any new or changed objects after choosing this option.

  • *
  • NEW - AutoImport is on. Amazon FSx automatically imports * directory listings of any new objects added to the linked S3 bucket that do not * currently exist in the FSx file system.

  • * NEW_CHANGED - AutoImport is on. Amazon FSx automatically imports * file and directory listings of any new objects added to the S3 bucket and any * existing objects that are changed in the S3 bucket after you choose this * option.

  • NEW_CHANGED_DELETED - AutoImport is on. * Amazon FSx automatically imports file and directory listings of any new objects * added to the S3 bucket, any existing objects that are changed in the S3 bucket, * and any objects that were deleted in the S3 bucket.

This * parameter is not supported for file systems with a data repository * association.

*/ inline UpdateFileSystemLustreConfiguration& WithAutoImportPolicy(AutoImportPolicyType&& value) { SetAutoImportPolicy(std::move(value)); return *this;} /** *

Sets the data compression configuration for the file system. * DataCompressionType can have the following values:

  • *

    NONE - Data compression is turned off for the file system.

    *
  • LZ4 - Data compression is turned on with the LZ4 * algorithm.

If you don't use DataCompressionType, * the file system retains its current data compression configuration.

For * more information, see Lustre * data compression.

*/ inline const DataCompressionType& GetDataCompressionType() const{ return m_dataCompressionType; } /** *

Sets the data compression configuration for the file system. * DataCompressionType can have the following values:

  • *

    NONE - Data compression is turned off for the file system.

    *
  • LZ4 - Data compression is turned on with the LZ4 * algorithm.

If you don't use DataCompressionType, * the file system retains its current data compression configuration.

For * more information, see Lustre * data compression.

*/ inline bool DataCompressionTypeHasBeenSet() const { return m_dataCompressionTypeHasBeenSet; } /** *

Sets the data compression configuration for the file system. * DataCompressionType can have the following values:

  • *

    NONE - Data compression is turned off for the file system.

    *
  • LZ4 - Data compression is turned on with the LZ4 * algorithm.

If you don't use DataCompressionType, * the file system retains its current data compression configuration.

For * more information, see Lustre * data compression.

*/ inline void SetDataCompressionType(const DataCompressionType& value) { m_dataCompressionTypeHasBeenSet = true; m_dataCompressionType = value; } /** *

Sets the data compression configuration for the file system. * DataCompressionType can have the following values:

  • *

    NONE - Data compression is turned off for the file system.

    *
  • LZ4 - Data compression is turned on with the LZ4 * algorithm.

If you don't use DataCompressionType, * the file system retains its current data compression configuration.

For * more information, see Lustre * data compression.

*/ inline void SetDataCompressionType(DataCompressionType&& value) { m_dataCompressionTypeHasBeenSet = true; m_dataCompressionType = std::move(value); } /** *

Sets the data compression configuration for the file system. * DataCompressionType can have the following values:

  • *

    NONE - Data compression is turned off for the file system.

    *
  • LZ4 - Data compression is turned on with the LZ4 * algorithm.

If you don't use DataCompressionType, * the file system retains its current data compression configuration.

For * more information, see Lustre * data compression.

*/ inline UpdateFileSystemLustreConfiguration& WithDataCompressionType(const DataCompressionType& value) { SetDataCompressionType(value); return *this;} /** *

Sets the data compression configuration for the file system. * DataCompressionType can have the following values:

  • *

    NONE - Data compression is turned off for the file system.

    *
  • LZ4 - Data compression is turned on with the LZ4 * algorithm.

If you don't use DataCompressionType, * the file system retains its current data compression configuration.

For * more information, see Lustre * data compression.

*/ inline UpdateFileSystemLustreConfiguration& WithDataCompressionType(DataCompressionType&& value) { SetDataCompressionType(std::move(value)); return *this;} /** *

The Lustre logging configuration used when updating an Amazon FSx for Lustre * file system. When logging is enabled, Lustre logs error and warning events for * data repositories associated with your file system to Amazon CloudWatch * Logs.

*/ inline const LustreLogCreateConfiguration& GetLogConfiguration() const{ return m_logConfiguration; } /** *

The Lustre logging configuration used when updating an Amazon FSx for Lustre * file system. When logging is enabled, Lustre logs error and warning events for * data repositories associated with your file system to Amazon CloudWatch * Logs.

*/ inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; } /** *

The Lustre logging configuration used when updating an Amazon FSx for Lustre * file system. When logging is enabled, Lustre logs error and warning events for * data repositories associated with your file system to Amazon CloudWatch * Logs.

*/ inline void SetLogConfiguration(const LustreLogCreateConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; } /** *

The Lustre logging configuration used when updating an Amazon FSx for Lustre * file system. When logging is enabled, Lustre logs error and warning events for * data repositories associated with your file system to Amazon CloudWatch * Logs.

*/ inline void SetLogConfiguration(LustreLogCreateConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); } /** *

The Lustre logging configuration used when updating an Amazon FSx for Lustre * file system. When logging is enabled, Lustre logs error and warning events for * data repositories associated with your file system to Amazon CloudWatch * Logs.

*/ inline UpdateFileSystemLustreConfiguration& WithLogConfiguration(const LustreLogCreateConfiguration& value) { SetLogConfiguration(value); return *this;} /** *

The Lustre logging configuration used when updating an Amazon FSx for Lustre * file system. When logging is enabled, Lustre logs error and warning events for * data repositories associated with your file system to Amazon CloudWatch * Logs.

*/ inline UpdateFileSystemLustreConfiguration& WithLogConfiguration(LustreLogCreateConfiguration&& value) { SetLogConfiguration(std::move(value)); return *this;} /** *

The Lustre root squash configuration used when updating an Amazon FSx for * Lustre file system. When enabled, root squash restricts root-level access from * clients that try to access your file system as a root user.

*/ inline const LustreRootSquashConfiguration& GetRootSquashConfiguration() const{ return m_rootSquashConfiguration; } /** *

The Lustre root squash configuration used when updating an Amazon FSx for * Lustre file system. When enabled, root squash restricts root-level access from * clients that try to access your file system as a root user.

*/ inline bool RootSquashConfigurationHasBeenSet() const { return m_rootSquashConfigurationHasBeenSet; } /** *

The Lustre root squash configuration used when updating an Amazon FSx for * Lustre file system. When enabled, root squash restricts root-level access from * clients that try to access your file system as a root user.

*/ inline void SetRootSquashConfiguration(const LustreRootSquashConfiguration& value) { m_rootSquashConfigurationHasBeenSet = true; m_rootSquashConfiguration = value; } /** *

The Lustre root squash configuration used when updating an Amazon FSx for * Lustre file system. When enabled, root squash restricts root-level access from * clients that try to access your file system as a root user.

*/ inline void SetRootSquashConfiguration(LustreRootSquashConfiguration&& value) { m_rootSquashConfigurationHasBeenSet = true; m_rootSquashConfiguration = std::move(value); } /** *

The Lustre root squash configuration used when updating an Amazon FSx for * Lustre file system. When enabled, root squash restricts root-level access from * clients that try to access your file system as a root user.

*/ inline UpdateFileSystemLustreConfiguration& WithRootSquashConfiguration(const LustreRootSquashConfiguration& value) { SetRootSquashConfiguration(value); return *this;} /** *

The Lustre root squash configuration used when updating an Amazon FSx for * Lustre file system. When enabled, root squash restricts root-level access from * clients that try to access your file system as a root user.

*/ inline UpdateFileSystemLustreConfiguration& WithRootSquashConfiguration(LustreRootSquashConfiguration&& value) { SetRootSquashConfiguration(std::move(value)); return *this;} private: Aws::String m_weeklyMaintenanceStartTime; bool m_weeklyMaintenanceStartTimeHasBeenSet = false; Aws::String m_dailyAutomaticBackupStartTime; bool m_dailyAutomaticBackupStartTimeHasBeenSet = false; int m_automaticBackupRetentionDays; bool m_automaticBackupRetentionDaysHasBeenSet = false; AutoImportPolicyType m_autoImportPolicy; bool m_autoImportPolicyHasBeenSet = false; DataCompressionType m_dataCompressionType; bool m_dataCompressionTypeHasBeenSet = false; LustreLogCreateConfiguration m_logConfiguration; bool m_logConfigurationHasBeenSet = false; LustreRootSquashConfiguration m_rootSquashConfiguration; bool m_rootSquashConfigurationHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws