你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ShareFileCopyOptions Class
- java.
lang. Object - com.
azure. storage. file. share. options. ShareFileCopyOptions
- com.
public final class ShareFileCopyOptions
Extended options that may be passed when copying a share.
Constructor Summary
Constructor | Description |
---|---|
ShareFileCopyOptions() |
Creates a new instance of ShareFileCopyOptions. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Share |
getDestinationRequestConditions()
Gets the ShareRequestConditions. |
String |
getFilePermission()
Gets the file permission key. |
File |
getFilePermissionFormat()
Gets the file permission format. |
Map<String,String> |
getMetadata()
Gets the metadata to associate with the file. |
Permission |
getPermissionCopyModeType()
Gets the option to copy file security descriptor from source file or to set it using the value which is defined by the header value of File |
File |
getSmbProperties()
Gets the SMB properties to set on the destination file. |
Copyable |
getSmbPropertiesToCopy()
Gets the SMB properties to copy from the source file. |
Boolean |
isArchiveAttributeSet()
Gets the optional boolean specifying to set archive attribute on a target file. |
Boolean |
isIgnoreReadOnly()
Gets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set. |
Share |
setArchiveAttribute(Boolean archiveAttribute)
Sets the optional boolean specifying to set archive attribute on a target file. |
Share |
setDestinationRequestConditions(ShareRequestConditions requestConditions)
Sets the ShareRequestConditions to add conditions on copying the file. |
Share |
setFilePermission(String filePermissionKey)
Sets the file permission key. |
Share |
setFilePermissionFormat(FilePermissionFormat filePermissionFormat)
Sets the file permission format. |
Share |
setIgnoreReadOnly(Boolean ignoreReadOnly)
Sets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set. |
Share |
setMetadata(Map<String,String> metadata)
Sets the metadata to associate with the file. |
Share |
setPermissionCopyModeType(PermissionCopyModeType copyModeType)
Sets the option to copy file security descriptor from source file or to set it using the value which is defined by the header value of File |
Share |
setSmbProperties(FileSmbProperties smbProperties)
Sets the SMB properties to set on the destination file. |
Share |
setSmbPropertiesToCopy(CopyableFileSmbPropertiesList smbProperties)
Sets the SMB properties to copy from the source file. |
Methods inherited from java.lang.Object
Constructor Details
ShareFileCopyOptions
public ShareFileCopyOptions()
Creates a new instance of ShareFileCopyOptions.
Method Details
getDestinationRequestConditions
public ShareRequestConditions getDestinationRequestConditions()
Gets the ShareRequestConditions.
Returns:
getFilePermission
public String getFilePermission()
Gets the file permission key.
Returns:
getFilePermissionFormat
public FilePermissionFormat getFilePermissionFormat()
Gets the file permission format.
Returns:
getMetadata
public Map
Gets the metadata to associate with the file.
Returns:
getPermissionCopyModeType
public PermissionCopyModeType getPermissionCopyModeType()
Gets the option to copy file security descriptor from source file or to set it using the value which is defined by the header value of FilePermission or FilePermissionKey.
Returns:
getSmbProperties
public FileSmbProperties getSmbProperties()
Gets the SMB properties to set on the destination file.
Returns:
getSmbPropertiesToCopy
public CopyableFileSmbPropertiesList getSmbPropertiesToCopy()
Gets the SMB properties to copy from the source file.
Returns:
isArchiveAttributeSet
public Boolean isArchiveAttributeSet()
Gets the optional boolean specifying to set archive attribute on a target file. True means archive attribute will be set on a target file despite attribute overrides or a source file state.
Returns:
isIgnoreReadOnly
public Boolean isIgnoreReadOnly()
Gets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.
Returns:
setArchiveAttribute
public ShareFileCopyOptions setArchiveAttribute(Boolean archiveAttribute)
Sets the optional boolean specifying to set archive attribute on a target file. True means archive attribute will be set on a target file despite attribute overrides or a source file state.
Parameters:
Returns:
setDestinationRequestConditions
public ShareFileCopyOptions setDestinationRequestConditions(ShareRequestConditions requestConditions)
Sets the ShareRequestConditions to add conditions on copying the file.
Parameters:
Returns:
setFilePermission
public ShareFileCopyOptions setFilePermission(String filePermissionKey)
Sets the file permission key.
Parameters:
Returns:
setFilePermissionFormat
public ShareFileCopyOptions setFilePermissionFormat(FilePermissionFormat filePermissionFormat)
Sets the file permission format.
Parameters:
Returns:
setIgnoreReadOnly
public ShareFileCopyOptions setIgnoreReadOnly(Boolean ignoreReadOnly)
Sets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.
Parameters:
Returns:
setMetadata
public ShareFileCopyOptions setMetadata(Map
Sets the metadata to associate with the file.
Parameters:
Returns:
setPermissionCopyModeType
public ShareFileCopyOptions setPermissionCopyModeType(PermissionCopyModeType copyModeType)
Sets the option to copy file security descriptor from source file or to set it using the value which is defined by the header value of FilePermission or FilePermissionKey.
Parameters:
Returns:
setSmbProperties
public ShareFileCopyOptions setSmbProperties(FileSmbProperties smbProperties)
Sets the SMB properties to set on the destination file.
Parameters:
Returns:
setSmbPropertiesToCopy
public ShareFileCopyOptions setSmbPropertiesToCopy(CopyableFileSmbPropertiesList smbProperties)
Sets the SMB properties to copy from the source file.
Parameters:
Returns: