public class BlobProperties extends Object
| Constructor and Description |
|---|
BlobProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBlobType()
Gets a string representing the type of the blob, with a value of
"BlockBlob" for block blobs, and "PageBlob" for page blobs.
|
String |
getCacheControl()
Gets the HTTP cache control value of the blob.
|
String |
getContentEncoding()
Gets the HTTP content encoding value of the blob.
|
String |
getContentLanguage()
Gets the HTTP content language value of the blob.
|
long |
getContentLength()
Gets the size of the blob in bytes.
|
String |
getContentMD5()
Gets the MD5 hash value of the blob content.
|
String |
getContentType()
Gets the MIME content type of the blob.
|
String |
getEtag()
Gets the ETag of the blob.
|
Date |
getLastModified()
Gets the last modified time of the blob.
|
String |
getLeaseStatus()
Gets a string representing the lease status of the blob, with a value of
"locked" for blobs with an active lease, and "unlocked" for blobs without
an active lease.
|
long |
getSequenceNumber()
Gets the current sequence number for a page blob.
|
void |
setBlobType(String blobType)
Reserved for internal use.
|
void |
setCacheControl(String cacheControl)
Reserved for internal use.
|
void |
setContentEncoding(String contentEncoding)
Reserved for internal use.
|
void |
setContentLanguage(String contentLanguage)
Reserved for internal use.
|
void |
setContentLength(long contentLength)
Reserved for internal use.
|
void |
setContentMD5(String contentMD5)
Reserved for internal use.
|
void |
setContentType(String contentType)
Reserved for internal use.
|
void |
setEtag(String etag)
Reserved for internal use.
|
void |
setLastModified(Date lastModified)
Reserved for internal use.
|
void |
setLeaseStatus(String leaseStatus)
Reserved for internal use.
|
void |
setSequenceNumber(long sequenceNumber)
Reserved for internal use.
|
public Date getLastModified()
Any operation that modifies the blob, including updates to the blob's metadata or properties, changes the last modified time of the blob. This value can be used in an access condition when updating or deleting a blob to prevent the client from modifying data that has been changed by another client.
Date containing the last modified time of the
blob.public void setLastModified(Date lastModified)
Last-Modified header value returned in a server
response.
This method is invoked by the API to set the value from the Blob Service REST API operation response returned by the server.
lastModified - A Date containing the last modified time of
the blob.public String getEtag()
This value can be used in an access condition when updating or deleting a blob to prevent the client from modifying data that has been changed by another client.
String containing the server-assigned ETag value for
the blob.public void setEtag(String etag)
ETag header value returned in a server response.
This method is invoked by the API to set the value from the Blob Service REST API operation response returned by the server.
etag - A String containing the server-assigned ETag value for
the blob.public String getContentType()
String containing the MIME content type value for the
blob.public void setContentType(String contentType)
Content-Type header value returned in the server
response.contentType - A String containing the MIME content type value for
the blob.public long getContentLength()
public void setContentLength(long contentLength)
Content-Length header value returned in the server
response.contentLength - The size of the blob in bytes.public String getContentEncoding()
String containing the HTTP content encoding value set,
if any.public void setContentEncoding(String contentEncoding)
Content-Encoding header value returned in the
server response.contentEncoding - A String containing the HTTP content encoding value to
set.public String getContentLanguage()
String containing the HTTP content language value set,
if any.public void setContentLanguage(String contentLanguage)
Content-Language header value returned in the
server response.contentLanguage - A String containing the HTTP content language value to
set.public String getContentMD5()
String containing the MD5 hash value of the blob
content.public void setContentMD5(String contentMD5)
Content-MD5 header value returned in the server
response.contentMD5 - A String containing the MD5 hash value of the blob
content.public String getCacheControl()
String containing the HTTP cache control value of the
blob.public void setCacheControl(String cacheControl)
Cache-Control header value returned in the server
response.cacheControl - A String containing the HTTP cache control value of
the blob.public String getBlobType()
String containing "BlockBlob" for block blobs, or
"PageBlob" for page blobs.public void setBlobType(String blobType)
x-ms-blob-type header value returned in the server response.blobType - A String containing "BlockBlob" for block blobs, or
"PageBlob" for page blobs.public String getLeaseStatus()
String containing "locked" for blobs with an active
lease, and "unlocked" for blobs without an active lease.public void setLeaseStatus(String leaseStatus)
x-ms-lease-status header value returned in the server
response.leaseStatus - A String containing "locked" for blobs with an active
lease, and "unlocked" for blobs without an active lease.public long getSequenceNumber()
public void setSequenceNumber(long sequenceNumber)
x-ms-blob-sequence-number header value returned in the
server response.sequenceNumber - The current sequence number of the page blob./**
* 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.
*/