Class DataLakePathCreateOptions
java.lang.Object
com.azure.storage.file.datalake.options.DataLakePathCreateOptions
Extended options that may be passed when creating a datalake resource.
-
Constructor Summary
ConstructorsConstructorDescriptionOptional parameters for creating a file or directory. -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()
getOwner()
Gets the http header properties.OptionalDataLakeRequestConditions
conditions on the creation of this file or directory.getUmask()
setAccessControlList
(List<PathAccessControlEntry> accessControl) Optional.Optional.setLeaseDuration
(Integer duration) Optional.setMetadata
(Map<String, String> metadata) Optional custom metadata to set for this file or directory.Optional.setPathHttpHeaders
(PathHttpHeaders headers) Optional standard HTTP header properties that can be set for the new file or directory.setPermissions
(String permissions) Sets POSIX access permissions for the file owner, the file owning group, and others.setProposedLeaseId
(String leaseId) Optional.setRequestConditions
(DataLakeRequestConditions requestConditions) OptionalDataLakeRequestConditions
conditions on the creation of this file or directory.setScheduleDeletionOptions
(DataLakePathScheduleDeletionOptions deletionOptions) Scheduled deletion options to set on the path.setSourceLeaseId
(String leaseId) Sets the source lease ID.When creating a file or directory and the parent folder does not have a default ACL, the umask restricts the permissions of the file or directory to be created.
-
Constructor Details
-
DataLakePathCreateOptions
public DataLakePathCreateOptions()Optional parameters for creating a file or directory.
-
-
Method Details
-
getPermissions
- Returns:
- the permissions
-
setPermissions
Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported.- Parameters:
permissions
- The permissions.- Returns:
- the updated options.
-
getUmask
- Returns:
- the umask.
-
setUmask
When creating a file or directory and the parent folder does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p bitwise-and ^u, where p is the permission and u is the umask. For example, if p is 0777 and u is 0057, then the resulting permission is 0720. The default permission is 0777 for a directory and 0666 for a file. The default umask is 0027. The umask must be specified in 4-digit octal notation (e.g. 0766).- Parameters:
umask
- The umask.- Returns:
- the updated options.
-
getAccessControlList
- Returns:
- the POSIX access control list for the file/directory.
-
setAccessControlList
Optional. The POSIX access control list for the file or directory.- Parameters:
accessControl
- The access control list.- Returns:
- The updated options.
-
getOwner
- Returns:
- the name of owner of the file/directory.
-
setOwner
Optional. Sets the owner of the file/directory.- Parameters:
owner
- the new owner.- Returns:
- The updated options.
-
getGroup
- Returns:
- the name of owning group of the file/directory.
-
setGroup
Optional. Sets the owning group of the file/directory.- Parameters:
group
- the new owning group.- Returns:
- The updated options.
-
getScheduleDeletionOptions
- Returns:
- the
DataLakePathScheduleDeletionOptions
set on the path.
-
setScheduleDeletionOptions
public DataLakePathCreateOptions setScheduleDeletionOptions(DataLakePathScheduleDeletionOptions deletionOptions) Scheduled deletion options to set on the path.- Parameters:
deletionOptions
- theDataLakePathScheduleDeletionOptions
to set.- Returns:
- the updated options.
-
getPathHttpHeaders
Gets the http header properties.- Returns:
- the http headers.
-
setPathHttpHeaders
Optional standard HTTP header properties that can be set for the new file or directory.- Parameters:
headers
- The http headers.- Returns:
- the updated options.
-
getMetadata
- Returns:
- Metadata associated with the datalake path.
-
setMetadata
Optional custom metadata to set for this file or directory.- Parameters:
metadata
- Metadata to associate with the datalake path. If there is leading or trailing whitespace in any metadata key or value, it must be removed or encoded.- Returns:
- The updated options.
-
getRequestConditions
OptionalDataLakeRequestConditions
conditions on the creation of this file or directory.- Returns:
- the request conditions.
-
setRequestConditions
OptionalDataLakeRequestConditions
conditions on the creation of this file or directory. Sets the request conditions.- Parameters:
requestConditions
- The request conditions.- Returns:
- The updated options.
-
getSourceLeaseId
- Returns:
- the source lease ID
-
setSourceLeaseId
Sets the source lease ID.- Parameters:
leaseId
- the source lease ID.- Returns:
- The updated options.
-
getProposedLeaseId
- Returns:
- the proposed lease ID.
-
setProposedLeaseId
Optional. Sets proposed lease ID. Does not apply to directories.- Parameters:
leaseId
- the proposed lease ID.- Returns:
- The updated options.
-
getLeaseDuration
- Returns:
- the lease duration in seconds.
-
setLeaseDuration
Optional. Specifies the duration of the lease, in seconds, or specify -1 for a lease that never expires. A non-infinite lease can be between 15 and 60 seconds. Does not apply to directories. Sets the lease duration.- Parameters:
duration
- the new duration.- Returns:
- The updated options.
-