Class ShareFileCreateOptions
java.lang.Object
com.azure.storage.file.share.options.ShareFileCreateOptions
Extended options that may be passed when creating a share.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the file permission.Gets the file permission format.Gets theShareRequestConditions.longgetSize()setFilePermission(String filePermissionKey) Sets the file permission.setFilePermissionFormat(FilePermissionFormat filePermissionFormat) Sets the file permission format.setMetadata(Map<String, String> metadata) setRequestConditions(ShareRequestConditions requestConditions) Sets theShareRequestConditions.Sets the file's http headers.setSmbProperties(FileSmbProperties smbProperties)
-
Constructor Details
-
ShareFileCreateOptions
public ShareFileCreateOptions(long size) - Parameters:
size- Specifies the maximum size for the file share.
-
-
Method Details
-
getSize
public long getSize()- Returns:
- Specifies the maximum size for the file share.
-
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.
-
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.
-
getRequestConditions
Gets theShareRequestConditions.- Returns:
ShareRequestConditions
-
getFilePermission
Gets the file permission.- Returns:
- file permission.
-
setFilePermission
Sets the file permission.- Parameters:
filePermissionKey- the file permission.- Returns:
- The updated options.
-
getFilePermissionFormat
Gets the file permission format.- Returns:
- file permission format.
-