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. |
Mode |
getModeCopyMode()
Optional properties to set on NFS files. |
Owner |
getOwnerCopyMode()
Optional properties to set on NFS files. |
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 |
getPosixProperties()
Optional properties to set on NFS files. |
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 |
setModeCopyMode(ModeCopyMode modeCopyMode)
Optional properties to set on NFS files. |
Share |
setOwnerCopyMode(OwnerCopyMode ownerCopyMode)
Optional properties to set on NFS files. |
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 |
setPosixProperties(FilePosixProperties posixProperties)
Optional properties to set on NFS files. |
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:
getModeCopyMode
public ModeCopyMode getModeCopyMode()
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares. If not populated, the destination file will have the default File Mode.
Returns:
getOwnerCopyMode
public OwnerCopyMode getOwnerCopyMode()
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares. If not populated,the destination file will have the default Owner and Group.
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:
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:
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:
setModeCopyMode
public ShareFileCopyOptions setModeCopyMode(ModeCopyMode modeCopyMode)
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares. If not populated, the destination file will have the default File Mode.
Parameters:
Returns:
setOwnerCopyMode
public ShareFileCopyOptions setOwnerCopyMode(OwnerCopyMode ownerCopyMode)
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares. If not populated,the destination file will have the default Owner and Group.
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:
setPosixProperties
public ShareFileCopyOptions 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:
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:
Applies to
Azure SDK for Java