Interface FileCacheCreating.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FileCacheCreating.Builder,FileCacheCreating>,SdkBuilder<FileCacheCreating.Builder,FileCacheCreating>,SdkPojo
- Enclosing class:
- FileCacheCreating
public static interface FileCacheCreating.Builder extends SdkPojo, CopyableBuilder<FileCacheCreating.Builder,FileCacheCreating>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FileCacheCreating.BuildercopyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations)A boolean flag indicating whether tags for the cache should be copied to data repository associations.FileCacheCreating.BuildercreationTime(Instant creationTime)Sets the value of the CreationTime property for this object.FileCacheCreating.BuilderdataRepositoryAssociationIds(String... dataRepositoryAssociationIds)A list of IDs of data repository associations that are associated with this cache.FileCacheCreating.BuilderdataRepositoryAssociationIds(Collection<String> dataRepositoryAssociationIds)A list of IDs of data repository associations that are associated with this cache.FileCacheCreating.BuilderdnsName(String dnsName)The Domain Name System (DNS) name for the cache.default FileCacheCreating.BuilderfailureDetails(Consumer<FileCacheFailureDetails.Builder> failureDetails)A structure providing details of any failures that occurred in creating a cache.FileCacheCreating.BuilderfailureDetails(FileCacheFailureDetails failureDetails)A structure providing details of any failures that occurred in creating a cache.FileCacheCreating.BuilderfileCacheId(String fileCacheId)The system-generated, unique ID of the cache.FileCacheCreating.BuilderfileCacheType(String fileCacheType)The type of cache, which must beLUSTRE.FileCacheCreating.BuilderfileCacheType(FileCacheType fileCacheType)The type of cache, which must beLUSTRE.FileCacheCreating.BuilderfileCacheTypeVersion(String fileCacheTypeVersion)The Lustre version of the cache, which must be2.12.FileCacheCreating.BuilderkmsKeyId(String kmsKeyId)Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache.FileCacheCreating.Builderlifecycle(String lifecycle)The lifecycle status of the cache.FileCacheCreating.Builderlifecycle(FileCacheLifecycle lifecycle)The lifecycle status of the cache.default FileCacheCreating.BuilderlustreConfiguration(Consumer<FileCacheLustreConfiguration.Builder> lustreConfiguration)The configuration for the Amazon File Cache resource.FileCacheCreating.BuilderlustreConfiguration(FileCacheLustreConfiguration lustreConfiguration)The configuration for the Amazon File Cache resource.FileCacheCreating.BuildernetworkInterfaceIds(String... networkInterfaceIds)Sets the value of the NetworkInterfaceIds property for this object.FileCacheCreating.BuildernetworkInterfaceIds(Collection<String> networkInterfaceIds)Sets the value of the NetworkInterfaceIds property for this object.FileCacheCreating.BuilderownerId(String ownerId)Sets the value of the OwnerId property for this object.FileCacheCreating.BuilderresourceARN(String resourceARN)Sets the value of the ResourceARN property for this object.FileCacheCreating.BuilderstorageCapacity(Integer storageCapacity)The storage capacity of the cache in gibibytes (GiB).FileCacheCreating.BuildersubnetIds(String... subnetIds)Sets the value of the SubnetIds property for this object.FileCacheCreating.BuildersubnetIds(Collection<String> subnetIds)Sets the value of the SubnetIds property for this object.FileCacheCreating.Buildertags(Collection<Tag> tags)Sets the value of the Tags property for this object.FileCacheCreating.Buildertags(Consumer<Tag.Builder>... tags)Sets the value of the Tags property for this object.FileCacheCreating.Buildertags(Tag... tags)Sets the value of the Tags property for this object.FileCacheCreating.BuildervpcId(String vpcId)Sets the value of the VpcId property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
ownerId
FileCacheCreating.Builder ownerId(String ownerId)
Sets the value of the OwnerId property for this object.- Parameters:
ownerId- The new value for the OwnerId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
FileCacheCreating.Builder creationTime(Instant creationTime)
Sets the value of the CreationTime property for this object.- Parameters:
creationTime- The new value for the CreationTime property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileCacheId
FileCacheCreating.Builder fileCacheId(String fileCacheId)
The system-generated, unique ID of the cache.
- Parameters:
fileCacheId- The system-generated, unique ID of the cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileCacheType
FileCacheCreating.Builder fileCacheType(String fileCacheType)
The type of cache, which must be
LUSTRE.- Parameters:
fileCacheType- The type of cache, which must beLUSTRE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FileCacheType,FileCacheType
-
fileCacheType
FileCacheCreating.Builder fileCacheType(FileCacheType fileCacheType)
The type of cache, which must be
LUSTRE.- Parameters:
fileCacheType- The type of cache, which must beLUSTRE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FileCacheType,FileCacheType
-
fileCacheTypeVersion
FileCacheCreating.Builder fileCacheTypeVersion(String fileCacheTypeVersion)
The Lustre version of the cache, which must be
2.12.- Parameters:
fileCacheTypeVersion- The Lustre version of the cache, which must be2.12.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycle
FileCacheCreating.Builder lifecycle(String lifecycle)
The lifecycle status of the cache. The following are the possible values and what they mean:
-
AVAILABLE- The cache is in a healthy state, and is reachable and available for use. -
CREATING- The new cache is being created. -
DELETING- An existing cache is being deleted. -
UPDATING- The cache is undergoing a customer-initiated update. -
FAILED- An existing cache has experienced an unrecoverable failure. When creating a new cache, the cache was unable to be created.
- Parameters:
lifecycle- The lifecycle status of the cache. The following are the possible values and what they mean:-
AVAILABLE- The cache is in a healthy state, and is reachable and available for use. -
CREATING- The new cache is being created. -
DELETING- An existing cache is being deleted. -
UPDATING- The cache is undergoing a customer-initiated update. -
FAILED- An existing cache has experienced an unrecoverable failure. When creating a new cache, the cache was unable to be created.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FileCacheLifecycle,FileCacheLifecycle
-
-
lifecycle
FileCacheCreating.Builder lifecycle(FileCacheLifecycle lifecycle)
The lifecycle status of the cache. The following are the possible values and what they mean:
-
AVAILABLE- The cache is in a healthy state, and is reachable and available for use. -
CREATING- The new cache is being created. -
DELETING- An existing cache is being deleted. -
UPDATING- The cache is undergoing a customer-initiated update. -
FAILED- An existing cache has experienced an unrecoverable failure. When creating a new cache, the cache was unable to be created.
- Parameters:
lifecycle- The lifecycle status of the cache. The following are the possible values and what they mean:-
AVAILABLE- The cache is in a healthy state, and is reachable and available for use. -
CREATING- The new cache is being created. -
DELETING- An existing cache is being deleted. -
UPDATING- The cache is undergoing a customer-initiated update. -
FAILED- An existing cache has experienced an unrecoverable failure. When creating a new cache, the cache was unable to be created.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FileCacheLifecycle,FileCacheLifecycle
-
-
failureDetails
FileCacheCreating.Builder failureDetails(FileCacheFailureDetails failureDetails)
A structure providing details of any failures that occurred in creating a cache.
- Parameters:
failureDetails- A structure providing details of any failures that occurred in creating a cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureDetails
default FileCacheCreating.Builder failureDetails(Consumer<FileCacheFailureDetails.Builder> failureDetails)
A structure providing details of any failures that occurred in creating a cache.
This is a convenience method that creates an instance of theFileCacheFailureDetails.Builderavoiding the need to create one manually viaFileCacheFailureDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureDetails(FileCacheFailureDetails).- Parameters:
failureDetails- a consumer that will call methods onFileCacheFailureDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
failureDetails(FileCacheFailureDetails)
-
storageCapacity
FileCacheCreating.Builder storageCapacity(Integer storageCapacity)
The storage capacity of the cache in gibibytes (GiB).
- Parameters:
storageCapacity- The storage capacity of the cache in gibibytes (GiB).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
FileCacheCreating.Builder vpcId(String vpcId)
Sets the value of the VpcId property for this object.- Parameters:
vpcId- The new value for the VpcId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
FileCacheCreating.Builder subnetIds(Collection<String> subnetIds)
Sets the value of the SubnetIds property for this object.- Parameters:
subnetIds- The new value for the SubnetIds property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
FileCacheCreating.Builder subnetIds(String... subnetIds)
Sets the value of the SubnetIds property for this object.- Parameters:
subnetIds- The new value for the SubnetIds property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceIds
FileCacheCreating.Builder networkInterfaceIds(Collection<String> networkInterfaceIds)
Sets the value of the NetworkInterfaceIds property for this object.- Parameters:
networkInterfaceIds- The new value for the NetworkInterfaceIds property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceIds
FileCacheCreating.Builder networkInterfaceIds(String... networkInterfaceIds)
Sets the value of the NetworkInterfaceIds property for this object.- Parameters:
networkInterfaceIds- The new value for the NetworkInterfaceIds property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsName
FileCacheCreating.Builder dnsName(String dnsName)
The Domain Name System (DNS) name for the cache.
- Parameters:
dnsName- The Domain Name System (DNS) name for the cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
FileCacheCreating.Builder kmsKeyId(String kmsKeyId)
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache. If a
KmsKeyIdisn'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.- Parameters:
kmsKeyId- Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache. If aKmsKeyIdisn'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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceARN
FileCacheCreating.Builder resourceARN(String resourceARN)
Sets the value of the ResourceARN property for this object.- Parameters:
resourceARN- The new value for the ResourceARN property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
FileCacheCreating.Builder tags(Collection<Tag> tags)
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
FileCacheCreating.Builder tags(Tag... tags)
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
FileCacheCreating.Builder tags(Consumer<Tag.Builder>... tags)
Sets the value of the Tags property for this object. This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
copyTagsToDataRepositoryAssociations
FileCacheCreating.Builder copyTagsToDataRepositoryAssociations(Boolean copyTagsToDataRepositoryAssociations)
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
- Parameters:
copyTagsToDataRepositoryAssociations- A boolean flag indicating whether tags for the cache should be copied to data repository associations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lustreConfiguration
FileCacheCreating.Builder lustreConfiguration(FileCacheLustreConfiguration lustreConfiguration)
The configuration for the Amazon File Cache resource.
- Parameters:
lustreConfiguration- The configuration for the Amazon File Cache resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lustreConfiguration
default FileCacheCreating.Builder lustreConfiguration(Consumer<FileCacheLustreConfiguration.Builder> lustreConfiguration)
The configuration for the Amazon File Cache resource.
This is a convenience method that creates an instance of theFileCacheLustreConfiguration.Builderavoiding the need to create one manually viaFileCacheLustreConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolustreConfiguration(FileCacheLustreConfiguration).- Parameters:
lustreConfiguration- a consumer that will call methods onFileCacheLustreConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lustreConfiguration(FileCacheLustreConfiguration)
-
dataRepositoryAssociationIds
FileCacheCreating.Builder dataRepositoryAssociationIds(Collection<String> dataRepositoryAssociationIds)
A list of IDs of data repository associations that are associated with this cache.
- Parameters:
dataRepositoryAssociationIds- A list of IDs of data repository associations that are associated with this cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataRepositoryAssociationIds
FileCacheCreating.Builder dataRepositoryAssociationIds(String... dataRepositoryAssociationIds)
A list of IDs of data repository associations that are associated with this cache.
- Parameters:
dataRepositoryAssociationIds- A list of IDs of data repository associations that are associated with this cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-