public class CreateBlobSnapshotOptions extends BlobServiceOptions
createBlobSnapshot request. These options include an optional server timeout
for the operation, blob metadata to set on the snapshot, a blob lease ID to
get a blob with an active lease, an optional start and end range for blob
content to return, and any access conditions to satisfy.| Constructor and Description |
|---|
CreateBlobSnapshotOptions() |
| Modifier and Type | Method and Description |
|---|---|
CreateBlobSnapshotOptions |
addMetadata(String key,
String value)
Adds a name-value pair to the metadata collection associated with this
CreateBlobSnapshotOptions instance. |
com.microsoft.windowsazure.core.utils.AccessConditionHeader |
getAccessCondition()
Gets the access conditions set in this
CreateBlobSnapshotOptions
instance. |
String |
getLeaseId()
Gets the lease ID to match for the blob set in this
CreateBlobSnapshotOptions instance. |
HashMap<String,String> |
getMetadata()
Gets the metadata collection set in this
CreateBlobSnapshotOptions instance. |
CreateBlobSnapshotOptions |
setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Sets optional access conditions for creating a snapshot of the blob.
|
CreateBlobSnapshotOptions |
setLeaseId(String leaseId)
Sets an optional lease ID value to match when creating a snapshot of the
blob.
|
CreateBlobSnapshotOptions |
setMetadata(HashMap<String,String> metadata)
Sets the metadata collection to associate with a snapshot.
|
CreateBlobSnapshotOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
CreateBlobSnapshotOptions instance. |
getTimeoutpublic CreateBlobSnapshotOptions setTimeout(Integer timeout)
CreateBlobSnapshotOptions instance.
The timeout value only affects calls made on methods where this
CreateBlobSnapshotOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.CreateBlobSnapshotOptions instance.public HashMap<String,String> getMetadata()
CreateBlobSnapshotOptions instance.public CreateBlobSnapshotOptions 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.
The metadata value only affects calls made on methods where this
CreateBlobSnapshotOptions instance is passed as a parameter.
metadata - A HashMap of name-value pairs of
String containing the names and values of the metadata
to set.CreateBlobSnapshotOptions instance.public CreateBlobSnapshotOptions addMetadata(String key, String value)
CreateBlobSnapshotOptions instance.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.CreateBlobSnapshotOptions instance.public String getLeaseId()
CreateBlobSnapshotOptions instance.String containing the lease ID set, if any.public CreateBlobSnapshotOptions setLeaseId(String leaseId)
Note that this value only affects calls made on methods where this
CreateBlobSnapshotOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.CreateBlobSnapshotOptions instance.public com.microsoft.windowsazure.core.utils.AccessConditionHeader getAccessCondition()
CreateBlobSnapshotOptions
instance.AccessCondition containing the access conditions set,
if any.public CreateBlobSnapshotOptions setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Note that this value only affects calls made on methods where this
CreateBlobSnapshotOptions instance is passed as a parameter.
accessCondition - An AccessCondition containing the access conditions to
set.CreateBlobSnapshotOptions 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.
*/