DataLakePathCreateOptions Class
- java.
lang. Object - com.
azure. storage. file. datalake. options. DataLakePathCreateOptions
- com.
public class DataLakePathCreateOptions
Extended options that may be passed when creating a datalake resource.
Constructor Summary
Constructor | Description |
---|---|
DataLakePathCreateOptions() |
Optional parameters for creating a file or directory. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
DataLakePathCreateOptions
public DataLakePathCreateOptions()
Optional parameters for creating a file or directory.
Method Details
getAccessControlList
public List
Returns:
getEncryptionContext
public String getEncryptionContext()
Encryption context that is set on the file.
Returns:
getGroup
public String getGroup()
Returns:
getLeaseDuration
public Integer getLeaseDuration()
Returns:
getMetadata
public Map
Returns:
getOwner
public String getOwner()
Returns:
getPathHttpHeaders
public PathHttpHeaders getPathHttpHeaders()
Gets the http header properties.
Returns:
getPermissions
public String getPermissions()
Returns:
getProposedLeaseId
public String getProposedLeaseId()
Returns:
getRequestConditions
public DataLakeRequestConditions getRequestConditions()
Optional DataLakeRequestConditions conditions on the creation of this file or directory.
Returns:
getScheduleDeletionOptions
public DataLakePathScheduleDeletionOptions getScheduleDeletionOptions()
Returns:
getSourceLeaseId
public String getSourceLeaseId()
Returns:
getUmask
public String getUmask()
Returns:
setAccessControlList
public DataLakePathCreateOptions setAccessControlList(List
Optional. The POSIX access control list for the file or directory.
Parameters:
Returns:
setEncryptionContext
public DataLakePathCreateOptions setEncryptionContext(String encryptionContext)
Optional encryption context that can be set on the file. Encryption context is intended to store metadata that can be used to decrypt the blob.
Parameters:
Returns:
setGroup
public DataLakePathCreateOptions setGroup(String group)
Optional. Sets the owning group of the file/directory.
Parameters:
Returns:
setLeaseDuration
public DataLakePathCreateOptions setLeaseDuration(Integer duration)
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:
Returns:
setMetadata
public DataLakePathCreateOptions setMetadata(Map
Optional custom metadata to set for this file or directory.
Parameters:
Returns:
setOwner
public DataLakePathCreateOptions setOwner(String owner)
Optional. Sets the owner of the file/directory.
Parameters:
Returns:
setPathHttpHeaders
public DataLakePathCreateOptions setPathHttpHeaders(PathHttpHeaders headers)
Optional standard HTTP header properties that can be set for the new file or directory.
Parameters:
Returns:
setPermissions
public DataLakePathCreateOptions setPermissions(String permissions)
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:
Returns:
setProposedLeaseId
public DataLakePathCreateOptions setProposedLeaseId(String leaseId)
Optional. Sets proposed lease ID. Does not apply to directories.
Parameters:
Returns:
setRequestConditions
public DataLakePathCreateOptions setRequestConditions(DataLakeRequestConditions requestConditions)
Optional DataLakeRequestConditions conditions on the creation of this file or directory. Sets the request conditions.
Parameters:
Returns:
setScheduleDeletionOptions
public DataLakePathCreateOptions setScheduleDeletionOptions(DataLakePathScheduleDeletionOptions deletionOptions)
Scheduled deletion options to set on the path.
Parameters:
Returns:
setSourceLeaseId
public DataLakePathCreateOptions setSourceLeaseId(String leaseId)
Sets the source lease ID.
Parameters:
Returns:
setUmask
public DataLakePathCreateOptions setUmask(String umask)
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:
Returns:
Applies to
Azure SDK for Java