共用方式為


ShareFileSetPropertiesOptions Class

  • java.lang.Object
    • com.azure.storage.file.share.options.ShareFileSetPropertiesOptions

public class ShareFileSetPropertiesOptions

Extended options that may be passed when setting properties of a file.

Constructor Summary

Constructor Description
ShareFileSetPropertiesOptions(long sizeInBytes)

Method Summary

Modifier and Type Method and Description
ShareFilePermission getFilePermissions()

Gets the ShareFilePermission.

ShareFileHttpHeaders getHttpHeaders()
ShareRequestConditions getRequestConditions()

Gets the ShareRequestConditions.

long getSizeInBytes()
FileSmbProperties getSmbProperties()
ShareFileSetPropertiesOptions setFilePermissions(ShareFilePermission filePermissions)

Sets the ShareFilePermission.

ShareFileSetPropertiesOptions setHttpHeaders(ShareFileHttpHeaders httpHeaders)

Sets the file's http headers.

ShareFileSetPropertiesOptions setRequestConditions(ShareRequestConditions requestConditions)

Sets the ShareRequestConditions.

ShareFileSetPropertiesOptions setSmbProperties(FileSmbProperties smbProperties)

Methods inherited from java.lang.Object

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

getFilePermissions

public ShareFilePermission getFilePermissions()

Gets the ShareFilePermission.

Returns:

getHttpHeaders

public ShareFileHttpHeaders getHttpHeaders()

Returns:

the file's http headers.

getRequestConditions

public ShareRequestConditions getRequestConditions()

Gets the ShareRequestConditions.

Returns:

getSizeInBytes

public long getSizeInBytes()

Returns:

Gets the new size for the file share.

getSmbProperties

public FileSmbProperties 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.

setFilePermissions

public ShareFileSetPropertiesOptions setFilePermissions(ShareFilePermission filePermissions)

Sets the ShareFilePermission.

Parameters:

filePermissions - ShareFilePermission

Returns:

The updated options.

setHttpHeaders

public ShareFileSetPropertiesOptions setHttpHeaders(ShareFileHttpHeaders httpHeaders)

Sets the file's http headers.

Parameters:

httpHeaders - the http headers.

Returns:

the updated options.

setRequestConditions

public ShareFileSetPropertiesOptions setRequestConditions(ShareRequestConditions requestConditions)

Sets the ShareRequestConditions.

Parameters:

requestConditions - ShareRequestConditions

Returns:

The updated options.

setSmbProperties

public ShareFileSetPropertiesOptions setSmbProperties(FileSmbProperties smbProperties)

Parameters:

smbProperties - 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.

Returns:

The updated options.

Applies to