Class ShareFileCreateHardLinkOptions
java.lang.Object
com.azure.storage.file.share.options.ShareFileCreateHardLinkOptions
Options that may be passed when creating a hard link for a file.
-
Constructor Summary
ConstructorsConstructorDescriptionShareFileCreateHardLinkOptions(String targetFile) Creates a new instance ofShareFileCreateHardLinkOptions. -
Method Summary
Modifier and TypeMethodDescriptionOptionalShareRequestConditionsto add conditions on creating the hard link.Gets the path of the target file to create the hard link to, not including the share.setRequestConditions(ShareRequestConditions requestConditions) OptionalShareRequestConditionsto add conditions on creating the hard link.
-
Constructor Details
-
ShareFileCreateHardLinkOptions
Creates a new instance ofShareFileCreateHardLinkOptions.- Parameters:
targetFile- Path of the file to create the hard link to, not including the share. For example,targetDirectory/targetSubDirectory/.../targetFile
-
-
Method Details
-
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
-
getRequestConditions
OptionalShareRequestConditionsto add conditions on creating the hard link.- Returns:
- the
ShareRequestConditionsfor the creation of the hard link.
-