@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFileCacheRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateFileCacheRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFileCacheRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
An idempotency token for resource creation, in a string of up to 63 ASCII characters.
|
Boolean |
getCopyTagsToDataRepositoryAssociations()
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
|
List<FileCacheDataRepositoryAssociation> |
getDataRepositoryAssociations()
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation.
|
String |
getFileCacheType()
The type of cache that you're creating, which must be
LUSTRE . |
String |
getFileCacheTypeVersion()
Sets the Lustre version for the cache that you're creating, which must be
2.12 . |
String |
getKmsKeyId()
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache.
|
CreateFileCacheLustreConfiguration |
getLustreConfiguration()
The configuration for the Amazon File Cache resource being created.
|
List<String> |
getSecurityGroupIds()
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache
access.
|
Integer |
getStorageCapacity()
The storage capacity of the cache in gibibytes (GiB).
|
List<String> |
getSubnetIds() |
List<Tag> |
getTags() |
int |
hashCode() |
Boolean |
isCopyTagsToDataRepositoryAssociations()
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
|
void |
setClientRequestToken(String clientRequestToken)
An idempotency token for resource creation, in a string of up to 63 ASCII characters.
|
void |
setCopyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations)
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
|
void |
setDataRepositoryAssociations(Collection<FileCacheDataRepositoryAssociation> dataRepositoryAssociations)
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation.
|
void |
setFileCacheType(String fileCacheType)
The type of cache that you're creating, which must be
LUSTRE . |
void |
setFileCacheTypeVersion(String fileCacheTypeVersion)
Sets the Lustre version for the cache that you're creating, which must be
2.12 . |
void |
setKmsKeyId(String kmsKeyId)
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache.
|
void |
setLustreConfiguration(CreateFileCacheLustreConfiguration lustreConfiguration)
The configuration for the Amazon File Cache resource being created.
|
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache
access.
|
void |
setStorageCapacity(Integer storageCapacity)
The storage capacity of the cache in gibibytes (GiB).
|
void |
setSubnetIds(Collection<String> subnetIds) |
void |
setTags(Collection<Tag> tags) |
String |
toString()
Returns a string representation of this object.
|
CreateFileCacheRequest |
withClientRequestToken(String clientRequestToken)
An idempotency token for resource creation, in a string of up to 63 ASCII characters.
|
CreateFileCacheRequest |
withCopyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations)
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
|
CreateFileCacheRequest |
withDataRepositoryAssociations(Collection<FileCacheDataRepositoryAssociation> dataRepositoryAssociations)
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation.
|
CreateFileCacheRequest |
withDataRepositoryAssociations(FileCacheDataRepositoryAssociation... dataRepositoryAssociations)
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation.
|
CreateFileCacheRequest |
withFileCacheType(FileCacheType fileCacheType)
The type of cache that you're creating, which must be
LUSTRE . |
CreateFileCacheRequest |
withFileCacheType(String fileCacheType)
The type of cache that you're creating, which must be
LUSTRE . |
CreateFileCacheRequest |
withFileCacheTypeVersion(String fileCacheTypeVersion)
Sets the Lustre version for the cache that you're creating, which must be
2.12 . |
CreateFileCacheRequest |
withKmsKeyId(String kmsKeyId)
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache.
|
CreateFileCacheRequest |
withLustreConfiguration(CreateFileCacheLustreConfiguration lustreConfiguration)
The configuration for the Amazon File Cache resource being created.
|
CreateFileCacheRequest |
withSecurityGroupIds(Collection<String> securityGroupIds)
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache
access.
|
CreateFileCacheRequest |
withSecurityGroupIds(String... securityGroupIds)
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache
access.
|
CreateFileCacheRequest |
withStorageCapacity(Integer storageCapacity)
The storage capacity of the cache in gibibytes (GiB).
|
CreateFileCacheRequest |
withSubnetIds(Collection<String> subnetIds) |
CreateFileCacheRequest |
withSubnetIds(String... subnetIds)
NOTE: This method appends the values to the existing list (if any).
|
CreateFileCacheRequest |
withTags(Collection<Tag> tags) |
CreateFileCacheRequest |
withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any).
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientRequestToken(String clientRequestToken)
An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
By using the idempotent operation, you can retry a CreateFileCache
operation without the risk of
creating an extra cache. This approach can be useful when an initial call fails in a way that makes it unclear
whether a cache was created. Examples are if a transport level timeout occurred, or your connection was reset. If
you use the same client request token and the initial call created a cache, the client receives success as long
as the parameters are the same.
clientRequestToken
- An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is
automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web
Services SDK.
By using the idempotent operation, you can retry a CreateFileCache
operation without the risk
of creating an extra cache. This approach can be useful when an initial call fails in a way that makes it
unclear whether a cache was created. Examples are if a transport level timeout occurred, or your
connection was reset. If you use the same client request token and the initial call created a cache, the
client receives success as long as the parameters are the same.
public String getClientRequestToken()
An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
By using the idempotent operation, you can retry a CreateFileCache
operation without the risk of
creating an extra cache. This approach can be useful when an initial call fails in a way that makes it unclear
whether a cache was created. Examples are if a transport level timeout occurred, or your connection was reset. If
you use the same client request token and the initial call created a cache, the client receives success as long
as the parameters are the same.
By using the idempotent operation, you can retry a CreateFileCache
operation without the
risk of creating an extra cache. This approach can be useful when an initial call fails in a way that
makes it unclear whether a cache was created. Examples are if a transport level timeout occurred, or your
connection was reset. If you use the same client request token and the initial call created a cache, the
client receives success as long as the parameters are the same.
public CreateFileCacheRequest withClientRequestToken(String clientRequestToken)
An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
By using the idempotent operation, you can retry a CreateFileCache
operation without the risk of
creating an extra cache. This approach can be useful when an initial call fails in a way that makes it unclear
whether a cache was created. Examples are if a transport level timeout occurred, or your connection was reset. If
you use the same client request token and the initial call created a cache, the client receives success as long
as the parameters are the same.
clientRequestToken
- An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is
automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web
Services SDK.
By using the idempotent operation, you can retry a CreateFileCache
operation without the risk
of creating an extra cache. This approach can be useful when an initial call fails in a way that makes it
unclear whether a cache was created. Examples are if a transport level timeout occurred, or your
connection was reset. If you use the same client request token and the initial call created a cache, the
client receives success as long as the parameters are the same.
public void setFileCacheType(String fileCacheType)
The type of cache that you're creating, which must be LUSTRE
.
fileCacheType
- The type of cache that you're creating, which must be LUSTRE
.FileCacheType
public String getFileCacheType()
The type of cache that you're creating, which must be LUSTRE
.
LUSTRE
.FileCacheType
public CreateFileCacheRequest withFileCacheType(String fileCacheType)
The type of cache that you're creating, which must be LUSTRE
.
fileCacheType
- The type of cache that you're creating, which must be LUSTRE
.FileCacheType
public CreateFileCacheRequest withFileCacheType(FileCacheType fileCacheType)
The type of cache that you're creating, which must be LUSTRE
.
fileCacheType
- The type of cache that you're creating, which must be LUSTRE
.FileCacheType
public void setFileCacheTypeVersion(String fileCacheTypeVersion)
Sets the Lustre version for the cache that you're creating, which must be 2.12
.
fileCacheTypeVersion
- Sets the Lustre version for the cache that you're creating, which must be 2.12
.public String getFileCacheTypeVersion()
Sets the Lustre version for the cache that you're creating, which must be 2.12
.
2.12
.public CreateFileCacheRequest withFileCacheTypeVersion(String fileCacheTypeVersion)
Sets the Lustre version for the cache that you're creating, which must be 2.12
.
fileCacheTypeVersion
- Sets the Lustre version for the cache that you're creating, which must be 2.12
.public void setStorageCapacity(Integer storageCapacity)
The storage capacity of the cache in gibibytes (GiB). Valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.
storageCapacity
- The storage capacity of the cache in gibibytes (GiB). Valid values are 1200 GiB, 2400 GiB, and increments
of 2400 GiB.public Integer getStorageCapacity()
The storage capacity of the cache in gibibytes (GiB). Valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.
public CreateFileCacheRequest withStorageCapacity(Integer storageCapacity)
The storage capacity of the cache in gibibytes (GiB). Valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.
storageCapacity
- The storage capacity of the cache in gibibytes (GiB). Valid values are 1200 GiB, 2400 GiB, and increments
of 2400 GiB.public void setSubnetIds(Collection<String> subnetIds)
subnetIds
- public CreateFileCacheRequest withSubnetIds(String... subnetIds)
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
subnetIds
- public CreateFileCacheRequest withSubnetIds(Collection<String> subnetIds)
subnetIds
- public List<String> getSecurityGroupIds()
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache access. This list isn't returned in later requests to describe the cache.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache access. This list isn't returned in later requests to describe the cache.
securityGroupIds
- A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File
Cache access. This list isn't returned in later requests to describe the cache.public CreateFileCacheRequest withSecurityGroupIds(String... securityGroupIds)
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache access. This list isn't returned in later requests to describe the cache.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File
Cache access. This list isn't returned in later requests to describe the cache.public CreateFileCacheRequest withSecurityGroupIds(Collection<String> securityGroupIds)
A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File Cache access. This list isn't returned in later requests to describe the cache.
securityGroupIds
- A list of IDs specifying the security groups to apply to all network interfaces created for Amazon File
Cache access. This list isn't returned in later requests to describe the cache.public void setTags(Collection<Tag> tags)
tags
- public CreateFileCacheRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- public CreateFileCacheRequest withTags(Collection<Tag> tags)
tags
- public void setCopyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations)
A boolean flag indicating whether tags for the cache should be copied to data repository associations. This value defaults to false.
copyTagsToDataRepositoryAssociations
- A boolean flag indicating whether tags for the cache should be copied to data repository associations.
This value defaults to false.public Boolean getCopyTagsToDataRepositoryAssociations()
A boolean flag indicating whether tags for the cache should be copied to data repository associations. This value defaults to false.
public CreateFileCacheRequest withCopyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations)
A boolean flag indicating whether tags for the cache should be copied to data repository associations. This value defaults to false.
copyTagsToDataRepositoryAssociations
- A boolean flag indicating whether tags for the cache should be copied to data repository associations.
This value defaults to false.public Boolean isCopyTagsToDataRepositoryAssociations()
A boolean flag indicating whether tags for the cache should be copied to data repository associations. This value defaults to false.
public void setKmsKeyId(String kmsKeyId)
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache. If a
KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more
information, see Encrypt in
the Key Management Service API Reference.
kmsKeyId
- Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File
Cache. If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is
used. For more information, see Encrypt in the Key
Management Service API Reference.public String getKmsKeyId()
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache. If a
KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more
information, see Encrypt in
the Key Management Service API Reference.
KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is
used. For more information, see Encrypt in the Key
Management Service API Reference.public CreateFileCacheRequest withKmsKeyId(String kmsKeyId)
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache. If a
KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more
information, see Encrypt in
the Key Management Service API Reference.
kmsKeyId
- Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File
Cache. If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is
used. For more information, see Encrypt in the Key
Management Service API Reference.public void setLustreConfiguration(CreateFileCacheLustreConfiguration lustreConfiguration)
The configuration for the Amazon File Cache resource being created.
lustreConfiguration
- The configuration for the Amazon File Cache resource being created.public CreateFileCacheLustreConfiguration getLustreConfiguration()
The configuration for the Amazon File Cache resource being created.
public CreateFileCacheRequest withLustreConfiguration(CreateFileCacheLustreConfiguration lustreConfiguration)
The configuration for the Amazon File Cache resource being created.
lustreConfiguration
- The configuration for the Amazon File Cache resource being created.public List<FileCacheDataRepositoryAssociation> getDataRepositoryAssociations()
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation. The DRAs link the cache to either an Amazon S3 data repository or a Network File System (NFS) data repository that supports the NFSv3 protocol.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
public void setDataRepositoryAssociations(Collection<FileCacheDataRepositoryAssociation> dataRepositoryAssociations)
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation. The DRAs link the cache to either an Amazon S3 data repository or a Network File System (NFS) data repository that supports the NFSv3 protocol.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
dataRepositoryAssociations
- A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache
creation. The DRAs link the cache to either an Amazon S3 data repository or a Network File System (NFS)
data repository that supports the NFSv3 protocol.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
public CreateFileCacheRequest withDataRepositoryAssociations(FileCacheDataRepositoryAssociation... dataRepositoryAssociations)
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation. The DRAs link the cache to either an Amazon S3 data repository or a Network File System (NFS) data repository that supports the NFSv3 protocol.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
NOTE: This method appends the values to the existing list (if any). Use
setDataRepositoryAssociations(java.util.Collection)
or
withDataRepositoryAssociations(java.util.Collection)
if you want to override the existing values.
dataRepositoryAssociations
- A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache
creation. The DRAs link the cache to either an Amazon S3 data repository or a Network File System (NFS)
data repository that supports the NFSv3 protocol.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
public CreateFileCacheRequest withDataRepositoryAssociations(Collection<FileCacheDataRepositoryAssociation> dataRepositoryAssociations)
A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache creation. The DRAs link the cache to either an Amazon S3 data repository or a Network File System (NFS) data repository that supports the NFSv3 protocol.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
dataRepositoryAssociations
- A list of up to 8 configurations for data repository associations (DRAs) to be created during the cache
creation. The DRAs link the cache to either an Amazon S3 data repository or a Network File System (NFS)
data repository that supports the NFSv3 protocol.
The DRA configurations must meet the following requirements:
All configurations on the list must be of the same data repository type, either all S3 or all NFS. A cache can't link to different data repository types at the same time.
An NFS DRA must link to an NFS file system that supports the NFSv3 protocol.
DRA automatic import and automatic export is not supported.
public String toString()
toString
in class Object
Object.toString()
public CreateFileCacheRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()