BlobCopyFromUrlOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlobCopyFromUrlOptions
- com.
public class BlobCopyFromUrlOptions
Extended options that may be passed when copying a blob.
Constructor Summary
Constructor | Description |
---|---|
BlobCopyFromUrlOptions(String copySource) |
Creates a new instance of BlobCopyFromUrlOptions. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
BlobCopyFromUrlOptions
public BlobCopyFromUrlOptions(String copySource)
Creates a new instance of BlobCopyFromUrlOptions.
Parameters:
Method Details
getCopySource
public String getCopySource()
Gets the source URL to copy from.
Returns:
getCopySourceTagsMode
public BlobCopySourceTagsMode getCopySourceTagsMode()
Gets the copy source tags mode.
Returns:
getDestinationRequestConditions
public BlobRequestConditions getDestinationRequestConditions()
Gets the BlobRequestConditions for the destination.
Returns:
getImmutabilityPolicy
getMetadata
public Map
Gets the metadata to associate with the destination blob.
Returns:
getSourceAuthorization
public HttpAuthorization getSourceAuthorization()
Gets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.
Returns:
getSourceRequestConditions
public RequestConditions getSourceRequestConditions()
Gets the RequestConditions for the source.
Returns:
getTags
public Map
Gets the tags to associate with the blob.
Returns:
getTier
public AccessTier getTier()
Gets the AccessTier for the destination blob.
Returns:
hasLegalHold
public Boolean hasLegalHold()
Gets if a legal hold should be placed on the blob.
Returns:
setCopySourceTagsMode
public BlobCopyFromUrlOptions setCopySourceTagsMode(BlobCopySourceTagsMode copySourceTags)
Sets the copy source tags mode
Parameters:
Returns:
setDestinationRequestConditions
public BlobCopyFromUrlOptions setDestinationRequestConditions(BlobRequestConditions destinationRequestConditions)
Sets the BlobRequestConditions for the destination.
Parameters:
Returns:
setImmutabilityPolicy
public BlobCopyFromUrlOptions setImmutabilityPolicy(BlobImmutabilityPolicy immutabilityPolicy)
Sets the BlobImmutabilityPolicy.
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
Returns:
setLegalHold
public BlobCopyFromUrlOptions setLegalHold(Boolean legalHold)
Sets if a legal hold should be placed on the blob.
Note that this parameter is only applicable to a blob within a container that has immutable storage with versioning enabled.
Parameters:
Returns:
setMetadata
public BlobCopyFromUrlOptions setMetadata(Map
Sets the metadata to associate with the destination blob.
Parameters:
Returns:
setSourceAuthorization
public BlobCopyFromUrlOptions setSourceAuthorization(HttpAuthorization sourceAuthorization)
Sets "Authorization" header for accessing source URL. Currently only "Bearer" authentication is accepted by Storage.
Parameters:
Returns:
setSourceRequestConditions
public BlobCopyFromUrlOptions setSourceRequestConditions(RequestConditions sourceRequestConditions)
Sets the RequestConditions for the source.
Parameters:
Returns:
setTags
public BlobCopyFromUrlOptions setTags(Map
Sets the tags to associate with the blob.
Parameters:
Returns:
setTier
public BlobCopyFromUrlOptions setTier(AccessTier tier)
Sets the AccessTier for the destination blob.
Parameters:
Returns: