Class FileSystem
- java.lang.Object
-
- software.amazon.awssdk.services.fsx.model.FileSystem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FileSystem.Builder,FileSystem>
@Generated("software.amazon.awssdk:codegen") public final class FileSystem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FileSystem.Builder,FileSystem>
A description of a specific Amazon FSx file system.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFileSystem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AdministrativeAction>administrativeActions()A list of administrative actions for the file system that are in process or waiting to be processed.static FileSystem.Builderbuilder()InstantcreationTime()The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.StringdnsName()The Domain Name System (DNS) name for the file system.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FileSystemFailureDetailsfailureDetails()Returns the value of the FailureDetails property for this object.StringfileSystemId()The system-generated, unique 17-digit ID of the file system.FileSystemTypefileSystemType()The type of Amazon FSx file system, which can beLUSTRE,WINDOWS,ONTAP, orOPENZFS.StringfileSystemTypeAsString()The type of Amazon FSx file system, which can beLUSTRE,WINDOWS,ONTAP, orOPENZFS.StringfileSystemTypeVersion()The Lustre version of the Amazon FSx for Lustre file system, which can be2.10,2.12, or2.15.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAdministrativeActions()For responses, this returns true if the service returned a value for the AdministrativeActions property.inthashCode()booleanhasNetworkInterfaceIds()For responses, this returns true if the service returned a value for the NetworkInterfaceIds property.booleanhasSubnetIds()For responses, this returns true if the service returned a value for the SubnetIds property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StringkmsKeyId()The ID of the Key Management Service (KMS) key used to encrypt Amazon FSx file system data.FileSystemLifecyclelifecycle()The lifecycle status of the file system.StringlifecycleAsString()The lifecycle status of the file system.LustreFileSystemConfigurationlustreConfiguration()Returns the value of the LustreConfiguration property for this object.List<String>networkInterfaceIds()The IDs of the elastic network interfaces from which a specific file system is accessible.OntapFileSystemConfigurationontapConfiguration()The configuration for this Amazon FSx for NetApp ONTAP file system.OpenZFSFileSystemConfigurationopenZFSConfiguration()The configuration for this Amazon FSx for OpenZFS file system.StringownerId()The Amazon Web Services account that created the file system.StringresourceARN()The Amazon Resource Name (ARN) of the file system resource.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FileSystem.Builder>serializableBuilderClass()IntegerstorageCapacity()The storage capacity of the file system in gibibytes (GiB).StorageTypestorageType()The type of storage the file system is using.StringstorageTypeAsString()The type of storage the file system is using.List<String>subnetIds()Specifies the IDs of the subnets that the file system is accessible from.List<Tag>tags()The tags to associate with the file system.FileSystem.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvpcId()The ID of the primary virtual private cloud (VPC) for the file system.WindowsFileSystemConfigurationwindowsConfiguration()The configuration for this Amazon FSx for Windows File Server file system.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
ownerId
public final String ownerId()
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.
- Returns:
- 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.
-
creationTime
public final Instant creationTime()
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
- Returns:
- The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
-
fileSystemId
public final String fileSystemId()
The system-generated, unique 17-digit ID of the file system.
- Returns:
- The system-generated, unique 17-digit ID of the file system.
-
fileSystemType
public final FileSystemType fileSystemType()
The type of Amazon FSx file system, which can be
LUSTRE,WINDOWS,ONTAP, orOPENZFS.If the service returns an enum value that is not available in the current SDK version,
fileSystemTypewill returnFileSystemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfileSystemTypeAsString().- Returns:
- The type of Amazon FSx file system, which can be
LUSTRE,WINDOWS,ONTAP, orOPENZFS. - See Also:
FileSystemType
-
fileSystemTypeAsString
public final String fileSystemTypeAsString()
The type of Amazon FSx file system, which can be
LUSTRE,WINDOWS,ONTAP, orOPENZFS.If the service returns an enum value that is not available in the current SDK version,
fileSystemTypewill returnFileSystemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfileSystemTypeAsString().- Returns:
- The type of Amazon FSx file system, which can be
LUSTRE,WINDOWS,ONTAP, orOPENZFS. - See Also:
FileSystemType
-
lifecycle
public final FileSystemLifecycle lifecycle()
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.
If the service returns an enum value that is not available in the current SDK version,
lifecyclewill returnFileSystemLifecycle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlifecycleAsString().- Returns:
- 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.
-
- See Also:
FileSystemLifecycle
-
-
lifecycleAsString
public final String lifecycleAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
lifecyclewill returnFileSystemLifecycle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlifecycleAsString().- Returns:
- 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.
-
- See Also:
FileSystemLifecycle
-
-
failureDetails
public final FileSystemFailureDetails failureDetails()
Returns the value of the FailureDetails property for this object.- Returns:
- The value of the FailureDetails property for this object.
-
storageCapacity
public final Integer storageCapacity()
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
StorageCapacityis outside of the minimum or maximum values.- Returns:
- 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
StorageCapacityis outside of the minimum or maximum values.
-
storageType
public final StorageType storageType()
The type of storage the file system is using. If set to
SSD, the file system uses solid state drive storage. If set toHDD, the file system uses hard disk drive storage.If the service returns an enum value that is not available in the current SDK version,
storageTypewill returnStorageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageTypeAsString().- Returns:
- The type of storage the file system is using. If set to
SSD, the file system uses solid state drive storage. If set toHDD, the file system uses hard disk drive storage. - See Also:
StorageType
-
storageTypeAsString
public final String storageTypeAsString()
The type of storage the file system is using. If set to
SSD, the file system uses solid state drive storage. If set toHDD, the file system uses hard disk drive storage.If the service returns an enum value that is not available in the current SDK version,
storageTypewill returnStorageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageTypeAsString().- Returns:
- The type of storage the file system is using. If set to
SSD, the file system uses solid state drive storage. If set toHDD, the file system uses hard disk drive storage. - See Also:
StorageType
-
vpcId
public final String vpcId()
The ID of the primary virtual private cloud (VPC) for the file system.
- Returns:
- The ID of the primary virtual private cloud (VPC) for the file system.
-
hasSubnetIds
public final boolean hasSubnetIds()
For responses, this returns true if the service returned a value for the SubnetIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
subnetIds
public final List<String> subnetIds()
Specifies the IDs of the subnets that the file system is accessible from. For the Amazon FSx Windows and ONTAP
MULTI_AZ_1file 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 thePreferredSubnetIDproperty. 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_1Windows and ONTAP file systems, the file system endpoint is available in thePreferredSubnetID.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSubnetIds()method.- Returns:
- Specifies the IDs of the subnets that the file system is accessible from. For the Amazon FSx Windows and
ONTAP
MULTI_AZ_1file 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 thePreferredSubnetIDproperty. 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_1Windows and ONTAP file systems, the file system endpoint is available in thePreferredSubnetID.
-
hasNetworkInterfaceIds
public final boolean hasNetworkInterfaceIds()
For responses, this returns true if the service returned a value for the NetworkInterfaceIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
networkInterfaceIds
public final List<String> networkInterfaceIds()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNetworkInterfaceIds()method.- Returns:
- 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.
-
dnsName
public final String dnsName()
The Domain Name System (DNS) name for the file system.
- Returns:
- The Domain Name System (DNS) name for the file system.
-
kmsKeyId
public final String kmsKeyId()
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_1andPERSISTENT_2deployment types only.SCRATCH_1andSCRATCH_2types 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
- Returns:
- 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_1andPERSISTENT_2deployment types only.SCRATCH_1andSCRATCH_2types 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
-
-
-
resourceARN
public final String resourceARN()
The Amazon Resource Name (ARN) of the file system resource.
- Returns:
- The Amazon Resource Name (ARN) of the file system resource.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final List<Tag> 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- 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.
-
windowsConfiguration
public final WindowsFileSystemConfiguration windowsConfiguration()
The configuration for this Amazon FSx for Windows File Server file system.
- Returns:
- The configuration for this Amazon FSx for Windows File Server file system.
-
lustreConfiguration
public final LustreFileSystemConfiguration lustreConfiguration()
Returns the value of the LustreConfiguration property for this object.- Returns:
- The value of the LustreConfiguration property for this object.
-
hasAdministrativeActions
public final boolean hasAdministrativeActions()
For responses, this returns true if the service returned a value for the AdministrativeActions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
administrativeActions
public final List<AdministrativeAction> administrativeActions()
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
UpdateFileSystemoperation.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdministrativeActions()method.- Returns:
- 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
UpdateFileSystemoperation.
-
ontapConfiguration
public final OntapFileSystemConfiguration ontapConfiguration()
The configuration for this Amazon FSx for NetApp ONTAP file system.
- Returns:
- The configuration for this Amazon FSx for NetApp ONTAP file system.
-
fileSystemTypeVersion
public final String fileSystemTypeVersion()
The Lustre version of the Amazon FSx for Lustre file system, which can be
2.10,2.12, or2.15.- Returns:
- The Lustre version of the Amazon FSx for Lustre file system, which can be
2.10,2.12, or2.15.
-
openZFSConfiguration
public final OpenZFSFileSystemConfiguration openZFSConfiguration()
The configuration for this Amazon FSx for OpenZFS file system.
- Returns:
- The configuration for this Amazon FSx for OpenZFS file system.
-
toBuilder
public FileSystem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FileSystem.Builder,FileSystem>
-
builder
public static FileSystem.Builder builder()
-
serializableBuilderClass
public static Class<? extends FileSystem.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-