ShareFileRenameOptions Class
- java.
lang. Object - com.
azure. storage. file. share. options. ShareFileRenameOptions
- com.
public final class ShareFileRenameOptions
Extended options that may be passed when renaming a file or directory.
Constructor Summary
Constructor | Description |
---|---|
ShareFileRenameOptions(String destinationPath) |
Creates a |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Gets the content type. |
String |
getDestinationPath()
Gets the path to which the file should be renamed. |
Share |
getDestinationRequestConditions()
Gets the destination request conditions. |
String |
getFilePermission()
Gets the optional file permission to set on the destination file or directory. |
File |
getFilePermissionFormat()
Gets the file permission format. |
Map<String,String> |
getMetadata()
Gets the metadata to associate with the renamed file. |
Boolean |
getReplaceIfExists()
Gets a boolean value which, if the destination file already exists, determines whether this request will overwrite the file or not. |
File |
getSmbProperties()
Gets the optional SMB properties to set on the destination file or directory. |
Share |
getSourceRequestConditions()
Gets the source request conditions. |
Boolean |
isIgnoreReadOnly()
Gets a boolean value that specifies whether the Read |
Share |
setContentType(String contentType)
Sets the content type. |
Share |
setDestinationRequestConditions(ShareRequestConditions destinationRequestConditions)
Sets the destination request conditions. |
Share |
setFilePermission(String filePermission)
Sets the optional file permission to set on the destination file or directory. |
Share |
setFilePermissionFormat(FilePermissionFormat filePermissionFormat)
Sets the file permission format. |
Share |
setIgnoreReadOnly(Boolean ignoreReadOnly)
Sets a boolean value that specifies whether the Read |
Share |
setMetadata(Map<String,String> metadata)
Sets the metadata to associate with the renamed file. |
Share |
setReplaceIfExists(Boolean replaceIfExists)
Sets a boolean value which, if the destination file already exists, determines whether this request will overwrite the file or not. |
Share |
setSmbProperties(FileSmbProperties smbProperties)
Sets the optional SMB properties to set on the destination file or directory. |
Share |
setSourceRequestConditions(ShareRequestConditions sourceRequestConditions)
Sets the source request conditions. |
Methods inherited from java.lang.Object
Constructor Details
ShareFileRenameOptions
public ShareFileRenameOptions(String destinationPath)
Creates a ShareFileRenameOptions
object.
Parameters:
Method Details
getContentType
public String getContentType()
Gets the content type.
Returns:
getDestinationPath
public String getDestinationPath()
Gets the path to which the file should be renamed.
Returns:
getDestinationRequestConditions
public ShareRequestConditions getDestinationRequestConditions()
Gets the destination request conditions.
Returns:
getFilePermission
public String getFilePermission()
Gets the optional file permission to set on the destination file or directory. The value in SmbProperties will be ignored.
Returns:
getFilePermissionFormat
public FilePermissionFormat getFilePermissionFormat()
Gets the file permission format.
Returns:
getMetadata
public Map
Gets the metadata to associate with the renamed file.
Returns:
getReplaceIfExists
public Boolean getReplaceIfExists()
Gets a boolean value which, if the destination file already exists, determines whether this request will overwrite the file or not.
Returns:
getSmbProperties
public FileSmbProperties getSmbProperties()
Gets the optional SMB properties to set on the destination file or directory.
Returns:
getSourceRequestConditions
public ShareRequestConditions getSourceRequestConditions()
Gets the source request conditions. This parameter is only applicable if the source is a file.
Returns:
isIgnoreReadOnly
public Boolean isIgnoreReadOnly()
Gets a boolean value that specifies whether the ReadOnly attribute on a preexisting destination file should be respected.
Returns:
setContentType
public ShareFileRenameOptions setContentType(String contentType)
Sets the content type.
Parameters:
Returns:
setDestinationRequestConditions
public ShareFileRenameOptions setDestinationRequestConditions(ShareRequestConditions destinationRequestConditions)
Sets the destination request conditions.
Parameters:
Returns:
setFilePermission
public ShareFileRenameOptions setFilePermission(String filePermission)
Sets the optional file permission to set on the destination file or directory. The value in SmbProperties will be ignored.
Parameters:
Returns:
setFilePermissionFormat
public ShareFileRenameOptions setFilePermissionFormat(FilePermissionFormat filePermissionFormat)
Sets the file permission format.
Parameters:
Returns:
setIgnoreReadOnly
public ShareFileRenameOptions setIgnoreReadOnly(Boolean ignoreReadOnly)
Sets a boolean value that specifies whether the ReadOnly attribute on a preexisting destination file should be respected.
Parameters:
Returns:
setMetadata
public ShareFileRenameOptions setMetadata(Map
Sets the metadata to associate with the renamed file.
Parameters:
Returns:
setReplaceIfExists
public ShareFileRenameOptions setReplaceIfExists(Boolean replaceIfExists)
Sets a boolean value which, if the destination file already exists, determines whether this request will overwrite the file or not.
Parameters:
Returns:
setSmbProperties
public ShareFileRenameOptions setSmbProperties(FileSmbProperties smbProperties)
Sets the optional SMB properties to set on the destination file or directory.
Parameters:
Returns:
setSourceRequestConditions
public ShareFileRenameOptions setSourceRequestConditions(ShareRequestConditions sourceRequestConditions)
Sets the source request conditions. This parameter is only applicable if the source is a file.
Parameters:
Returns:
Applies to
Azure SDK for Java