Class ShareFileUploadRangeFromUrlOptions
java.lang.Object
com.azure.storage.file.share.options.ShareFileUploadRangeFromUrlOptions
Extended options that may be passed when uploading a range from a source URL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets theFileLastWrittenMode
.long
com.azure.core.http.HttpAuthorization
long
setDestinationOffset
(long destinationOffset) setDestinationRequestConditions
(ShareRequestConditions destinationRequestConditions) setLastWrittenMode
(FileLastWrittenMode lastWrittenMode) Sets theFileLastWrittenMode
.setSourceAuthorization
(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceOffset
(long sourceOffset)
-
Constructor Details
-
ShareFileUploadRangeFromUrlOptions
- Parameters:
length
- data length to upload for this operation.sourceUrl
- source URL for this operation.
-
-
Method Details
-
getLength
public long getLength()- Returns:
- data length to upload for this operation.
-
getSourceUrl
- Returns:
- source URL for this operation.
-
getDestinationOffset
public long getDestinationOffset()- Returns:
- destination offset for this operation.
-
setDestinationOffset
- Parameters:
destinationOffset
- offset for upload destination.- Returns:
- modified options.
-
getSourceOffset
public long getSourceOffset()- Returns:
- source offset for this operation.
-
setSourceOffset
- Parameters:
sourceOffset
- offset for upload source.- Returns:
- modified options.
-
getSourceAuthorization
public com.azure.core.http.HttpAuthorization getSourceAuthorization()- Returns:
- optional auth header for access to source URL for this operation.
-
setSourceAuthorization
public ShareFileUploadRangeFromUrlOptions setSourceAuthorization(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.- Parameters:
sourceAuthorization
- optional auth header for access to source URL.- Returns:
- modified options.
-
getDestinationRequestConditions
- Returns:
ShareRequestConditions
for this operation.
-
getLastWrittenMode
Gets theFileLastWrittenMode
.- Returns:
- The
FileLastWrittenMode
.
-