ShareFileCreateOptions Class
- java.
lang. Object - com.
azure. storage. file. share. options. ShareFileCreateOptions
- com.
public class ShareFileCreateOptions
Extended options that may be passed when creating a share.
Constructor Summary
Constructor | Description |
---|---|
ShareFileCreateOptions(long size) |
Creates a new instance of ShareFileCreateOptions. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
ShareFileCreateOptions
public ShareFileCreateOptions(long size)
Creates a new instance of ShareFileCreateOptions.
Parameters:
Method Details
getFilePermission
public String getFilePermission()
Gets the file permission.
Returns:
getFilePermissionFormat
public FilePermissionFormat getFilePermissionFormat()
Gets the file permission format.
Returns:
getMetadata
public Map
Gets the metadata to associate with the share.
Returns:
getPosixProperties
public FilePosixProperties getPosixProperties()
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares.
Returns:
getRequestConditions
getShareFileHttpHeaders
public ShareFileHttpHeaders getShareFileHttpHeaders()
Gets the file's http headers.
Returns:
getSize
public long getSize()
Gets the maximum size for the file share.
Returns:
getSmbProperties
public FileSmbProperties getSmbProperties()
Gets the optional SMB properties to set on the destination file or directory.
Returns:
setFilePermission
public ShareFileCreateOptions setFilePermission(String filePermissionKey)
Sets the file permission.
Parameters:
Returns:
setFilePermissionFormat
public ShareFileCreateOptions setFilePermissionFormat(FilePermissionFormat filePermissionFormat)
Sets the file permission format.
Parameters:
Returns:
setMetadata
public ShareFileCreateOptions setMetadata(Map
Sets the metadata to associate with the share.
Parameters:
Returns:
setPosixProperties
public ShareFileCreateOptions setPosixProperties(FilePosixProperties posixProperties)
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares.
Parameters:
Returns:
setRequestConditions
public ShareFileCreateOptions setRequestConditions(ShareRequestConditions requestConditions)
Sets the ShareRequestConditions.
Parameters:
Returns:
setShareFileHttpHeaders
public ShareFileCreateOptions setShareFileHttpHeaders(ShareFileHttpHeaders headers)
Sets the file's http headers.
Parameters:
Returns:
setSmbProperties
public ShareFileCreateOptions setSmbProperties(FileSmbProperties smbProperties)
Sets the optional SMB properties to set on the destination file or directory.
Parameters:
Returns:
Applies to
Azure SDK for Java