Class ShareFileSetPropertiesOptions
java.lang.Object
com.azure.storage.file.share.options.ShareFileSetPropertiesOptions
Extended options that may be passed when setting properties of a file.
-
Constructor Summary
ConstructorsConstructorDescriptionShareFileSetPropertiesOptions
(long sizeInBytes) Creates a new instance ofShareFileSetPropertiesOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets theShareFilePermission
.Gets the file's http headers.Optional properties to set on NFS files.Gets theShareRequestConditions
.long
Gets the new size for the file share.Gets the optional SMB properties to set on the destination file or directory.setFilePermissions
(ShareFilePermission filePermissions) Sets theShareFilePermission
.setHttpHeaders
(ShareFileHttpHeaders httpHeaders) Sets the file's http headers.setPosixProperties
(FilePosixProperties posixProperties) Optional properties to set on NFS files.setRequestConditions
(ShareRequestConditions requestConditions) Sets theShareRequestConditions
.setSmbProperties
(FileSmbProperties smbProperties) Sets the optional SMB properties to set on the destination file or directory.
-
Constructor Details
-
ShareFileSetPropertiesOptions
public ShareFileSetPropertiesOptions(long sizeInBytes) Creates a new instance ofShareFileSetPropertiesOptions
.- Parameters:
sizeInBytes
- Specifies the new size for the file share in bytes. If the specified byte value is less than the current size of the file, then all ranges above the specified byte value are cleared.
-
-
Method Details
-
getSizeInBytes
public long getSizeInBytes()Gets the new size for the file share.- Returns:
- Gets the new size for the file share.
-
getHttpHeaders
Gets the file's http headers.- Returns:
- the file's http headers.
-
getSmbProperties
Gets the optional SMB properties to set on the destination file or directory.- 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.
-
getFilePermissions
Gets theShareFilePermission
.- Returns:
ShareFilePermission
-
getRequestConditions
Gets theShareRequestConditions
.- Returns:
ShareRequestConditions
-
getPosixProperties
Optional properties to set on NFS files. Note that this property is only applicable to files created in NFS shares.- Returns:
FilePosixProperties
-