Struct aws_sdk_fsx::types::builders::FileSystemBuilder
source · #[non_exhaustive]pub struct FileSystemBuilder { /* private fields */ }
Expand description
A builder for FileSystem
.
Implementations§
source§impl FileSystemBuilder
impl FileSystemBuilder
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account that created the file system. If the file system was created by a user in IAM Identity Center, the Amazon Web Services account to which the IAM user belongs is the owner.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account that created the file system. If the file system was created by a user in IAM Identity Center, the Amazon Web Services account to which the IAM user belongs is the owner.
sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
The Amazon Web Services account that created the file system. If the file system was created by a user in IAM Identity Center, the Amazon Web Services account to which the IAM user belongs is the owner.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn file_system_id(self, input: impl Into<String>) -> Self
pub fn file_system_id(self, input: impl Into<String>) -> Self
The system-generated, unique 17-digit ID of the file system.
sourcepub fn set_file_system_id(self, input: Option<String>) -> Self
pub fn set_file_system_id(self, input: Option<String>) -> Self
The system-generated, unique 17-digit ID of the file system.
sourcepub fn get_file_system_id(&self) -> &Option<String>
pub fn get_file_system_id(&self) -> &Option<String>
The system-generated, unique 17-digit ID of the file system.
sourcepub fn file_system_type(self, input: FileSystemType) -> Self
pub fn file_system_type(self, input: FileSystemType) -> Self
The type of Amazon FSx file system, which can be LUSTRE
, WINDOWS
, ONTAP
, or OPENZFS
.
sourcepub fn set_file_system_type(self, input: Option<FileSystemType>) -> Self
pub fn set_file_system_type(self, input: Option<FileSystemType>) -> Self
The type of Amazon FSx file system, which can be LUSTRE
, WINDOWS
, ONTAP
, or OPENZFS
.
sourcepub fn get_file_system_type(&self) -> &Option<FileSystemType>
pub fn get_file_system_type(&self) -> &Option<FileSystemType>
The type of Amazon FSx file system, which can be LUSTRE
, WINDOWS
, ONTAP
, or OPENZFS
.
sourcepub fn lifecycle(self, input: FileSystemLifecycle) -> Self
pub fn lifecycle(self, input: FileSystemLifecycle) -> Self
The lifecycle status of the file system. The following are the possible values and what they mean:
-
AVAILABLE
- The file system is in a healthy state, and is reachable and available for use. -
CREATING
- Amazon FSx is creating the new file system. -
DELETING
- Amazon FSx is deleting an existing file system. -
FAILED
- An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system. -
MISCONFIGURED
- The file system is in a failed but recoverable state. -
MISCONFIGURED_UNAVAILABLE
- (Amazon FSx for Windows File Server only) The file system is currently unavailable due to a change in your Active Directory configuration. -
UPDATING
- The file system is undergoing a customer-initiated update.
sourcepub fn set_lifecycle(self, input: Option<FileSystemLifecycle>) -> Self
pub fn set_lifecycle(self, input: Option<FileSystemLifecycle>) -> Self
The lifecycle status of the file system. The following are the possible values and what they mean:
-
AVAILABLE
- The file system is in a healthy state, and is reachable and available for use. -
CREATING
- Amazon FSx is creating the new file system. -
DELETING
- Amazon FSx is deleting an existing file system. -
FAILED
- An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system. -
MISCONFIGURED
- The file system is in a failed but recoverable state. -
MISCONFIGURED_UNAVAILABLE
- (Amazon FSx for Windows File Server only) The file system is currently unavailable due to a change in your Active Directory configuration. -
UPDATING
- The file system is undergoing a customer-initiated update.
sourcepub fn get_lifecycle(&self) -> &Option<FileSystemLifecycle>
pub fn get_lifecycle(&self) -> &Option<FileSystemLifecycle>
The lifecycle status of the file system. The following are the possible values and what they mean:
-
AVAILABLE
- The file system is in a healthy state, and is reachable and available for use. -
CREATING
- Amazon FSx is creating the new file system. -
DELETING
- Amazon FSx is deleting an existing file system. -
FAILED
- An existing file system has experienced an unrecoverable failure. When creating a new file system, Amazon FSx was unable to create the file system. -
MISCONFIGURED
- The file system is in a failed but recoverable state. -
MISCONFIGURED_UNAVAILABLE
- (Amazon FSx for Windows File Server only) The file system is currently unavailable due to a change in your Active Directory configuration. -
UPDATING
- The file system is undergoing a customer-initiated update.
sourcepub fn failure_details(self, input: FileSystemFailureDetails) -> Self
pub fn failure_details(self, input: FileSystemFailureDetails) -> Self
A structure providing details of any failures that occurred.
sourcepub fn set_failure_details(
self,
input: Option<FileSystemFailureDetails>
) -> Self
pub fn set_failure_details( self, input: Option<FileSystemFailureDetails> ) -> Self
A structure providing details of any failures that occurred.
sourcepub fn get_failure_details(&self) -> &Option<FileSystemFailureDetails>
pub fn get_failure_details(&self) -> &Option<FileSystemFailureDetails>
A structure providing details of any failures that occurred.
sourcepub fn storage_capacity(self, input: i32) -> Self
pub fn storage_capacity(self, input: i32) -> Self
The storage capacity of the file system in gibibytes (GiB).
Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of StorageCapacity
is outside of the minimum or maximum values.
sourcepub fn set_storage_capacity(self, input: Option<i32>) -> Self
pub fn set_storage_capacity(self, input: Option<i32>) -> Self
The storage capacity of the file system in gibibytes (GiB).
Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of StorageCapacity
is outside of the minimum or maximum values.
sourcepub fn get_storage_capacity(&self) -> &Option<i32>
pub fn get_storage_capacity(&self) -> &Option<i32>
The storage capacity of the file system in gibibytes (GiB).
Amazon FSx responds with an HTTP status code 400 (Bad Request) if the value of StorageCapacity
is outside of the minimum or maximum values.
sourcepub fn storage_type(self, input: StorageType) -> Self
pub fn storage_type(self, input: StorageType) -> Self
The type of storage the file system is using. If set to SSD
, the file system uses solid state drive storage. If set to HDD
, the file system uses hard disk drive storage.
sourcepub fn set_storage_type(self, input: Option<StorageType>) -> Self
pub fn set_storage_type(self, input: Option<StorageType>) -> Self
The type of storage the file system is using. If set to SSD
, the file system uses solid state drive storage. If set to HDD
, the file system uses hard disk drive storage.
sourcepub fn get_storage_type(&self) -> &Option<StorageType>
pub fn get_storage_type(&self) -> &Option<StorageType>
The type of storage the file system is using. If set to SSD
, the file system uses solid state drive storage. If set to HDD
, the file system uses hard disk drive storage.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The ID of the primary virtual private cloud (VPC) for the file system.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the primary virtual private cloud (VPC) for the file system.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of the primary virtual private cloud (VPC) for the file system.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
Specifies the IDs of the subnets that the file system is accessible from. For the Amazon FSx Windows and ONTAP MULTI_AZ_1
file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID
property. All other file systems have only one subnet ID.
For FSx for Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the file system's endpoint. For MULTI_AZ_1
Windows and ONTAP file systems, the file system endpoint is available in the PreferredSubnetID
.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
Specifies the IDs of the subnets that the file system is accessible from. For the Amazon FSx Windows and ONTAP MULTI_AZ_1
file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID
property. All other file systems have only one subnet ID.
For FSx for Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the file system's endpoint. For MULTI_AZ_1
Windows and ONTAP file systems, the file system endpoint is available in the PreferredSubnetID
.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
Specifies the IDs of the subnets that the file system is accessible from. For the Amazon FSx Windows and ONTAP MULTI_AZ_1
file system deployment type, there are two subnet IDs, one for the preferred file server and one for the standby file server. The preferred file server subnet identified in the PreferredSubnetID
property. All other file systems have only one subnet ID.
For FSx for Lustre file systems, and Single-AZ Windows file systems, this is the ID of the subnet that contains the file system's endpoint. For MULTI_AZ_1
Windows and ONTAP file systems, the file system endpoint is available in the PreferredSubnetID
.
sourcepub fn network_interface_ids(self, input: impl Into<String>) -> Self
pub fn network_interface_ids(self, input: impl Into<String>) -> Self
Appends an item to network_interface_ids
.
To override the contents of this collection use set_network_interface_ids
.
The IDs of the elastic network interfaces from which a specific file system is accessible. The elastic network interface is automatically created in the same virtual private cloud (VPC) that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.
For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.
sourcepub fn set_network_interface_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_network_interface_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the elastic network interfaces from which a specific file system is accessible. The elastic network interface is automatically created in the same virtual private cloud (VPC) that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.
For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.
sourcepub fn get_network_interface_ids(&self) -> &Option<Vec<String>>
pub fn get_network_interface_ids(&self) -> &Option<Vec<String>>
The IDs of the elastic network interfaces from which a specific file system is accessible. The elastic network interface is automatically created in the same virtual private cloud (VPC) that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.
For an Amazon FSx for Windows File Server file system, you can have one network interface ID. For an Amazon FSx for Lustre file system, you can have more than one.
sourcepub fn dns_name(self, input: impl Into<String>) -> Self
pub fn dns_name(self, input: impl Into<String>) -> Self
The Domain Name System (DNS) name for the file system.
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The Domain Name System (DNS) name for the file system.
sourcepub fn get_dns_name(&self) -> &Option<String>
pub fn get_dns_name(&self) -> &Option<String>
The Domain Name System (DNS) name for the file system.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the Key Management Service (KMS) key used to encrypt Amazon FSx file system data. Used as follows with Amazon FSx file system types:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the Key Management Service (KMS) key used to encrypt Amazon FSx file system data. Used as follows with Amazon FSx file system types:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ID of the Key Management Service (KMS) key used to encrypt Amazon FSx file system data. Used as follows with Amazon FSx file system types:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the file system resource.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the file system resource.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the file system resource.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags to associate with the file system. For more information, see Tagging your Amazon FSx resources in the Amazon FSx for Lustre User Guide.
The tags to associate with the file system. For more information, see Tagging your Amazon FSx resources in the Amazon FSx for Lustre User Guide.
The tags to associate with the file system. For more information, see Tagging your Amazon FSx resources in the Amazon FSx for Lustre User Guide.
sourcepub fn windows_configuration(
self,
input: WindowsFileSystemConfiguration
) -> Self
pub fn windows_configuration( self, input: WindowsFileSystemConfiguration ) -> Self
The configuration for this Amazon FSx for Windows File Server file system.
sourcepub fn set_windows_configuration(
self,
input: Option<WindowsFileSystemConfiguration>
) -> Self
pub fn set_windows_configuration( self, input: Option<WindowsFileSystemConfiguration> ) -> Self
The configuration for this Amazon FSx for Windows File Server file system.
sourcepub fn get_windows_configuration(
&self
) -> &Option<WindowsFileSystemConfiguration>
pub fn get_windows_configuration( &self ) -> &Option<WindowsFileSystemConfiguration>
The configuration for this Amazon FSx for Windows File Server file system.
sourcepub fn lustre_configuration(self, input: LustreFileSystemConfiguration) -> Self
pub fn lustre_configuration(self, input: LustreFileSystemConfiguration) -> Self
The configuration for the Amazon FSx for Lustre file system.
sourcepub fn set_lustre_configuration(
self,
input: Option<LustreFileSystemConfiguration>
) -> Self
pub fn set_lustre_configuration( self, input: Option<LustreFileSystemConfiguration> ) -> Self
The configuration for the Amazon FSx for Lustre file system.
sourcepub fn get_lustre_configuration(&self) -> &Option<LustreFileSystemConfiguration>
pub fn get_lustre_configuration(&self) -> &Option<LustreFileSystemConfiguration>
The configuration for the Amazon FSx for Lustre file system.
sourcepub fn administrative_actions(self, input: AdministrativeAction) -> Self
pub fn administrative_actions(self, input: AdministrativeAction) -> Self
Appends an item to administrative_actions
.
To override the contents of this collection use set_administrative_actions
.
A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system that you have initiated using the UpdateFileSystem
operation.
sourcepub fn set_administrative_actions(
self,
input: Option<Vec<AdministrativeAction>>
) -> Self
pub fn set_administrative_actions( self, input: Option<Vec<AdministrativeAction>> ) -> Self
A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system that you have initiated using the UpdateFileSystem
operation.
sourcepub fn get_administrative_actions(&self) -> &Option<Vec<AdministrativeAction>>
pub fn get_administrative_actions(&self) -> &Option<Vec<AdministrativeAction>>
A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system that you have initiated using the UpdateFileSystem
operation.
sourcepub fn ontap_configuration(self, input: OntapFileSystemConfiguration) -> Self
pub fn ontap_configuration(self, input: OntapFileSystemConfiguration) -> Self
The configuration for this Amazon FSx for NetApp ONTAP file system.
sourcepub fn set_ontap_configuration(
self,
input: Option<OntapFileSystemConfiguration>
) -> Self
pub fn set_ontap_configuration( self, input: Option<OntapFileSystemConfiguration> ) -> Self
The configuration for this Amazon FSx for NetApp ONTAP file system.
sourcepub fn get_ontap_configuration(&self) -> &Option<OntapFileSystemConfiguration>
pub fn get_ontap_configuration(&self) -> &Option<OntapFileSystemConfiguration>
The configuration for this Amazon FSx for NetApp ONTAP file system.
sourcepub fn file_system_type_version(self, input: impl Into<String>) -> Self
pub fn file_system_type_version(self, input: impl Into<String>) -> Self
The Lustre version of the Amazon FSx for Lustre file system, which can be 2.10
, 2.12
, or 2.15
.
sourcepub fn set_file_system_type_version(self, input: Option<String>) -> Self
pub fn set_file_system_type_version(self, input: Option<String>) -> Self
The Lustre version of the Amazon FSx for Lustre file system, which can be 2.10
, 2.12
, or 2.15
.
sourcepub fn get_file_system_type_version(&self) -> &Option<String>
pub fn get_file_system_type_version(&self) -> &Option<String>
The Lustre version of the Amazon FSx for Lustre file system, which can be 2.10
, 2.12
, or 2.15
.
sourcepub fn open_zfs_configuration(
self,
input: OpenZfsFileSystemConfiguration
) -> Self
pub fn open_zfs_configuration( self, input: OpenZfsFileSystemConfiguration ) -> Self
The configuration for this Amazon FSx for OpenZFS file system.
sourcepub fn set_open_zfs_configuration(
self,
input: Option<OpenZfsFileSystemConfiguration>
) -> Self
pub fn set_open_zfs_configuration( self, input: Option<OpenZfsFileSystemConfiguration> ) -> Self
The configuration for this Amazon FSx for OpenZFS file system.
sourcepub fn get_open_zfs_configuration(
&self
) -> &Option<OpenZfsFileSystemConfiguration>
pub fn get_open_zfs_configuration( &self ) -> &Option<OpenZfsFileSystemConfiguration>
The configuration for this Amazon FSx for OpenZFS file system.
sourcepub fn build(self) -> FileSystem
pub fn build(self) -> FileSystem
Consumes the builder and constructs a FileSystem
.
Trait Implementations§
source§impl Clone for FileSystemBuilder
impl Clone for FileSystemBuilder
source§fn clone(&self) -> FileSystemBuilder
fn clone(&self) -> FileSystemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FileSystemBuilder
impl Debug for FileSystemBuilder
source§impl Default for FileSystemBuilder
impl Default for FileSystemBuilder
source§fn default() -> FileSystemBuilder
fn default() -> FileSystemBuilder
source§impl PartialEq for FileSystemBuilder
impl PartialEq for FileSystemBuilder
source§fn eq(&self, other: &FileSystemBuilder) -> bool
fn eq(&self, other: &FileSystemBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.