/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.fsx.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The configuration for the Amazon FSx for Lustre file system. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LustreFileSystemConfiguration implements Serializable, Cloneable, StructuredPojo { /** *

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

*/ private String weeklyMaintenanceStartTime; private DataRepositoryConfiguration dataRepositoryConfiguration; /** *

* The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for temporary * storage and shorter-term processing of data. *

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need temporary * storage and shorter-term processing of data. The SCRATCH_2 deployment type provides in-transit * encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term storage and * workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre v2.12 and offers higher * PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower minimum storage capacity * requirement (600 GiB). To learn more about FSx for Lustre deployment types, see FSx for Lustre deployment * options. *

*

* The default is SCRATCH_1. *

*/ private String deploymentType; /** *

* Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of * storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 and * PERSISTENT_2 deployment types. *

*

* Valid values: *

* */ private Integer perUnitStorageThroughput; /** *

* You use the MountName value when mounting the file system. *

*

* For the SCRATCH_1 deployment type, this value is always "fsx". For * SCRATCH_2, PERSISTENT_1, and PERSISTENT_2 deployment types, this value is * a string that is unique within an Amazon Web Services Region. *

*/ private String mountName; private String dailyAutomaticBackupStartTime; private Integer automaticBackupRetentionDays; /** *

* A boolean flag indicating whether tags on the file system are copied to backups. If it's set to true, all tags on * the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify * any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. * If you specify one or more tags when creating a user-initiated backup, no tags are copied from the file system, * regardless of this value. (Default = false) *

*/ private Boolean copyTagsToBackups; /** *

* The type of drive cache used by PERSISTENT_1 file systems that are provisioned with HDD storage * devices. This parameter is required when StorageType is HDD. When set to READ the file * system has an SSD storage cache that is sized to 20% of the file system's storage capacity. This improves the * performance for frequently accessed files by caching up to 20% of the total storage capacity. *

*

* This parameter is required when StorageType is set to HDD. *

*/ private String driveCacheType; /** *

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

* *

* For more information, see Lustre data compression. *

*/ private String dataCompressionType; /** *

* The Lustre logging configuration. Lustre logging writes the enabled log events for your file system to Amazon * CloudWatch Logs. *

*/ private LustreLogConfiguration logConfiguration; /** *

* The Lustre root squash configuration for 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. *

*/ private LustreRootSquashConfiguration rootSquashConfiguration; /** *

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

* * @param weeklyMaintenanceStartTime * The preferred start time to perform weekly maintenance, formatted d:HH:MM in the UTC time zone. Here, * d is the weekday number, from 1 through 7, beginning with Monday and ending with Sunday. */ public void setWeeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) { this.weeklyMaintenanceStartTime = weeklyMaintenanceStartTime; } /** *

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

* * @return The preferred start time to perform weekly maintenance, formatted d:HH:MM in the UTC time zone. Here, * d is the weekday number, from 1 through 7, beginning with Monday and ending with Sunday. */ public String getWeeklyMaintenanceStartTime() { return this.weeklyMaintenanceStartTime; } /** *

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

* * @param weeklyMaintenanceStartTime * The preferred start time to perform weekly maintenance, formatted d:HH:MM in the UTC time zone. Here, * d is the weekday number, from 1 through 7, beginning with Monday and ending with Sunday. * @return Returns a reference to this object so that method calls can be chained together. */ public LustreFileSystemConfiguration withWeeklyMaintenanceStartTime(String weeklyMaintenanceStartTime) { setWeeklyMaintenanceStartTime(weeklyMaintenanceStartTime); return this; } /** * @param dataRepositoryConfiguration */ public void setDataRepositoryConfiguration(DataRepositoryConfiguration dataRepositoryConfiguration) { this.dataRepositoryConfiguration = dataRepositoryConfiguration; } /** * @return */ public DataRepositoryConfiguration getDataRepositoryConfiguration() { return this.dataRepositoryConfiguration; } /** * @param dataRepositoryConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public LustreFileSystemConfiguration withDataRepositoryConfiguration(DataRepositoryConfiguration dataRepositoryConfiguration) { setDataRepositoryConfiguration(dataRepositoryConfiguration); return this; } /** *

* The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for temporary * storage and shorter-term processing of data. *

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need temporary * storage and shorter-term processing of data. The SCRATCH_2 deployment type provides in-transit * encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term storage and * workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre v2.12 and offers higher * PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower minimum storage capacity * requirement (600 GiB). To learn more about FSx for Lustre deployment types, see FSx for Lustre deployment * options. *

*

* The default is SCRATCH_1. *

* * @param deploymentType * The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for * temporary storage and shorter-term processing of data.

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need * temporary storage and shorter-term processing of data. The SCRATCH_2 deployment type provides * in-transit encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term * storage and workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre * v2.12 and offers higher PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower * minimum storage capacity requirement (600 GiB). To learn more about FSx for Lustre deployment types, see * FSx for Lustre * deployment options. *

*

* The default is SCRATCH_1. * @see LustreDeploymentType */ public void setDeploymentType(String deploymentType) { this.deploymentType = deploymentType; } /** *

* The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for temporary * storage and shorter-term processing of data. *

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need temporary * storage and shorter-term processing of data. The SCRATCH_2 deployment type provides in-transit * encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term storage and * workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre v2.12 and offers higher * PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower minimum storage capacity * requirement (600 GiB). To learn more about FSx for Lustre deployment types, see FSx for Lustre deployment * options. *

*

* The default is SCRATCH_1. *

* * @return The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for * temporary storage and shorter-term processing of data.

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need * temporary storage and shorter-term processing of data. The SCRATCH_2 deployment type * provides in-transit encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term * storage and workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre * v2.12 and offers higher PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower * minimum storage capacity requirement (600 GiB). To learn more about FSx for Lustre deployment types, see * FSx for Lustre * deployment options. *

*

* The default is SCRATCH_1. * @see LustreDeploymentType */ public String getDeploymentType() { return this.deploymentType; } /** *

* The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for temporary * storage and shorter-term processing of data. *

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need temporary * storage and shorter-term processing of data. The SCRATCH_2 deployment type provides in-transit * encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term storage and * workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre v2.12 and offers higher * PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower minimum storage capacity * requirement (600 GiB). To learn more about FSx for Lustre deployment types, see FSx for Lustre deployment * options. *

*

* The default is SCRATCH_1. *

* * @param deploymentType * The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for * temporary storage and shorter-term processing of data.

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need * temporary storage and shorter-term processing of data. The SCRATCH_2 deployment type provides * in-transit encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term * storage and workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre * v2.12 and offers higher PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower * minimum storage capacity requirement (600 GiB). To learn more about FSx for Lustre deployment types, see * FSx for Lustre * deployment options. *

*

* The default is SCRATCH_1. * @return Returns a reference to this object so that method calls can be chained together. * @see LustreDeploymentType */ public LustreFileSystemConfiguration withDeploymentType(String deploymentType) { setDeploymentType(deploymentType); return this; } /** *

* The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for temporary * storage and shorter-term processing of data. *

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need temporary * storage and shorter-term processing of data. The SCRATCH_2 deployment type provides in-transit * encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term storage and * workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre v2.12 and offers higher * PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower minimum storage capacity * requirement (600 GiB). To learn more about FSx for Lustre deployment types, see FSx for Lustre deployment * options. *

*

* The default is SCRATCH_1. *

* * @param deploymentType * The deployment type of the FSx for Lustre file system. Scratch deployment type is designed for * temporary storage and shorter-term processing of data.

*

* SCRATCH_1 and SCRATCH_2 deployment types are best suited for when you need * temporary storage and shorter-term processing of data. The SCRATCH_2 deployment type provides * in-transit encryption of data and higher burst throughput capacity than SCRATCH_1. *

*

* The PERSISTENT_1 and PERSISTENT_2 deployment type is used for longer-term * storage and workloads and encryption of data in transit. PERSISTENT_2 is built on Lustre * v2.12 and offers higher PerUnitStorageThroughput (up to 1000 MB/s/TiB) along with a lower * minimum storage capacity requirement (600 GiB). To learn more about FSx for Lustre deployment types, see * FSx for Lustre * deployment options. *

*

* The default is SCRATCH_1. * @return Returns a reference to this object so that method calls can be chained together. * @see LustreDeploymentType */ public LustreFileSystemConfiguration withDeploymentType(LustreDeploymentType deploymentType) { this.deploymentType = deploymentType.toString(); return this; } /** *

* Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte of * storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 and * PERSISTENT_2 deployment types. *

*

* Valid values: *

* * * @param perUnitStorageThroughput * Per unit storage throughput represents the megabytes per second of read or write throughput per 1 tebibyte * of storage provisioned. File system throughput capacity is equal to Storage capacity (TiB) * * PerUnitStorageThroughput (MB/s/TiB). This option is only valid for PERSISTENT_1 and * PERSISTENT_2 deployment types.

*

* Valid values: *

*