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
ConstructorsConstructorDescriptionShareFileUploadRangeFromUrlOptions
(long length, String sourceUrl) Creates a new instance ofShareFileUploadRangeFromUrlOptions
. -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the destination offset for this operation.GetsShareRequestConditions
for this operation.Gets theFileLastWrittenMode
.long
Gets the length of the data to upload for this operation.com.azure.core.http.HttpAuthorization
Gets "Authorization" header for accessing source URL.long
Gets the source offset for this operation.Gets the source URL for this operation.setDestinationOffset
(long destinationOffset) Sets the destination offset for this operation.setDestinationRequestConditions
(ShareRequestConditions destinationRequestConditions) SetsShareRequestConditions
for this operation.setLastWrittenMode
(FileLastWrittenMode lastWrittenMode) Sets theFileLastWrittenMode
.setSourceAuthorization
(com.azure.core.http.HttpAuthorization sourceAuthorization) Sets "Authorization" header for accessing source URL.setSourceOffset
(long sourceOffset) Sets the source offset for this operation.
-
Constructor Details
-
ShareFileUploadRangeFromUrlOptions
Creates a new instance ofShareFileUploadRangeFromUrlOptions
.- Parameters:
length
- data length to upload for this operation.sourceUrl
- source URL for this operation.- Throws:
NullPointerException
- ifsourceUrl
is null.
-
-
Method Details
-
getLength
public long getLength()Gets the length of the data to upload for this operation.- Returns:
- data length to upload for this operation.
-
getSourceUrl
Gets the source URL for this operation.- Returns:
- source URL for this operation.
-
getDestinationOffset
public long getDestinationOffset()Gets the destination offset for this operation.- Returns:
- destination offset for this operation.
-
setDestinationOffset
Sets the destination offset for this operation.- Parameters:
destinationOffset
- offset for upload destination.- Returns:
- modified options.
-
getSourceOffset
public long getSourceOffset()Gets the source offset for this operation.- Returns:
- source offset for this operation.
-
setSourceOffset
Sets the source offset for this operation.- Parameters:
sourceOffset
- offset for upload source.- Returns:
- modified options.
-
getSourceAuthorization
public com.azure.core.http.HttpAuthorization getSourceAuthorization()Gets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.- 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
GetsShareRequestConditions
for this operation.- Returns:
ShareRequestConditions
for this operation.
-
getLastWrittenMode
Gets theFileLastWrittenMode
.- Returns:
- The
FileLastWrittenMode
.
-