Class ShareFileUploadRangeFromUrlOptions
- java.lang.Object
-
- com.azure.storage.file.share.options.ShareFileUploadRangeFromUrlOptions
-
public final class ShareFileUploadRangeFromUrlOptions extends Object
Extended options that may be passed when uploading a range from a source URL.
-
-
Constructor Summary
Constructors Constructor Description ShareFileUploadRangeFromUrlOptions(long length, String sourceUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDestinationOffset()
ShareRequestConditions
getDestinationRequestConditions()
FileLastWrittenMode
getLastWrittenMode()
Gets theFileLastWrittenMode
.long
getLength()
com.azure.core.http.HttpAuthorization
getSourceAuthorization()
long
getSourceOffset()
String
getSourceUrl()
ShareFileUploadRangeFromUrlOptions
setDestinationOffset(long destinationOffset)
ShareFileUploadRangeFromUrlOptions
setDestinationRequestConditions(ShareRequestConditions destinationRequestConditions)
ShareFileUploadRangeFromUrlOptions
setLastWrittenMode(FileLastWrittenMode lastWrittenMode)
Sets theFileLastWrittenMode
.ShareFileUploadRangeFromUrlOptions
setSourceAuthorization(com.azure.core.http.HttpAuthorization sourceAuthorization)
Sets "Authorization" header for accessing source URL.ShareFileUploadRangeFromUrlOptions
setSourceOffset(long sourceOffset)
-
-
-
Constructor Detail
-
ShareFileUploadRangeFromUrlOptions
public ShareFileUploadRangeFromUrlOptions(long length, String sourceUrl)
- Parameters:
length
- data length to upload for this operation.sourceUrl
- source URL for this operation.
-
-
Method Detail
-
getLength
public long getLength()
- Returns:
- data length to upload for this operation.
-
getSourceUrl
public String getSourceUrl()
- Returns:
- source URL for this operation.
-
getDestinationOffset
public long getDestinationOffset()
- Returns:
- destination offset for this operation.
-
setDestinationOffset
public ShareFileUploadRangeFromUrlOptions setDestinationOffset(long destinationOffset)
- Parameters:
destinationOffset
- offset for upload destination.- Returns:
- modified options.
-
getSourceOffset
public long getSourceOffset()
- Returns:
- source offset for this operation.
-
setSourceOffset
public ShareFileUploadRangeFromUrlOptions setSourceOffset(long sourceOffset)
- 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
public ShareRequestConditions getDestinationRequestConditions()
- Returns:
ShareRequestConditions
for this operation.
-
setDestinationRequestConditions
public ShareFileUploadRangeFromUrlOptions setDestinationRequestConditions(ShareRequestConditions destinationRequestConditions)
- Parameters:
destinationRequestConditions
-ShareRequestConditions
for this operation.- Returns:
- modified options.
-
getLastWrittenMode
public FileLastWrittenMode getLastWrittenMode()
Gets theFileLastWrittenMode
.- Returns:
- The
FileLastWrittenMode
.
-
setLastWrittenMode
public ShareFileUploadRangeFromUrlOptions setLastWrittenMode(FileLastWrittenMode lastWrittenMode)
Sets theFileLastWrittenMode
.- Parameters:
lastWrittenMode
-FileLastWrittenMode
- Returns:
- The updated options.
-
-