Partager via


ShareFileCreateHardLinkOptions Class

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

public final class ShareFileCreateHardLinkOptions

Options that may be passed when creating a hard link for a file.

Constructor Summary

Constructor Description
ShareFileCreateHardLinkOptions(String targetFile)

Creates a new instance of ShareFileCreateHardLinkOptions.

Method Summary

Modifier and Type Method and Description
ShareRequestConditions getRequestConditions()

Optional ShareRequestConditions to add conditions on creating the hard link.

String getTargetFile()

Gets the path of the target file to create the hard link to, not including the share.

ShareFileCreateHardLinkOptions setRequestConditions(ShareRequestConditions requestConditions)

Optional ShareRequestConditions to add conditions on creating the hard link.

Methods inherited from java.lang.Object

Constructor Details

ShareFileCreateHardLinkOptions

public ShareFileCreateHardLinkOptions(String targetFile)

Creates a new instance of ShareFileCreateHardLinkOptions.

Parameters:

targetFile - Path of the file to create the hard link to, not including the share. For example, targetDirectory/targetSubDirectory/.../targetFile

Method Details

getRequestConditions

public ShareRequestConditions getRequestConditions()

Optional ShareRequestConditions to add conditions on creating the hard link.

Returns:

the ShareRequestConditions for the creation of the hard link.

getTargetFile

public String getTargetFile()

Gets the path of the target file to create the hard link to, not including the share.

Returns:

the path of the target file to create the hard link to, not including the share. For example, targetDirectory/targetSubDirectory/.../targetFile

setRequestConditions

public ShareFileCreateHardLinkOptions setRequestConditions(ShareRequestConditions requestConditions)

Optional ShareRequestConditions to add conditions on creating the hard link.

Parameters:

requestConditions - ShareRequestConditions

Returns:

the updated options.

Applies to