com.amazonaws.services.fsx.model.CreateFileSystemFromBackupRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-fsx Show documentation
/*
* Copyright 2019-2024 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.AmazonWebServiceRequest;
/**
*
* The request object for the CreateFileSystemFromBackup
operation.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateFileSystemFromBackupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
private String backupId;
/**
*
* 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.
*
*/
private String clientRequestToken;
/**
*
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the
* WindowsConfiguration > PreferredSubnetID
property.
*
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
*
*/
private java.util.List subnetIds;
/**
*
* 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
* DescribeFileSystem
requests.
*
*/
private java.util.List securityGroupIds;
/**
*
* The tags to be applied to the file system at file system creation. The key value of the Name
tag
* appears in the console as the file system name.
*
*/
private java.util.List tags;
/**
*
* The configuration for this Microsoft Windows file system.
*
*/
private CreateFileSystemWindowsConfiguration windowsConfiguration;
private CreateFileSystemLustreConfiguration lustreConfiguration;
/**
*
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are
* SSD
and HDD
.
*
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment
* types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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.
*
*
*/
private String storageType;
private String kmsKeyId;
/**
*
* 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
, and 2.15
.
*
*
* You don't need to specify FileSystemTypeVersion
because it will be applied using the backup's
* FileSystemTypeVersion
setting. If you choose to specify FileSystemTypeVersion
when
* creating from backup, the value must match the backup's FileSystemTypeVersion
setting.
*
*/
private String fileSystemTypeVersion;
/**
*
* The OpenZFS configuration for the file system that's being created.
*
*/
private CreateFileSystemOpenZFSConfiguration openZFSConfiguration;
/**
*
* 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 StorageCapacity
parameter,
* the default is the backup's StorageCapacity
value.
*
*
* If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
* StorageCapacity
value. If you provide any other value, Amazon FSx responds with with an HTTP status
* code 400 Bad Request.
*
*/
private Integer storageCapacity;
/**
* @param backupId
*/
public void setBackupId(String backupId) {
this.backupId = backupId;
}
/**
* @return
*/
public String getBackupId() {
return this.backupId;
}
/**
* @param backupId
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withBackupId(String backupId) {
setBackupId(backupId);
return this;
}
/**
*
* 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.
*
*
* @param 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.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = 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.
*
*
* @return 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.
*/
public String getClientRequestToken() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
return this;
}
/**
*
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the
* WindowsConfiguration > PreferredSubnetID
property.
*
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
*
*
* @return Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the WindowsConfiguration > PreferredSubnetID
property.
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
*/
public java.util.List getSubnetIds() {
return subnetIds;
}
/**
*
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the
* WindowsConfiguration > PreferredSubnetID
property.
*
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
*
*
* @param subnetIds
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the WindowsConfiguration > PreferredSubnetID
property.
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
*/
public void setSubnetIds(java.util.Collection subnetIds) {
if (subnetIds == null) {
this.subnetIds = null;
return;
}
this.subnetIds = new java.util.ArrayList(subnetIds);
}
/**
*
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the
* WindowsConfiguration > PreferredSubnetID
property.
*
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param subnetIds
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the WindowsConfiguration > PreferredSubnetID
property.
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withSubnetIds(String... subnetIds) {
if (this.subnetIds == null) {
setSubnetIds(new java.util.ArrayList(subnetIds.length));
}
for (String ele : subnetIds) {
this.subnetIds.add(ele);
}
return this;
}
/**
*
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the
* WindowsConfiguration > PreferredSubnetID
property.
*
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
*
*
* @param subnetIds
* Specifies the IDs of the subnets that the file system will be accessible from. For Windows
* MULTI_AZ_1
file 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 the WindowsConfiguration > PreferredSubnetID
property.
*
* Windows SINGLE_AZ_1
and SINGLE_AZ_2
file 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withSubnetIds(java.util.Collection subnetIds) {
setSubnetIds(subnetIds);
return this;
}
/**
*
* 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
* DescribeFileSystem
requests.
*
*
* @return 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
* DescribeFileSystem
requests.
*/
public java.util.List getSecurityGroupIds() {
return 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
* DescribeFileSystem
requests.
*
*
* @param 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
* DescribeFileSystem
requests.
*/
public void setSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
return;
}
this.securityGroupIds = new java.util.ArrayList(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
* DescribeFileSystem
requests.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param 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
* DescribeFileSystem
requests.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withSecurityGroupIds(String... securityGroupIds) {
if (this.securityGroupIds == null) {
setSecurityGroupIds(new java.util.ArrayList(securityGroupIds.length));
}
for (String ele : securityGroupIds) {
this.securityGroupIds.add(ele);
}
return this;
}
/**
*
* 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
* DescribeFileSystem
requests.
*
*
* @param 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
* DescribeFileSystem
requests.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withSecurityGroupIds(java.util.Collection securityGroupIds) {
setSecurityGroupIds(securityGroupIds);
return this;
}
/**
*
* The tags to be applied to the file system at file system creation. The key value of the Name
tag
* appears in the console as the file system name.
*
*
* @return The tags to be applied to the file system at file system creation. The key value of the Name
* tag appears in the console as the file system name.
*/
public java.util.List getTags() {
return tags;
}
/**
*
* The tags to be applied to the file system at file system creation. The key value of the Name
tag
* appears in the console as the file system name.
*
*
* @param tags
* The tags to be applied to the file system at file system creation. The key value of the Name
* tag appears in the console as the file system name.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new java.util.ArrayList(tags);
}
/**
*
* The tags to be applied to the file system at file system creation. The key value of the Name
tag
* appears in the console as the file system name.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* The tags to be applied to the file system at file system creation. The key value of the Name
* tag appears in the console as the file system name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* The tags to be applied to the file system at file system creation. The key value of the Name
tag
* appears in the console as the file system name.
*
*
* @param tags
* The tags to be applied to the file system at file system creation. The key value of the Name
* tag appears in the console as the file system name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The configuration for this Microsoft Windows file system.
*
*
* @param windowsConfiguration
* The configuration for this Microsoft Windows file system.
*/
public void setWindowsConfiguration(CreateFileSystemWindowsConfiguration windowsConfiguration) {
this.windowsConfiguration = windowsConfiguration;
}
/**
*
* The configuration for this Microsoft Windows file system.
*
*
* @return The configuration for this Microsoft Windows file system.
*/
public CreateFileSystemWindowsConfiguration getWindowsConfiguration() {
return this.windowsConfiguration;
}
/**
*
* The configuration for this Microsoft Windows file system.
*
*
* @param windowsConfiguration
* The configuration for this Microsoft Windows file system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withWindowsConfiguration(CreateFileSystemWindowsConfiguration windowsConfiguration) {
setWindowsConfiguration(windowsConfiguration);
return this;
}
/**
* @param lustreConfiguration
*/
public void setLustreConfiguration(CreateFileSystemLustreConfiguration lustreConfiguration) {
this.lustreConfiguration = lustreConfiguration;
}
/**
* @return
*/
public CreateFileSystemLustreConfiguration getLustreConfiguration() {
return this.lustreConfiguration;
}
/**
* @param lustreConfiguration
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withLustreConfiguration(CreateFileSystemLustreConfiguration lustreConfiguration) {
setLustreConfiguration(lustreConfiguration);
return this;
}
/**
*
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are
* SSD
and HDD
.
*
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment
* types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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.
*
*
*
* @param storageType
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid
* values are SSD
and HDD
.
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS
* deployment types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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 StorageType
*/
public void setStorageType(String storageType) {
this.storageType = storageType;
}
/**
*
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are
* SSD
and HDD
.
*
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment
* types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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.
*
*
*
* @return Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid
* values are SSD
and HDD
.
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS
* deployment types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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 StorageType
*/
public String getStorageType() {
return this.storageType;
}
/**
*
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are
* SSD
and HDD
.
*
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment
* types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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.
*
*
*
* @param storageType
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid
* values are SSD
and HDD
.
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS
* deployment types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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.
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StorageType
*/
public CreateFileSystemFromBackupRequest withStorageType(String storageType) {
setStorageType(storageType);
return this;
}
/**
*
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are
* SSD
and HDD
.
*
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment
* types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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.
*
*
*
* @param storageType
* Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid
* values are SSD
and HDD
.
*
* -
*
* Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS
* deployment types.
*
*
* -
*
* Set to HDD
to use hard disk drive storage. HDD is supported on SINGLE_AZ_2
and
* MULTI_AZ_1
FSx 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.
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StorageType
*/
public CreateFileSystemFromBackupRequest withStorageType(StorageType storageType) {
this.storageType = storageType.toString();
return this;
}
/**
* @param kmsKeyId
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
* @return
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
* @param kmsKeyId
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* 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
, and 2.15
.
*
*
* You don't need to specify FileSystemTypeVersion
because it will be applied using the backup's
* FileSystemTypeVersion
setting. If you choose to specify FileSystemTypeVersion
when
* creating from backup, the value must match the backup's FileSystemTypeVersion
setting.
*
*
* @param 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
, and 2.15
.
*
* You don't need to specify FileSystemTypeVersion
because it will be applied using the backup's
* FileSystemTypeVersion
setting. If you choose to specify FileSystemTypeVersion
* when creating from backup, the value must match the backup's FileSystemTypeVersion
setting.
*/
public void setFileSystemTypeVersion(String fileSystemTypeVersion) {
this.fileSystemTypeVersion = 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
, and 2.15
.
*
*
* You don't need to specify FileSystemTypeVersion
because it will be applied using the backup's
* FileSystemTypeVersion
setting. If you choose to specify FileSystemTypeVersion
when
* creating from backup, the value must match the backup's FileSystemTypeVersion
setting.
*
*
* @return 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
, and 2.15
.
*
* You don't need to specify FileSystemTypeVersion
because it will be applied using the
* backup's FileSystemTypeVersion
setting. If you choose to specify
* FileSystemTypeVersion
when creating from backup, the value must match the backup's
* FileSystemTypeVersion
setting.
*/
public String getFileSystemTypeVersion() {
return this.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
, and 2.15
.
*
*
* You don't need to specify FileSystemTypeVersion
because it will be applied using the backup's
* FileSystemTypeVersion
setting. If you choose to specify FileSystemTypeVersion
when
* creating from backup, the value must match the backup's FileSystemTypeVersion
setting.
*
*
* @param 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
, and 2.15
.
*
* You don't need to specify FileSystemTypeVersion
because it will be applied using the backup's
* FileSystemTypeVersion
setting. If you choose to specify FileSystemTypeVersion
* when creating from backup, the value must match the backup's FileSystemTypeVersion
setting.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withFileSystemTypeVersion(String fileSystemTypeVersion) {
setFileSystemTypeVersion(fileSystemTypeVersion);
return this;
}
/**
*
* The OpenZFS configuration for the file system that's being created.
*
*
* @param openZFSConfiguration
* The OpenZFS configuration for the file system that's being created.
*/
public void setOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration openZFSConfiguration) {
this.openZFSConfiguration = openZFSConfiguration;
}
/**
*
* The OpenZFS configuration for the file system that's being created.
*
*
* @return The OpenZFS configuration for the file system that's being created.
*/
public CreateFileSystemOpenZFSConfiguration getOpenZFSConfiguration() {
return this.openZFSConfiguration;
}
/**
*
* The OpenZFS configuration for the file system that's being created.
*
*
* @param openZFSConfiguration
* The OpenZFS configuration for the file system that's being created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withOpenZFSConfiguration(CreateFileSystemOpenZFSConfiguration openZFSConfiguration) {
setOpenZFSConfiguration(openZFSConfiguration);
return this;
}
/**
*
* 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 StorageCapacity
parameter,
* the default is the backup's StorageCapacity
value.
*
*
* If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
* StorageCapacity
value. If you provide any other value, Amazon FSx responds with with an HTTP status
* code 400 Bad Request.
*
*
* @param 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
* StorageCapacity
parameter, the default is the backup's StorageCapacity
* value.
*
* If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
* StorageCapacity
value. If you provide any other value, Amazon FSx responds with with an HTTP
* status code 400 Bad Request.
*/
public void setStorageCapacity(Integer storageCapacity) {
this.storageCapacity = 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 StorageCapacity
parameter,
* the default is the backup's StorageCapacity
value.
*
*
* If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
* StorageCapacity
value. If you provide any other value, Amazon FSx responds with with an HTTP status
* code 400 Bad Request.
*
*
* @return 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
* StorageCapacity
parameter, the default is the backup's StorageCapacity
* value.
*
* If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
* StorageCapacity
value. If you provide any other value, Amazon FSx responds with with an HTTP
* status code 400 Bad Request.
*/
public Integer getStorageCapacity() {
return this.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 StorageCapacity
parameter,
* the default is the backup's StorageCapacity
value.
*
*
* If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
* StorageCapacity
value. If you provide any other value, Amazon FSx responds with with an HTTP status
* code 400 Bad Request.
*
*
* @param 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
* StorageCapacity
parameter, the default is the backup's StorageCapacity
* value.
*
* If used to create a file system other than OpenZFS, you must provide a value that matches the backup's
* StorageCapacity
value. If you provide any other value, Amazon FSx responds with with an HTTP
* status code 400 Bad Request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemFromBackupRequest withStorageCapacity(Integer storageCapacity) {
setStorageCapacity(storageCapacity);
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 (getBackupId() != null)
sb.append("BackupId: ").append(getBackupId()).append(",");
if (getClientRequestToken() != null)
sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(",");
if (getSubnetIds() != null)
sb.append("SubnetIds: ").append(getSubnetIds()).append(",");
if (getSecurityGroupIds() != null)
sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getWindowsConfiguration() != null)
sb.append("WindowsConfiguration: ").append(getWindowsConfiguration()).append(",");
if (getLustreConfiguration() != null)
sb.append("LustreConfiguration: ").append(getLustreConfiguration()).append(",");
if (getStorageType() != null)
sb.append("StorageType: ").append(getStorageType()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getFileSystemTypeVersion() != null)
sb.append("FileSystemTypeVersion: ").append(getFileSystemTypeVersion()).append(",");
if (getOpenZFSConfiguration() != null)
sb.append("OpenZFSConfiguration: ").append(getOpenZFSConfiguration()).append(",");
if (getStorageCapacity() != null)
sb.append("StorageCapacity: ").append(getStorageCapacity());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateFileSystemFromBackupRequest == false)
return false;
CreateFileSystemFromBackupRequest other = (CreateFileSystemFromBackupRequest) obj;
if (other.getBackupId() == null ^ this.getBackupId() == null)
return false;
if (other.getBackupId() != null && other.getBackupId().equals(this.getBackupId()) == false)
return false;
if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
return false;
if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
return false;
if (other.getSubnetIds() == null ^ this.getSubnetIds() == null)
return false;
if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false)
return false;
if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null)
return false;
if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getWindowsConfiguration() == null ^ this.getWindowsConfiguration() == null)
return false;
if (other.getWindowsConfiguration() != null && other.getWindowsConfiguration().equals(this.getWindowsConfiguration()) == false)
return false;
if (other.getLustreConfiguration() == null ^ this.getLustreConfiguration() == null)
return false;
if (other.getLustreConfiguration() != null && other.getLustreConfiguration().equals(this.getLustreConfiguration()) == false)
return false;
if (other.getStorageType() == null ^ this.getStorageType() == null)
return false;
if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getFileSystemTypeVersion() == null ^ this.getFileSystemTypeVersion() == null)
return false;
if (other.getFileSystemTypeVersion() != null && other.getFileSystemTypeVersion().equals(this.getFileSystemTypeVersion()) == false)
return false;
if (other.getOpenZFSConfiguration() == null ^ this.getOpenZFSConfiguration() == null)
return false;
if (other.getOpenZFSConfiguration() != null && other.getOpenZFSConfiguration().equals(this.getOpenZFSConfiguration()) == false)
return false;
if (other.getStorageCapacity() == null ^ this.getStorageCapacity() == null)
return false;
if (other.getStorageCapacity() != null && other.getStorageCapacity().equals(this.getStorageCapacity()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBackupId() == null) ? 0 : getBackupId().hashCode());
hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getWindowsConfiguration() == null) ? 0 : getWindowsConfiguration().hashCode());
hashCode = prime * hashCode + ((getLustreConfiguration() == null) ? 0 : getLustreConfiguration().hashCode());
hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getFileSystemTypeVersion() == null) ? 0 : getFileSystemTypeVersion().hashCode());
hashCode = prime * hashCode + ((getOpenZFSConfiguration() == null) ? 0 : getOpenZFSConfiguration().hashCode());
hashCode = prime * hashCode + ((getStorageCapacity() == null) ? 0 : getStorageCapacity().hashCode());
return hashCode;
}
@Override
public CreateFileSystemFromBackupRequest clone() {
return (CreateFileSystemFromBackupRequest) super.clone();
}
}