/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elasticfilesystem.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateFileSystemRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation. *
*/ private String creationToken; /** *
* The performance mode of the file system. We recommend generalPurpose
performance mode for most file
* systems. File systems using the maxIO
performance mode can scale to higher levels of aggregate
* throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The
* performance mode can't be changed after the file system has been created.
*
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
* A Boolean value that, if true, creates an encrypted file system. When creating an encrypted file system, you have
* the option of specifying an existing Key Management Service key (KMS key). If you don't specify a KMS key, then
* the default KMS key for Amazon EFS, /aws/elasticfilesystem
, is used to protect the encrypted file
* system.
*
* The ID of the KMS key that you want to use to protect the encrypted file system. This parameter is required only * if you want to use a non-default KMS key. If this parameter is not specified, the default KMS key for Amazon EFS * is used. You can specify a KMS key ID using the following formats: *
*
* Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* ARN - An Amazon Resource Name (ARN) for the key, for example
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* Key alias - A previously created display name for a key, for example alias/projectKey1
.
*
* Key alias ARN - An ARN for a key alias, for example
* arn:aws:kms:us-west-2:444455556666:alias/projectKey1
.
*
* If you use KmsKeyId
, you must set the CreateFileSystemRequest$Encrypted parameter to true.
*
* EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with Amazon EFS file systems. *
*
* Specifies the throughput mode for the file system. The mode can be bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After you
* create the file system, you can decrease your file system's throughput in Provisioned Throughput mode or change
* between the throughput modes, with certain time restrictions. For more information, see Specifying throughput
* with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
*
* The throughput, measured in MiB/s, that you want to provision for a file system that you're creating. Valid
* values are 1-1024. Required if ThroughputMode
is set to provisioned
. The upper limit
* for throughput is 1024 MiB/s. To increase this limit, contact Amazon Web Services Support. For more information,
* see Amazon EFS quotas that you can
* increase in the Amazon EFS User Guide.
*
* Used to create a file system that uses One Zone storage classes. It specifies the Amazon Web Services
* Availability Zone in which to create the file system. Use the format us-east-1a
to specify the
* Availability Zone. For more information about One Zone storage classes, see Using EFS storage classes in the
* Amazon EFS User Guide.
*
* One Zone storage classes are not available in all Availability Zones in Amazon Web Services Regions where Amazon * EFS is available. *
*
* Specifies whether automatic backups are enabled on the file system that you are creating. Set the value to
* true
to enable automatic backups. If you are creating a file system that uses One Zone storage
* classes, automatic backups are enabled by default. For more information, see Automatic backups in the
* Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default is
* true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*
* Use to create one or more tags associated with the file system. Each tag is a user-defined key-value pair. Name
* your file system on creation by including a "Key":"Name","Value":"{value}"
key-value pair. Each key
* must be unique. For more information, see Tagging Amazon Web Services resources
* in the Amazon Web Services General Reference Guide.
*
* A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation. *
* * @param creationToken * A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation. */ public void setCreationToken(String creationToken) { this.creationToken = creationToken; } /** ** A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation. *
* * @return A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation. */ public String getCreationToken() { return this.creationToken; } /** ** A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation. *
* * @param creationToken * A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFileSystemRequest withCreationToken(String creationToken) { setCreationToken(creationToken); return this; } /** *
* The performance mode of the file system. We recommend generalPurpose
performance mode for most file
* systems. File systems using the maxIO
performance mode can scale to higher levels of aggregate
* throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The
* performance mode can't be changed after the file system has been created.
*
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
generalPurpose
performance mode for
* most file systems. File systems using the maxIO
performance mode can scale to higher levels
* of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most
* file operations. The performance mode can't be changed after the file system has been created.
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
* The performance mode of the file system. We recommend generalPurpose
performance mode for most file
* systems. File systems using the maxIO
performance mode can scale to higher levels of aggregate
* throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The
* performance mode can't be changed after the file system has been created.
*
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
generalPurpose
performance mode for
* most file systems. File systems using the maxIO
performance mode can scale to higher levels
* of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most
* file operations. The performance mode can't be changed after the file system has been created.
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
* The performance mode of the file system. We recommend generalPurpose
performance mode for most file
* systems. File systems using the maxIO
performance mode can scale to higher levels of aggregate
* throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The
* performance mode can't be changed after the file system has been created.
*
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
generalPurpose
performance mode for
* most file systems. File systems using the maxIO
performance mode can scale to higher levels
* of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most
* file operations. The performance mode can't be changed after the file system has been created.
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
* The performance mode of the file system. We recommend generalPurpose
performance mode for most file
* systems. File systems using the maxIO
performance mode can scale to higher levels of aggregate
* throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The
* performance mode can't be changed after the file system has been created.
*
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
generalPurpose
performance mode for
* most file systems. File systems using the maxIO
performance mode can scale to higher levels
* of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most
* file operations. The performance mode can't be changed after the file system has been created.
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
* The performance mode of the file system. We recommend generalPurpose
performance mode for most file
* systems. File systems using the maxIO
performance mode can scale to higher levels of aggregate
* throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The
* performance mode can't be changed after the file system has been created.
*
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
generalPurpose
performance mode for
* most file systems. File systems using the maxIO
performance mode can scale to higher levels
* of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most
* file operations. The performance mode can't be changed after the file system has been created.
* The maxIO
mode is not supported on file systems using One Zone storage classes.
*
* A Boolean value that, if true, creates an encrypted file system. When creating an encrypted file system, you have
* the option of specifying an existing Key Management Service key (KMS key). If you don't specify a KMS key, then
* the default KMS key for Amazon EFS, /aws/elasticfilesystem
, is used to protect the encrypted file
* system.
*
/aws/elasticfilesystem
, is used to protect
* the encrypted file system.
*/
public void setEncrypted(Boolean encrypted) {
this.encrypted = encrypted;
}
/**
*
* A Boolean value that, if true, creates an encrypted file system. When creating an encrypted file system, you have
* the option of specifying an existing Key Management Service key (KMS key). If you don't specify a KMS key, then
* the default KMS key for Amazon EFS, /aws/elasticfilesystem
, is used to protect the encrypted file
* system.
*
/aws/elasticfilesystem
, is used to
* protect the encrypted file system.
*/
public Boolean getEncrypted() {
return this.encrypted;
}
/**
*
* A Boolean value that, if true, creates an encrypted file system. When creating an encrypted file system, you have
* the option of specifying an existing Key Management Service key (KMS key). If you don't specify a KMS key, then
* the default KMS key for Amazon EFS, /aws/elasticfilesystem
, is used to protect the encrypted file
* system.
*
/aws/elasticfilesystem
, is used to protect
* the encrypted file system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemRequest withEncrypted(Boolean encrypted) {
setEncrypted(encrypted);
return this;
}
/**
*
* A Boolean value that, if true, creates an encrypted file system. When creating an encrypted file system, you have
* the option of specifying an existing Key Management Service key (KMS key). If you don't specify a KMS key, then
* the default KMS key for Amazon EFS, /aws/elasticfilesystem
, is used to protect the encrypted file
* system.
*
/aws/elasticfilesystem
, is used to
* protect the encrypted file system.
*/
public Boolean isEncrypted() {
return this.encrypted;
}
/**
* * The ID of the KMS key that you want to use to protect the encrypted file system. This parameter is required only * if you want to use a non-default KMS key. If this parameter is not specified, the default KMS key for Amazon EFS * is used. You can specify a KMS key ID using the following formats: *
*
* Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* ARN - An Amazon Resource Name (ARN) for the key, for example
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* Key alias - A previously created display name for a key, for example alias/projectKey1
.
*
* Key alias ARN - An ARN for a key alias, for example
* arn:aws:kms:us-west-2:444455556666:alias/projectKey1
.
*
* If you use KmsKeyId
, you must set the CreateFileSystemRequest$Encrypted parameter to true.
*
* EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with Amazon EFS file systems. *
*
* Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* ARN - An Amazon Resource Name (ARN) for the key, for example
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* Key alias - A previously created display name for a key, for example alias/projectKey1
.
*
* Key alias ARN - An ARN for a key alias, for example
* arn:aws:kms:us-west-2:444455556666:alias/projectKey1
.
*
* If you use KmsKeyId
, you must set the CreateFileSystemRequest$Encrypted parameter to
* true.
*
* EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with Amazon EFS file systems. *
*/ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** ** The ID of the KMS key that you want to use to protect the encrypted file system. This parameter is required only * if you want to use a non-default KMS key. If this parameter is not specified, the default KMS key for Amazon EFS * is used. You can specify a KMS key ID using the following formats: *
*
* Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* ARN - An Amazon Resource Name (ARN) for the key, for example
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* Key alias - A previously created display name for a key, for example alias/projectKey1
.
*
* Key alias ARN - An ARN for a key alias, for example
* arn:aws:kms:us-west-2:444455556666:alias/projectKey1
.
*
* If you use KmsKeyId
, you must set the CreateFileSystemRequest$Encrypted parameter to true.
*
* EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with Amazon EFS file systems. *
*
* Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* ARN - An Amazon Resource Name (ARN) for the key, for example
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* Key alias - A previously created display name for a key, for example alias/projectKey1
.
*
* Key alias ARN - An ARN for a key alias, for example
* arn:aws:kms:us-west-2:444455556666:alias/projectKey1
.
*
* If you use KmsKeyId
, you must set the CreateFileSystemRequest$Encrypted parameter to
* true.
*
* EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with Amazon EFS file systems. *
*/ public String getKmsKeyId() { return this.kmsKeyId; } /** ** The ID of the KMS key that you want to use to protect the encrypted file system. This parameter is required only * if you want to use a non-default KMS key. If this parameter is not specified, the default KMS key for Amazon EFS * is used. You can specify a KMS key ID using the following formats: *
*
* Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* ARN - An Amazon Resource Name (ARN) for the key, for example
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* Key alias - A previously created display name for a key, for example alias/projectKey1
.
*
* Key alias ARN - An ARN for a key alias, for example
* arn:aws:kms:us-west-2:444455556666:alias/projectKey1
.
*
* If you use KmsKeyId
, you must set the CreateFileSystemRequest$Encrypted parameter to true.
*
* EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with Amazon EFS file systems. *
*
* Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* ARN - An Amazon Resource Name (ARN) for the key, for example
* arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
*
* Key alias - A previously created display name for a key, for example alias/projectKey1
.
*
* Key alias ARN - An ARN for a key alias, for example
* arn:aws:kms:us-west-2:444455556666:alias/projectKey1
.
*
* If you use KmsKeyId
, you must set the CreateFileSystemRequest$Encrypted parameter to
* true.
*
* EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with Amazon EFS file systems. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateFileSystemRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *
* Specifies the throughput mode for the file system. The mode can be bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After you
* create the file system, you can decrease your file system's throughput in Provisioned Throughput mode or change
* between the throughput modes, with certain time restrictions. For more information, see Specifying throughput
* with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
*
bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After
* you create the file system, you can decrease your file system's throughput in Provisioned Throughput mode
* or change between the throughput modes, with certain time restrictions. For more information, see Specifying
* throughput with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
* @see ThroughputMode
*/
public void setThroughputMode(String throughputMode) {
this.throughputMode = throughputMode;
}
/**
*
* Specifies the throughput mode for the file system. The mode can be bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After you
* create the file system, you can decrease your file system's throughput in Provisioned Throughput mode or change
* between the throughput modes, with certain time restrictions. For more information, see Specifying throughput
* with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
*
bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After
* you create the file system, you can decrease your file system's throughput in Provisioned Throughput mode
* or change between the throughput modes, with certain time restrictions. For more information, see Specifying
* throughput with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
* @see ThroughputMode
*/
public String getThroughputMode() {
return this.throughputMode;
}
/**
*
* Specifies the throughput mode for the file system. The mode can be bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After you
* create the file system, you can decrease your file system's throughput in Provisioned Throughput mode or change
* between the throughput modes, with certain time restrictions. For more information, see Specifying throughput
* with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
*
bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After
* you create the file system, you can decrease your file system's throughput in Provisioned Throughput mode
* or change between the throughput modes, with certain time restrictions. For more information, see Specifying
* throughput with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ThroughputMode
*/
public CreateFileSystemRequest withThroughputMode(String throughputMode) {
setThroughputMode(throughputMode);
return this;
}
/**
*
* Specifies the throughput mode for the file system. The mode can be bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After you
* create the file system, you can decrease your file system's throughput in Provisioned Throughput mode or change
* between the throughput modes, with certain time restrictions. For more information, see Specifying throughput
* with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
*
bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After
* you create the file system, you can decrease your file system's throughput in Provisioned Throughput mode
* or change between the throughput modes, with certain time restrictions. For more information, see Specifying
* throughput with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
* @see ThroughputMode
*/
public void setThroughputMode(ThroughputMode throughputMode) {
withThroughputMode(throughputMode);
}
/**
*
* Specifies the throughput mode for the file system. The mode can be bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After you
* create the file system, you can decrease your file system's throughput in Provisioned Throughput mode or change
* between the throughput modes, with certain time restrictions. For more information, see Specifying throughput
* with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
*
bursting
,
* provisioned
, or elastic
. If you set ThroughputMode
to
* provisioned
, you must also set a value for ProvisionedThroughputInMibps
. After
* you create the file system, you can decrease your file system's throughput in Provisioned Throughput mode
* or change between the throughput modes, with certain time restrictions. For more information, see Specifying
* throughput with provisioned mode in the Amazon EFS User Guide.
*
* Default is bursting
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ThroughputMode
*/
public CreateFileSystemRequest withThroughputMode(ThroughputMode throughputMode) {
this.throughputMode = throughputMode.toString();
return this;
}
/**
*
* The throughput, measured in MiB/s, that you want to provision for a file system that you're creating. Valid
* values are 1-1024. Required if ThroughputMode
is set to provisioned
. The upper limit
* for throughput is 1024 MiB/s. To increase this limit, contact Amazon Web Services Support. For more information,
* see Amazon EFS quotas that you can
* increase in the Amazon EFS User Guide.
*
ThroughputMode
is set to provisioned
. The
* upper limit for throughput is 1024 MiB/s. To increase this limit, contact Amazon Web Services Support. For
* more information, see Amazon
* EFS quotas that you can increase in the Amazon EFS User Guide.
*/
public void setProvisionedThroughputInMibps(Double provisionedThroughputInMibps) {
this.provisionedThroughputInMibps = provisionedThroughputInMibps;
}
/**
*
* The throughput, measured in MiB/s, that you want to provision for a file system that you're creating. Valid
* values are 1-1024. Required if ThroughputMode
is set to provisioned
. The upper limit
* for throughput is 1024 MiB/s. To increase this limit, contact Amazon Web Services Support. For more information,
* see Amazon EFS quotas that you can
* increase in the Amazon EFS User Guide.
*
ThroughputMode
is set to provisioned
. The
* upper limit for throughput is 1024 MiB/s. To increase this limit, contact Amazon Web Services Support.
* For more information, see Amazon EFS quotas that you can
* increase in the Amazon EFS User Guide.
*/
public Double getProvisionedThroughputInMibps() {
return this.provisionedThroughputInMibps;
}
/**
*
* The throughput, measured in MiB/s, that you want to provision for a file system that you're creating. Valid
* values are 1-1024. Required if ThroughputMode
is set to provisioned
. The upper limit
* for throughput is 1024 MiB/s. To increase this limit, contact Amazon Web Services Support. For more information,
* see Amazon EFS quotas that you can
* increase in the Amazon EFS User Guide.
*
ThroughputMode
is set to provisioned
. The
* upper limit for throughput is 1024 MiB/s. To increase this limit, contact Amazon Web Services Support. For
* more information, see Amazon
* EFS quotas that you can increase in the Amazon EFS User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemRequest withProvisionedThroughputInMibps(Double provisionedThroughputInMibps) {
setProvisionedThroughputInMibps(provisionedThroughputInMibps);
return this;
}
/**
*
* Used to create a file system that uses One Zone storage classes. It specifies the Amazon Web Services
* Availability Zone in which to create the file system. Use the format us-east-1a
to specify the
* Availability Zone. For more information about One Zone storage classes, see Using EFS storage classes in the
* Amazon EFS User Guide.
*
* One Zone storage classes are not available in all Availability Zones in Amazon Web Services Regions where Amazon * EFS is available. *
*us-east-1a
to specify
* the Availability Zone. For more information about One Zone storage classes, see Using EFS storage classes in the
* Amazon EFS User Guide. * One Zone storage classes are not available in all Availability Zones in Amazon Web Services Regions where * Amazon EFS is available. *
*/ public void setAvailabilityZoneName(String availabilityZoneName) { this.availabilityZoneName = availabilityZoneName; } /** *
* Used to create a file system that uses One Zone storage classes. It specifies the Amazon Web Services
* Availability Zone in which to create the file system. Use the format us-east-1a
to specify the
* Availability Zone. For more information about One Zone storage classes, see Using EFS storage classes in the
* Amazon EFS User Guide.
*
* One Zone storage classes are not available in all Availability Zones in Amazon Web Services Regions where Amazon * EFS is available. *
*us-east-1a
to specify
* the Availability Zone. For more information about One Zone storage classes, see Using EFS storage classes in
* the Amazon EFS User Guide. * One Zone storage classes are not available in all Availability Zones in Amazon Web Services Regions where * Amazon EFS is available. *
*/ public String getAvailabilityZoneName() { return this.availabilityZoneName; } /** *
* Used to create a file system that uses One Zone storage classes. It specifies the Amazon Web Services
* Availability Zone in which to create the file system. Use the format us-east-1a
to specify the
* Availability Zone. For more information about One Zone storage classes, see Using EFS storage classes in the
* Amazon EFS User Guide.
*
* One Zone storage classes are not available in all Availability Zones in Amazon Web Services Regions where Amazon * EFS is available. *
*us-east-1a
to specify
* the Availability Zone. For more information about One Zone storage classes, see Using EFS storage classes in the
* Amazon EFS User Guide. * One Zone storage classes are not available in all Availability Zones in Amazon Web Services Regions where * Amazon EFS is available. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateFileSystemRequest withAvailabilityZoneName(String availabilityZoneName) { setAvailabilityZoneName(availabilityZoneName); return this; } /** *
* Specifies whether automatic backups are enabled on the file system that you are creating. Set the value to
* true
to enable automatic backups. If you are creating a file system that uses One Zone storage
* classes, automatic backups are enabled by default. For more information, see Automatic backups in the
* Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default is
* true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*true
to enable automatic backups. If you are creating a file system that uses One Zone
* storage classes, automatic backups are enabled by default. For more information, see Automatic backups in
* the Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default
* is true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*/ public void setBackup(Boolean backup) { this.backup = backup; } /** *
* Specifies whether automatic backups are enabled on the file system that you are creating. Set the value to
* true
to enable automatic backups. If you are creating a file system that uses One Zone storage
* classes, automatic backups are enabled by default. For more information, see Automatic backups in the
* Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default is
* true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*true
to enable automatic backups. If you are creating a file system that uses One Zone
* storage classes, automatic backups are enabled by default. For more information, see Automatic backups
* in the Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default
* is true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*/ public Boolean getBackup() { return this.backup; } /** *
* Specifies whether automatic backups are enabled on the file system that you are creating. Set the value to
* true
to enable automatic backups. If you are creating a file system that uses One Zone storage
* classes, automatic backups are enabled by default. For more information, see Automatic backups in the
* Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default is
* true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*true
to enable automatic backups. If you are creating a file system that uses One Zone
* storage classes, automatic backups are enabled by default. For more information, see Automatic backups in
* the Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default
* is true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateFileSystemRequest withBackup(Boolean backup) { setBackup(backup); return this; } /** *
* Specifies whether automatic backups are enabled on the file system that you are creating. Set the value to
* true
to enable automatic backups. If you are creating a file system that uses One Zone storage
* classes, automatic backups are enabled by default. For more information, see Automatic backups in the
* Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default is
* true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*true
to enable automatic backups. If you are creating a file system that uses One Zone
* storage classes, automatic backups are enabled by default. For more information, see Automatic backups
* in the Amazon EFS User Guide.
*
* Default is false
. However, if you specify an AvailabilityZoneName
, the default
* is true
.
*
* Backup is not available in all Amazon Web Services Regions where Amazon EFS is available. *
*/ public Boolean isBackup() { return this.backup; } /** *
* Use to create one or more tags associated with the file system. Each tag is a user-defined key-value pair. Name
* your file system on creation by including a "Key":"Name","Value":"{value}"
key-value pair. Each key
* must be unique. For more information, see Tagging Amazon Web Services resources
* in the Amazon Web Services General Reference Guide.
*
"Key":"Name","Value":"{value}"
* key-value pair. Each key must be unique. For more information, see Tagging Amazon Web Services
* resources in the Amazon Web Services General Reference Guide.
*/
public java.util.List
* Use to create one or more tags associated with the file system. Each tag is a user-defined key-value pair. Name
* your file system on creation by including a "Key":"Name","Value":"{value}"
key-value pair. Each key
* must be unique. For more information, see Tagging Amazon Web Services resources
* in the Amazon Web Services General Reference Guide.
*
"Key":"Name","Value":"{value}"
key-value
* pair. Each key must be unique. For more information, see Tagging Amazon Web Services
* resources in the Amazon Web Services General Reference Guide.
*/
public void setTags(java.util.Collection
* Use to create one or more tags associated with the file system. Each tag is a user-defined key-value pair. Name
* your file system on creation by including a "Key":"Name","Value":"{value}"
key-value pair. Each key
* must be unique. For more information, see Tagging Amazon Web Services resources
* in the Amazon Web Services General Reference Guide.
*
* 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 * Use to create one or more tags associated with the file system. Each tag is a user-defined key-value pair. * Name your file system on creation by including a"Key":"Name","Value":"{value}"
key-value
* pair. Each key must be unique. For more information, see Tagging Amazon Web Services
* resources in the Amazon Web Services General Reference Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList
* Use to create one or more tags associated with the file system. Each tag is a user-defined key-value pair. Name
* your file system on creation by including a "Key":"Name","Value":"{value}"
key-value pair. Each key
* must be unique. For more information, see Tagging Amazon Web Services resources
* in the Amazon Web Services General Reference Guide.
*
"Key":"Name","Value":"{value}"
key-value
* pair. Each key must be unique. For more information, see Tagging Amazon Web Services
* resources in the Amazon Web Services General Reference Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFileSystemRequest withTags(java.util.Collection