public class CopyBlobOptions extends BlobServiceOptions
copyBlob request. These options include an optional server timeout for the
operation, an optional source snapshot timestamp value to copy from a
particular snapshot of the source blob, blob metadata to set on the
destination blob, a blob lease ID to overwrite a blob with an active lease, a
source lease ID to copy from a source blob with an active lease, any access
conditions to satisfy on the destination, and any access conditions to
satisfy on the source.| Constructor and Description |
|---|
CopyBlobOptions() |
| Modifier and Type | Method and Description |
|---|---|
CopyBlobOptions |
addMetadata(String key,
String value)
Adds a name-value pair to the blob metadata collection associated with
this
CopyBlobOptions instance. |
com.microsoft.windowsazure.core.utils.AccessConditionHeader |
getAccessCondition()
Gets the access conditions on the destination blob set in this
CopyBlobOptions instance. |
String |
getLeaseId()
Gets the lease ID to match for the destination blob set in this
CopyBlobOptions instance. |
HashMap<String,String> |
getMetadata()
Gets the blob metadata collection set in this
CopyBlobOptions
instance. |
com.microsoft.windowsazure.core.utils.AccessConditionHeader |
getSourceAccessCondition()
Gets the access conditions on the source blob set in this
CopyBlobOptions instance. |
String |
getSourceLeaseId()
Gets the lease ID to match for the source blob set in this
CopyBlobOptions instance. |
String |
getSourceSnapshot()
Gets the source snapshot timestamp value set in this
CopyBlobOptions instance. |
CopyBlobOptions |
setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Sets optional access conditions for the destination blob.
|
CopyBlobOptions |
setLeaseId(String leaseId)
Sets a lease ID value to match on the destination blob.
|
CopyBlobOptions |
setMetadata(HashMap<String,String> metadata)
Sets the blob metadata collection to associate with the destination blob.
|
CopyBlobOptions |
setSourceAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader sourceAccessCondition)
Sets optional access conditions for the source blob.
|
CopyBlobOptions |
setSourceLeaseId(String sourceLeaseId)
Sets a lease ID value to match on the source blob.
|
CopyBlobOptions |
setSourceSnapshot(String sourceSnapshot)
Sets the snapshot timestamp value used to identify the particular
snapshot of the source blob to copy.
|
CopyBlobOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
CopyBlobOptions instance. |
getTimeoutpublic CopyBlobOptions setTimeout(Integer timeout)
CopyBlobOptions instance.
The timeout value only affects calls made on methods where this
CopyBlobOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.CopyBlobOptions instance.public String getSourceSnapshot()
CopyBlobOptions instance.String containing the snapshot timestamp value of the
source blob snapshot to list.public CopyBlobOptions setSourceSnapshot(String sourceSnapshot)
Note that this value only affects calls made on methods where this
ListBlobBlocksOptions instance is passed as a parameter.
sourceSnapshot - A String containing the snapshot timestamp value of
the source blob snapshot to list.ListBlobBlocksOptions instance.public HashMap<String,String> getMetadata()
CopyBlobOptions
instance.public CopyBlobOptions setMetadata(HashMap<String,String> metadata)
String pairs for client
use and is opaque to the server. Metadata names must adhere to the naming
rules for C#
identifiers.
Note that if any metadata is set with this option, no source blob metadata will be copied to the destination blob.
The metadata value only affects calls made on methods where this
CreateBlobOptions instance is passed as a parameter.
metadata - A HashMap of name-value pairs of String
containing the blob metadata to set.CreateBlobOptions instance.public CopyBlobOptions addMetadata(String key, String value)
CopyBlobOptions instance.
Note that if any metadata is set with this option, no source blob metadata will be copied to the destination blob.
key - A String containing the name portion of the name-value
pair to add to the metadata collection.value - A String containing the value portion of the
name-value pair to add to the metadata collection.CopyBlobOptions instance.public String getLeaseId()
CopyBlobOptions instance.String containing the lease ID set, if any.public CopyBlobOptions setLeaseId(String leaseId)
Note that this value only affects calls made on methods where this
CopyBlobOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.CopyBlobOptions instance.public String getSourceLeaseId()
CopyBlobOptions instance.String containing the source blob lease ID set, if any.public CopyBlobOptions setSourceLeaseId(String sourceLeaseId)
Note that this value only affects calls made on methods where this
CopyBlobOptions instance is passed as a parameter.
sourceLeaseId - A String containing the source blob lease ID to set.CopyBlobOptions instance.public com.microsoft.windowsazure.core.utils.AccessConditionHeader getAccessCondition()
CopyBlobOptions instance.AccessCondition containing the destination blob access
conditions set, if any.public CopyBlobOptions setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Note that this value only affects calls made on methods where this
CopyBlobOptions instance is passed as a parameter.
accessCondition - An AccessCondition containing the destination blob
access conditions to set.CopyBlobOptions instance.public com.microsoft.windowsazure.core.utils.AccessConditionHeader getSourceAccessCondition()
CopyBlobOptions instance.AccessCondition containing the source blob access
conditions set, if any.public CopyBlobOptions setSourceAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader sourceAccessCondition)
Note that this value only affects calls made on methods where this
CopyBlobOptions instance is passed as a parameter.
sourceAccessCondition - An AccessCondition containing the source blob access
conditions to set.CopyBlobOptions instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/