/* * 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.
*
* 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
.
*
* 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: *
*
* For PERSISTENT_1
SSD storage: 50, 100, 200.
*
* For PERSISTENT_1
HDD storage: 12, 40.
*
* For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
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.
*
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.
*
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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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: *
*
* For PERSISTENT_1
SSD storage: 50, 100, 200.
*
* For PERSISTENT_1
HDD storage: 12, 40.
*
* For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
*
PERSISTENT_1
and
* PERSISTENT_2
deployment types.
* * Valid values: *
*
* For PERSISTENT_1
SSD storage: 50, 100, 200.
*
* For PERSISTENT_1
HDD storage: 12, 40.
*
* For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
*
* 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: *
*
* For PERSISTENT_1
SSD storage: 50, 100, 200.
*
* For PERSISTENT_1
HDD storage: 12, 40.
*
* For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
*
PERSISTENT_1
and
* PERSISTENT_2
deployment types.
* * Valid values: *
*
* For PERSISTENT_1
SSD storage: 50, 100, 200.
*
* For PERSISTENT_1
HDD storage: 12, 40.
*
* For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
*
* 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: *
*
* For PERSISTENT_1
SSD storage: 50, 100, 200.
*
* For PERSISTENT_1
HDD storage: 12, 40.
*
* For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
*
PERSISTENT_1
and
* PERSISTENT_2
deployment types.
* * Valid values: *
*
* For PERSISTENT_1
SSD storage: 50, 100, 200.
*
* For PERSISTENT_1
HDD storage: 12, 40.
*
* For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
*
* 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.
*
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.
*/
public void setMountName(String mountName) {
this.mountName = mountName;
}
/**
*
* 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.
*
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.
*/
public String getMountName() {
return this.mountName;
}
/**
*
* 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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LustreFileSystemConfiguration withMountName(String mountName) {
setMountName(mountName);
return this;
}
/**
* @param dailyAutomaticBackupStartTime
*/
public void setDailyAutomaticBackupStartTime(String dailyAutomaticBackupStartTime) {
this.dailyAutomaticBackupStartTime = dailyAutomaticBackupStartTime;
}
/**
* @return
*/
public String getDailyAutomaticBackupStartTime() {
return this.dailyAutomaticBackupStartTime;
}
/**
* @param dailyAutomaticBackupStartTime
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LustreFileSystemConfiguration withDailyAutomaticBackupStartTime(String dailyAutomaticBackupStartTime) {
setDailyAutomaticBackupStartTime(dailyAutomaticBackupStartTime);
return this;
}
/**
* @param automaticBackupRetentionDays
*/
public void setAutomaticBackupRetentionDays(Integer automaticBackupRetentionDays) {
this.automaticBackupRetentionDays = automaticBackupRetentionDays;
}
/**
* @return
*/
public Integer getAutomaticBackupRetentionDays() {
return this.automaticBackupRetentionDays;
}
/**
* @param automaticBackupRetentionDays
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LustreFileSystemConfiguration withAutomaticBackupRetentionDays(Integer automaticBackupRetentionDays) {
setAutomaticBackupRetentionDays(automaticBackupRetentionDays);
return this;
}
/**
*
* 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) *
* * @param copyTagsToBackups * 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) */ public void setCopyTagsToBackups(Boolean copyTagsToBackups) { this.copyTagsToBackups = copyTagsToBackups; } /** ** 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) *
* * @return 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) */ public Boolean getCopyTagsToBackups() { return this.copyTagsToBackups; } /** ** 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) *
* * @param copyTagsToBackups * 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) * @return Returns a reference to this object so that method calls can be chained together. */ public LustreFileSystemConfiguration withCopyTagsToBackups(Boolean copyTagsToBackups) { setCopyTagsToBackups(copyTagsToBackups); return this; } /** ** 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) *
* * @return 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) */ public Boolean isCopyTagsToBackups() { return this.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.
*
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.
* @see DriveCacheType
*/
public void setDriveCacheType(String driveCacheType) {
this.driveCacheType = driveCacheType;
}
/**
*
* 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.
*
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.
* @see DriveCacheType
*/
public String getDriveCacheType() {
return this.driveCacheType;
}
/**
*
* 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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DriveCacheType
*/
public LustreFileSystemConfiguration withDriveCacheType(String driveCacheType) {
setDriveCacheType(driveCacheType);
return this;
}
/**
*
* 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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DriveCacheType
*/
public LustreFileSystemConfiguration withDriveCacheType(DriveCacheType driveCacheType) {
this.driveCacheType = driveCacheType.toString();
return this;
}
/**
*
* 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.
*
* For more information, see Lustre data compression. *
* * @param dataCompressionType * 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.
*
* For more information, see Lustre data * compression. * @see DataCompressionType */ public void setDataCompressionType(String dataCompressionType) { this.dataCompressionType = dataCompressionType; } /** *
* 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.
*
* For more information, see Lustre data compression. *
* * @return 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.
*
* For more information, see Lustre data * compression. * @see DataCompressionType */ public String getDataCompressionType() { return this.dataCompressionType; } /** *
* 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.
*
* For more information, see Lustre data compression. *
* * @param dataCompressionType * 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.
*
* For more information, see Lustre data * compression. * @return Returns a reference to this object so that method calls can be chained together. * @see DataCompressionType */ public LustreFileSystemConfiguration withDataCompressionType(String dataCompressionType) { setDataCompressionType(dataCompressionType); return this; } /** *
* 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.
*
* For more information, see Lustre data compression. *
* * @param dataCompressionType * 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.
*
* For more information, see Lustre data * compression. * @return Returns a reference to this object so that method calls can be chained together. * @see DataCompressionType */ public LustreFileSystemConfiguration withDataCompressionType(DataCompressionType dataCompressionType) { this.dataCompressionType = dataCompressionType.toString(); return this; } /** *
* The Lustre logging configuration. Lustre logging writes the enabled log events for your file system to Amazon * CloudWatch Logs. *
* * @param logConfiguration * The Lustre logging configuration. Lustre logging writes the enabled log events for your file system to * Amazon CloudWatch Logs. */ public void setLogConfiguration(LustreLogConfiguration logConfiguration) { this.logConfiguration = logConfiguration; } /** ** The Lustre logging configuration. Lustre logging writes the enabled log events for your file system to Amazon * CloudWatch Logs. *
* * @return The Lustre logging configuration. Lustre logging writes the enabled log events for your file system to * Amazon CloudWatch Logs. */ public LustreLogConfiguration getLogConfiguration() { return this.logConfiguration; } /** ** The Lustre logging configuration. Lustre logging writes the enabled log events for your file system to Amazon * CloudWatch Logs. *
* * @param logConfiguration * The Lustre logging configuration. Lustre logging writes the enabled log events for your file system to * Amazon CloudWatch Logs. * @return Returns a reference to this object so that method calls can be chained together. */ public LustreFileSystemConfiguration withLogConfiguration(LustreLogConfiguration logConfiguration) { setLogConfiguration(logConfiguration); return this; } /** ** 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. *
* * @param rootSquashConfiguration * 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. */ public void setRootSquashConfiguration(LustreRootSquashConfiguration rootSquashConfiguration) { this.rootSquashConfiguration = rootSquashConfiguration; } /** ** 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. *
* * @return 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. */ public LustreRootSquashConfiguration getRootSquashConfiguration() { return this.rootSquashConfiguration; } /** ** 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. *
* * @param rootSquashConfiguration * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public LustreFileSystemConfiguration withRootSquashConfiguration(LustreRootSquashConfiguration rootSquashConfiguration) { setRootSquashConfiguration(rootSquashConfiguration); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getWeeklyMaintenanceStartTime() != null) sb.append("WeeklyMaintenanceStartTime: ").append(getWeeklyMaintenanceStartTime()).append(","); if (getDataRepositoryConfiguration() != null) sb.append("DataRepositoryConfiguration: ").append(getDataRepositoryConfiguration()).append(","); if (getDeploymentType() != null) sb.append("DeploymentType: ").append(getDeploymentType()).append(","); if (getPerUnitStorageThroughput() != null) sb.append("PerUnitStorageThroughput: ").append(getPerUnitStorageThroughput()).append(","); if (getMountName() != null) sb.append("MountName: ").append(getMountName()).append(","); if (getDailyAutomaticBackupStartTime() != null) sb.append("DailyAutomaticBackupStartTime: ").append(getDailyAutomaticBackupStartTime()).append(","); if (getAutomaticBackupRetentionDays() != null) sb.append("AutomaticBackupRetentionDays: ").append(getAutomaticBackupRetentionDays()).append(","); if (getCopyTagsToBackups() != null) sb.append("CopyTagsToBackups: ").append(getCopyTagsToBackups()).append(","); if (getDriveCacheType() != null) sb.append("DriveCacheType: ").append(getDriveCacheType()).append(","); if (getDataCompressionType() != null) sb.append("DataCompressionType: ").append(getDataCompressionType()).append(","); if (getLogConfiguration() != null) sb.append("LogConfiguration: ").append(getLogConfiguration()).append(","); if (getRootSquashConfiguration() != null) sb.append("RootSquashConfiguration: ").append(getRootSquashConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LustreFileSystemConfiguration == false) return false; LustreFileSystemConfiguration other = (LustreFileSystemConfiguration) obj; if (other.getWeeklyMaintenanceStartTime() == null ^ this.getWeeklyMaintenanceStartTime() == null) return false; if (other.getWeeklyMaintenanceStartTime() != null && other.getWeeklyMaintenanceStartTime().equals(this.getWeeklyMaintenanceStartTime()) == false) return false; if (other.getDataRepositoryConfiguration() == null ^ this.getDataRepositoryConfiguration() == null) return false; if (other.getDataRepositoryConfiguration() != null && other.getDataRepositoryConfiguration().equals(this.getDataRepositoryConfiguration()) == false) return false; if (other.getDeploymentType() == null ^ this.getDeploymentType() == null) return false; if (other.getDeploymentType() != null && other.getDeploymentType().equals(this.getDeploymentType()) == false) return false; if (other.getPerUnitStorageThroughput() == null ^ this.getPerUnitStorageThroughput() == null) return false; if (other.getPerUnitStorageThroughput() != null && other.getPerUnitStorageThroughput().equals(this.getPerUnitStorageThroughput()) == false) return false; if (other.getMountName() == null ^ this.getMountName() == null) return false; if (other.getMountName() != null && other.getMountName().equals(this.getMountName()) == false) return false; if (other.getDailyAutomaticBackupStartTime() == null ^ this.getDailyAutomaticBackupStartTime() == null) return false; if (other.getDailyAutomaticBackupStartTime() != null && other.getDailyAutomaticBackupStartTime().equals(this.getDailyAutomaticBackupStartTime()) == false) return false; if (other.getAutomaticBackupRetentionDays() == null ^ this.getAutomaticBackupRetentionDays() == null) return false; if (other.getAutomaticBackupRetentionDays() != null && other.getAutomaticBackupRetentionDays().equals(this.getAutomaticBackupRetentionDays()) == false) return false; if (other.getCopyTagsToBackups() == null ^ this.getCopyTagsToBackups() == null) return false; if (other.getCopyTagsToBackups() != null && other.getCopyTagsToBackups().equals(this.getCopyTagsToBackups()) == false) return false; if (other.getDriveCacheType() == null ^ this.getDriveCacheType() == null) return false; if (other.getDriveCacheType() != null && other.getDriveCacheType().equals(this.getDriveCacheType()) == false) return false; if (other.getDataCompressionType() == null ^ this.getDataCompressionType() == null) return false; if (other.getDataCompressionType() != null && other.getDataCompressionType().equals(this.getDataCompressionType()) == false) return false; if (other.getLogConfiguration() == null ^ this.getLogConfiguration() == null) return false; if (other.getLogConfiguration() != null && other.getLogConfiguration().equals(this.getLogConfiguration()) == false) return false; if (other.getRootSquashConfiguration() == null ^ this.getRootSquashConfiguration() == null) return false; if (other.getRootSquashConfiguration() != null && other.getRootSquashConfiguration().equals(this.getRootSquashConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWeeklyMaintenanceStartTime() == null) ? 0 : getWeeklyMaintenanceStartTime().hashCode()); hashCode = prime * hashCode + ((getDataRepositoryConfiguration() == null) ? 0 : getDataRepositoryConfiguration().hashCode()); hashCode = prime * hashCode + ((getDeploymentType() == null) ? 0 : getDeploymentType().hashCode()); hashCode = prime * hashCode + ((getPerUnitStorageThroughput() == null) ? 0 : getPerUnitStorageThroughput().hashCode()); hashCode = prime * hashCode + ((getMountName() == null) ? 0 : getMountName().hashCode()); hashCode = prime * hashCode + ((getDailyAutomaticBackupStartTime() == null) ? 0 : getDailyAutomaticBackupStartTime().hashCode()); hashCode = prime * hashCode + ((getAutomaticBackupRetentionDays() == null) ? 0 : getAutomaticBackupRetentionDays().hashCode()); hashCode = prime * hashCode + ((getCopyTagsToBackups() == null) ? 0 : getCopyTagsToBackups().hashCode()); hashCode = prime * hashCode + ((getDriveCacheType() == null) ? 0 : getDriveCacheType().hashCode()); hashCode = prime * hashCode + ((getDataCompressionType() == null) ? 0 : getDataCompressionType().hashCode()); hashCode = prime * hashCode + ((getLogConfiguration() == null) ? 0 : getLogConfiguration().hashCode()); hashCode = prime * hashCode + ((getRootSquashConfiguration() == null) ? 0 : getRootSquashConfiguration().hashCode()); return hashCode; } @Override public LustreFileSystemConfiguration clone() { try { return (LustreFileSystemConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.fsx.model.transform.LustreFileSystemConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }