Class ShareFileCopyOptions
java.lang.Object
com.azure.storage.file.share.options.ShareFileCopyOptions
Extended options that may be passed when copying a share.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets theShareRequestConditions
.setArchiveAttribute
(Boolean archiveAttribute) setDestinationRequestConditions
(ShareRequestConditions requestConditions) Sets theShareRequestConditions
to add conditions on copying the file.setFilePermission
(String filePermissionKey) Sets the file permission key.setIgnoreReadOnly
(Boolean ignoreReadOnly) setMetadata
(Map<String, String> metadata) setPermissionCopyModeType
(PermissionCopyModeType copyModeType) setSmbProperties
(FileSmbProperties smbProperties) setSmbPropertiesToCopy
(CopyableFileSmbPropertiesList smbProperties)
-
Constructor Details
-
ShareFileCopyOptions
public ShareFileCopyOptions()
-
-
Method Details
-
getFilePermission
- Returns:
- The file's permission key.
-
setFilePermission
Sets the file permission key.- Parameters:
filePermissionKey
- The file permission key.- Returns:
- the updated options.
-
getSmbProperties
- 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
- 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
- Returns:
- Optional boolean specifying to overwrite the target file if it already exists and has read-only attribute set.
-
setIgnoreReadOnly
- 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
- 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
- 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
- Returns:
- Metadata to associate with the share
-
setMetadata
- Parameters:
metadata
- Metadata to associate with the share. 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
- Returns:
- SMB properties to copy from the source file.
-