Class FileCacheDataRepositoryAssociation
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FileCacheDataRepositoryAssociation.Builder,FileCacheDataRepositoryAssociation>
The configuration for a data repository association (DRA) to be created during the Amazon File Cache resource creation. The DRA links the cache to either an Amazon S3 bucket or prefix, or a Network File System (NFS) data repository that supports the NFSv3 protocol.
The DRA does not support automatic import or automatic export.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe path to the S3 or NFS data repository that links to the cache.A list of NFS Exports that will be linked with this data repository association.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringA path on the cache that points to a high-level directory (such as/ns1/) or subdirectory (such as/ns1/subdir/) that will be mapped 1-1 withDataRepositoryPath.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the DataRepositorySubdirectories property.final inthashCode()nfs()The configuration for a data repository association that links an Amazon File Cache resource to an NFS data repository.static Class<? extends FileCacheDataRepositoryAssociation.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
fileCachePath
A path on the cache that points to a high-level directory (such as
/ns1/) or subdirectory (such as/ns1/subdir/) that will be mapped 1-1 withDataRepositoryPath. The leading forward slash in the name is required. Two data repository associations cannot have overlapping cache paths. For example, if a data repository is associated with cache path/ns1/, then you cannot link another data repository with cache path/ns1/ns2.This path specifies where in your cache files will be exported from. This cache directory can be linked to only one data repository, and no data repository other can be linked to the directory.
The cache path can only be set to root (/) on an NFS DRA when
DataRepositorySubdirectoriesis specified. If you specify root (/) as the cache path, you can create only one DRA on the cache.The cache path cannot be set to root (/) for an S3 DRA.
- Returns:
- A path on the cache that points to a high-level directory (such as
/ns1/) or subdirectory (such as/ns1/subdir/) that will be mapped 1-1 withDataRepositoryPath. The leading forward slash in the name is required. Two data repository associations cannot have overlapping cache paths. For example, if a data repository is associated with cache path/ns1/, then you cannot link another data repository with cache path/ns1/ns2.This path specifies where in your cache files will be exported from. This cache directory can be linked to only one data repository, and no data repository other can be linked to the directory.
The cache path can only be set to root (/) on an NFS DRA when
DataRepositorySubdirectoriesis specified. If you specify root (/) as the cache path, you can create only one DRA on the cache.The cache path cannot be set to root (/) for an S3 DRA.
-
dataRepositoryPath
The path to the S3 or NFS data repository that links to the cache. You must provide one of the following paths:
-
The path can be an NFS data repository that links to the cache. The path can be in one of two formats:
-
If you are not using the
DataRepositorySubdirectoriesparameter, the path is to an NFS Export directory (or one of its subdirectories) in the formatnfs://nfs-domain-name/exportpath. You can therefore link a single NFS Export to a single data repository association. -
If you are using the
DataRepositorySubdirectoriesparameter, the path is the domain name of the NFS file system in the formatnfs://filer-domain-name, which indicates the root of the subdirectories specified with theDataRepositorySubdirectoriesparameter.
-
-
The path can be an S3 bucket or prefix in the format
s3://bucket-name/prefix/(whereprefixis optional).
- Returns:
- The path to the S3 or NFS data repository that links to the cache. You must provide one of the following
paths:
-
The path can be an NFS data repository that links to the cache. The path can be in one of two formats:
-
If you are not using the
DataRepositorySubdirectoriesparameter, the path is to an NFS Export directory (or one of its subdirectories) in the formatnfs://nfs-domain-name/exportpath. You can therefore link a single NFS Export to a single data repository association. -
If you are using the
DataRepositorySubdirectoriesparameter, the path is the domain name of the NFS file system in the formatnfs://filer-domain-name, which indicates the root of the subdirectories specified with theDataRepositorySubdirectoriesparameter.
-
-
The path can be an S3 bucket or prefix in the format
s3://bucket-name/prefix/(whereprefixis optional).
-
-
-
hasDataRepositorySubdirectories
public final boolean hasDataRepositorySubdirectories()For responses, this returns true if the service returned a value for the DataRepositorySubdirectories property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
dataRepositorySubdirectories
A list of NFS Exports that will be linked with this data repository association. The Export paths are in the format
/exportpath1. To use this parameter, you must configureDataRepositoryPathas the domain name of the NFS file system. The NFS file system domain name in effect is the root of the subdirectories. Note thatDataRepositorySubdirectoriesis not supported for S3 data repositories.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDataRepositorySubdirectories()method.- Returns:
- A list of NFS Exports that will be linked with this data repository association. The Export paths are in
the format
/exportpath1. To use this parameter, you must configureDataRepositoryPathas the domain name of the NFS file system. The NFS file system domain name in effect is the root of the subdirectories. Note thatDataRepositorySubdirectoriesis not supported for S3 data repositories.
-
nfs
The configuration for a data repository association that links an Amazon File Cache resource to an NFS data repository.
- Returns:
- The configuration for a data repository association that links an Amazon File Cache resource to an NFS data repository.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FileCacheDataRepositoryAssociation.Builder,FileCacheDataRepositoryAssociation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends FileCacheDataRepositoryAssociation.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-