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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theShareFilePermission.Gets theShareRequestConditions.longsetFilePermissions(ShareFilePermission filePermissions) Sets theShareFilePermission.setHttpHeaders(ShareFileHttpHeaders httpHeaders) Sets the file's http headers.setRequestConditions(ShareRequestConditions requestConditions) Sets theShareRequestConditions.setSmbProperties(FileSmbProperties smbProperties)
-
Constructor Details
-
ShareFileSetPropertiesOptions
public ShareFileSetPropertiesOptions(long sizeInBytes) - 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()- Returns:
- Gets the new size for the file share.
-
getHttpHeaders
- Returns:
- the file's http headers.
-
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.
-
getFilePermissions
Gets theShareFilePermission.- Returns:
ShareFilePermission
-
getRequestConditions
Gets theShareRequestConditions.- Returns:
ShareRequestConditions
-