Class ShareFileCopyOptions
java.lang.Object
com.azure.storage.file.share.options.ShareFileCopyOptions
Extended options that may be passed when copying a share.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theShareRequestConditions
.Gets the file permission key.Gets the file permission format.Gets the metadata to associate with the file.Optional properties to set on NFS files.Optional properties to set on NFS files.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.Optional properties to set on NFS files.Gets the SMB properties to set on the destination file.Gets the SMB properties to copy from the source file.Gets the optional boolean specifying to set archive attribute on a target file.Gets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.setArchiveAttribute
(Boolean archiveAttribute) Sets the optional boolean specifying to set archive attribute on a target file.setDestinationRequestConditions
(ShareRequestConditions requestConditions) Sets theShareRequestConditions
to add conditions on copying the file.setFilePermission
(String filePermissionKey) Sets the file permission key.setFilePermissionFormat
(FilePermissionFormat filePermissionFormat) Sets the file permission format.setIgnoreReadOnly
(Boolean ignoreReadOnly) Sets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.setMetadata
(Map<String, String> metadata) Sets the metadata to associate with the file.setModeCopyMode
(ModeCopyMode modeCopyMode) Optional properties to set on NFS files.setOwnerCopyMode
(OwnerCopyMode ownerCopyMode) Optional properties to set on NFS files.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.setPosixProperties
(FilePosixProperties posixProperties) Optional properties to set on NFS files.setSmbProperties
(FileSmbProperties smbProperties) Sets the SMB properties to set on the destination file.setSmbPropertiesToCopy
(CopyableFileSmbPropertiesList smbProperties) Sets the SMB properties to copy from the source file.
-
Constructor Details
-
ShareFileCopyOptions
public ShareFileCopyOptions()Creates a new instance ofShareFileCopyOptions
.
-
-
Method Details
-
getFilePermission
Gets the file permission key.- Returns:
- The file's permission key.
-
setFilePermission
Sets the file permission key.- Parameters:
filePermissionKey
- The file permission key.- Returns:
- the updated options.
-
getSmbProperties
Gets the SMB properties to set on the destination file.- Returns:
- Optional SMB properties to set on the destination file or directory. The only properties that are considered are file attributes, file creation time, file last write time, and file permission key. The rest are ignored.
-
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:
- 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.
-
isIgnoreReadOnly
Gets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.- Returns:
- Optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.
-
setIgnoreReadOnly
Sets the optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.- Parameters:
ignoreReadOnly
- Optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.- Returns:
- The updated options.
-
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:
- 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.
-
setArchiveAttribute
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:
archiveAttribute
- 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:
- The updated options.
-
getMetadata
Gets the metadata to associate with the file.- Returns:
- Metadata to associate with the file.
-
setMetadata
Sets the metadata to associate with the file.- Parameters:
metadata
- Metadata to associate with the file. If there is leading or trailing whitespace in any metadata key or value, it must be removed or encoded.- Returns:
- The updated options.
-
getDestinationRequestConditions
Gets theShareRequestConditions
.- Returns:
ShareRequestConditions
-
getSmbPropertiesToCopy
Gets the SMB properties to copy from the source file.- Returns:
- SMB properties to copy from the source file.
-
getFilePermissionFormat
Gets the file permission format.- Returns:
- file permission format.
-
getPosixProperties
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares.- Returns:
FilePosixProperties
-
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:
- The destination file's FileMode.
-
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:
- The destination file's Owner and Group.
-