public class DeleteBlobOptions extends BlobServiceOptions
deleteBlob
request. These options include an optional server timeout for the operation,
a snapshot timestamp to specify an individual snapshot to delete, a blob
lease ID to delete a blob with an active lease, a flag indicating whether to
delete all snapshots but not the blob, or both the blob and all snapshots,
and any access conditions to satisfy.| Constructor and Description |
|---|
DeleteBlobOptions() |
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.windowsazure.core.utils.AccessConditionHeader |
getAccessCondition()
Gets the access conditions set in this
DeleteBlobOptions
instance. |
Boolean |
getDeleteSnaphotsOnly()
Gets the flag indicating whether to delete only snapshots of the blob, or
both the blob and all its snapshots set in this
DeleteBlobOptions
instance. |
String |
getLeaseId()
Gets the lease ID to match for the blob set in this
DeleteBlobOptions instance. |
String |
getSnapshot()
Gets the snapshot timestamp value set in this
DeleteBlobOptions
instance. |
DeleteBlobOptions |
setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Sets optional access conditions for getting the blob.
|
DeleteBlobOptions |
setDeleteSnaphotsOnly(boolean deleteSnaphotsOnly)
Sets a flag indicating whether to delete only snapshots of the blob, or
both the blob and all its snapshots.
|
DeleteBlobOptions |
setLeaseId(String leaseId)
Sets an optional lease ID value to match when deleting the blob.
|
DeleteBlobOptions |
setSnapshot(String snapshot)
Reserved for future use.
|
DeleteBlobOptions |
setTimeout(Integer timeout)
Sets the optional server request timeout value associated with this
DeleteBlobOptions instance. |
getTimeoutpublic DeleteBlobOptions setTimeout(Integer timeout)
DeleteBlobOptions instance.
The timeout value only affects calls made on methods where this
DeleteBlobOptions instance is passed as a parameter.
setTimeout in class BlobServiceOptionstimeout - The server request timeout value to set in milliseconds.DeleteBlobOptions instance.public String getSnapshot()
DeleteBlobOptions
instance.String containing the snapshot timestamp value of the
blob snapshot to get.public DeleteBlobOptions setSnapshot(String snapshot)
The snapshot timestamp value is an opaque value returned by the server to
identify a snapshot. This option cannot be set if the delete snapshots
only option is set to true or false.
Note that this value only affects calls made on methods where this
DeleteBlobOptions instance is passed as a parameter.
snapshot - A String containing the snapshot timestamp value of
the blob snapshot to get.DeleteBlobOptions instance.public String getLeaseId()
DeleteBlobOptions instance.String containing the lease ID set, if any.public DeleteBlobOptions setLeaseId(String leaseId)
Note that this value only affects calls made on methods where this
DeleteBlobOptions instance is passed as a parameter.
leaseId - A String containing the lease ID to set.DeleteBlobOptions instance.public Boolean getDeleteSnaphotsOnly()
DeleteBlobOptions
instance.true to delete only the snapshots, or
false to delete both snapshots and the blob. When
the value null is set, x-ms-delete-snapshots in the
header will not be set.public DeleteBlobOptions setDeleteSnaphotsOnly(boolean deleteSnaphotsOnly)
If the deleteSnaphotsOnly parameter is set to true,
only the snapshots of the blob are deleted by the operation. If the
parameter is set to false, both the blob and all its
snapshots are deleted by the operation. If this option is not set on a
request, and the blob has associated snapshots, the Blob service returns
a 409 (Conflict) status code and a ServiceException is thrown.
This option is not compatible with the snapshot option; if both are set
the Blob service returns status code 400 (Bad Request) and a
StorageException is thrown.
Note that this value only affects calls made on methods where this
DeleteBlobOptions instance is passed as a parameter.
deleteSnaphotsOnly - Set to true to delete only the snapshots, or
false to delete both snapshots and the blob.DeleteBlobOptions instance.public com.microsoft.windowsazure.core.utils.AccessConditionHeader getAccessCondition()
DeleteBlobOptions
instance.AccessCondition containing the access conditions set,
if any.public DeleteBlobOptions setAccessCondition(com.microsoft.windowsazure.core.utils.AccessConditionHeader accessCondition)
Note that this value only affects calls made on methods where this
DeleteBlobOptions instance is passed as a parameter.
accessCondition - An AccessCondition containing the access conditions to
set.DeleteBlobOptions 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.
*/