你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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) |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getFilePermission()
Gets the file permission. |
File |
getFilePermissionFormat()
Gets the file permission format. |
Map<String,String> | getMetadata() |
Share |
getRequestConditions()
Gets the ShareRequestConditions. |
Share |
getShareFileHttpHeaders() |
long | getSize() |
File |
getSmbProperties() |
Share |
setFilePermission(String filePermissionKey)
Sets the file permission. |
Share |
setFilePermissionFormat(FilePermissionFormat filePermissionFormat)
Sets the file permission format. |
Share |
setMetadata(Map<String,String> metadata) |
Share |
setRequestConditions(ShareRequestConditions requestConditions)
Sets the ShareRequestConditions. |
Share |
setShareFileHttpHeaders(ShareFileHttpHeaders headers)
Sets the file's http headers. |
Share |
setSmbProperties(FileSmbProperties smbProperties) |
Methods inherited from java.lang.Object
Constructor Details
ShareFileCreateOptions
public ShareFileCreateOptions(long size)
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
Returns:
getRequestConditions
getShareFileHttpHeaders
public ShareFileHttpHeaders getShareFileHttpHeaders()
Returns:
getSize
public long getSize()
Returns:
getSmbProperties
public FileSmbProperties getSmbProperties()
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
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)
Parameters:
Returns: