Class CreateFileSystemFromBackupRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.fsx.model.FSxRequest
-
- software.amazon.awssdk.services.fsx.model.CreateFileSystemFromBackupRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateFileSystemFromBackupRequest.Builder,CreateFileSystemFromBackupRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateFileSystemFromBackupRequest extends FSxRequest implements ToCopyableBuilder<CreateFileSystemFromBackupRequest.Builder,CreateFileSystemFromBackupRequest>
The request object for the
CreateFileSystemFromBackupoperation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateFileSystemFromBackupRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbackupId()Returns the value of the BackupId property for this object.static CreateFileSystemFromBackupRequest.Builderbuilder()StringclientRequestToken()A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfileSystemTypeVersion()Sets the version for the Amazon FSx for Lustre file system that you're creating from a backup.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasSecurityGroupIds()For responses, this returns true if the service returned a value for the SecurityGroupIds 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()Returns the value of the KmsKeyId property for this object.CreateFileSystemLustreConfigurationlustreConfiguration()Returns the value of the LustreConfiguration property for this object.CreateFileSystemOpenZFSConfigurationopenZFSConfiguration()The OpenZFS configuration for the file system that's being created.List<SdkField<?>>sdkFields()List<String>securityGroupIds()A list of IDs for the security groups that apply to the specified network interfaces created for file system access.static Class<? extends CreateFileSystemFromBackupRequest.Builder>serializableBuilderClass()IntegerstorageCapacity()Sets the storage capacity of the OpenZFS file system that you're creating from a backup, in gibibytes (GiB).StorageTypestorageType()Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup.StringstorageTypeAsString()Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup.List<String>subnetIds()Specifies the IDs of the subnets that the file system will be accessible from.List<Tag>tags()The tags to be applied to the file system at file system creation.CreateFileSystemFromBackupRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.CreateFileSystemWindowsConfigurationwindowsConfiguration()The configuration for this Microsoft Windows file system.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
backupId
public final String backupId()
Returns the value of the BackupId property for this object.- Returns:
- The value of the BackupId property for this object.
-
clientRequestToken
public final String clientRequestToken()
A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
- Returns:
- A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
-
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 will be accessible from. For Windows
MULTI_AZ_1file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using theWindowsConfiguration > PreferredSubnetIDproperty.Windows
SINGLE_AZ_1andSINGLE_AZ_2file system deployment types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.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 will be accessible from. For Windows
MULTI_AZ_1file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using theWindowsConfiguration > PreferredSubnetIDproperty.Windows
SINGLE_AZ_1andSINGLE_AZ_2file system deployment types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.
-
hasSecurityGroupIds
public final boolean hasSecurityGroupIds()
For responses, this returns true if the service returned a value for the SecurityGroupIds 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.
-
securityGroupIds
public final List<String> securityGroupIds()
A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn't returned in later
DescribeFileSystemrequests.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
hasSecurityGroupIds()method.- Returns:
- A list of IDs for the security groups that apply to the specified network interfaces created for file
system access. These security groups apply to all network interfaces. This value isn't returned in later
DescribeFileSystemrequests.
-
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 be applied to the file system at file system creation. The key value of the
Nametag appears in the console as the file system name.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 be applied to the file system at file system creation. The key value of the
Nametag appears in the console as the file system name.
-
windowsConfiguration
public final CreateFileSystemWindowsConfiguration windowsConfiguration()
The configuration for this Microsoft Windows file system.
- Returns:
- The configuration for this Microsoft Windows file system.
-
lustreConfiguration
public final CreateFileSystemLustreConfiguration lustreConfiguration()
Returns the value of the LustreConfiguration property for this object.- Returns:
- The value of the LustreConfiguration property for this object.
-
storageType
public final StorageType storageType()
Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are
SSDandHDD.-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types. -
Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1FSx for Windows File Server file system deployment types.
The default value is
SSD.HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.
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:
- Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid
values are
SSDandHDD.-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types. -
Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1FSx for Windows File Server file system deployment types.
The default value is
SSD.HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.
-
- See Also:
StorageType
-
-
storageTypeAsString
public final String storageTypeAsString()
Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are
SSDandHDD.-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types. -
Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1FSx for Windows File Server file system deployment types.
The default value is
SSD.HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.
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:
- Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid
values are
SSDandHDD.-
Set to
SSDto use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types. -
Set to
HDDto use hard disk drive storage. HDD is supported onSINGLE_AZ_2andMULTI_AZ_1FSx for Windows File Server file system deployment types.
The default value is
SSD.HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.
-
- See Also:
StorageType
-
-
kmsKeyId
public final String kmsKeyId()
Returns the value of the KmsKeyId property for this object.- Returns:
- The value of the KmsKeyId property for this object.
-
fileSystemTypeVersion
public final String fileSystemTypeVersion()
Sets the version for the Amazon FSx for Lustre file system that you're creating from a backup. Valid values are
2.10,2.12, and2.15.You don't need to specify
FileSystemTypeVersionbecause it will be applied using the backup'sFileSystemTypeVersionsetting. If you choose to specifyFileSystemTypeVersionwhen creating from backup, the value must match the backup'sFileSystemTypeVersionsetting.- Returns:
- Sets the version for the Amazon FSx for Lustre file system that you're creating from a backup. Valid
values are
2.10,2.12, and2.15.You don't need to specify
FileSystemTypeVersionbecause it will be applied using the backup'sFileSystemTypeVersionsetting. If you choose to specifyFileSystemTypeVersionwhen creating from backup, the value must match the backup'sFileSystemTypeVersionsetting.
-
openZFSConfiguration
public final CreateFileSystemOpenZFSConfiguration openZFSConfiguration()
The OpenZFS configuration for the file system that's being created.
- Returns:
- The OpenZFS configuration for the file system that's being created.
-
storageCapacity
public final Integer storageCapacity()
Sets the storage capacity of the OpenZFS file system that you're creating from a backup, in gibibytes (GiB). Valid values are from 64 GiB up to 524,288 GiB (512 TiB). However, the value that you specify must be equal to or greater than the backup's storage capacity value. If you don't use the
StorageCapacityparameter, the default is the backup'sStorageCapacityvalue.If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
StorageCapacityvalue. If you provide any other value, Amazon FSx responds with with an HTTP status code 400 Bad Request.- Returns:
- Sets the storage capacity of the OpenZFS file system that you're creating from a backup, in gibibytes
(GiB). Valid values are from 64 GiB up to 524,288 GiB (512 TiB). However, the value that you specify must
be equal to or greater than the backup's storage capacity value. If you don't use the
StorageCapacityparameter, the default is the backup'sStorageCapacityvalue.If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
StorageCapacityvalue. If you provide any other value, Amazon FSx responds with with an HTTP status code 400 Bad Request.
-
toBuilder
public CreateFileSystemFromBackupRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateFileSystemFromBackupRequest.Builder,CreateFileSystemFromBackupRequest>- Specified by:
toBuilderin classFSxRequest
-
builder
public static CreateFileSystemFromBackupRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateFileSystemFromBackupRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-