public final class BlobProperties extends Object
| Constructor and Description |
|---|
BlobProperties()
Creates an instance of the
BlobProperties class. |
BlobProperties(BlobProperties other)
Creates an instance of the
BlobProperties class by copying values from another instance of the
BlobProperties class. |
BlobProperties(BlobType type)
Creates an instance of the
BlobProperties class. |
| Modifier and Type | Method and Description |
|---|---|
BlobType |
getBlobType()
Gets the blob type for the blob.
|
String |
getCacheControl()
Gets the cache control value for the blob.
|
String |
getContentDisposition()
Gets the content disposition value for the blob.
|
String |
getContentEncoding()
Gets the content encoding value for the blob.
|
String |
getContentLanguage()
Gets the content language value for the blob.
|
String |
getContentMD5()
Gets the content MD5 value for the blob.
|
String |
getContentType()
Gets the content type value for the blob.
|
CopyState |
getCopyState()
Gets the blob's copy state.
|
String |
getEtag()
Gets the ETag value for the blob.
|
Date |
getLastModified()
Gets the last modified time for the blob.
|
LeaseDuration |
getLeaseDuration()
Gets the lease duration for the blob.
|
LeaseState |
getLeaseState()
Gets the lease state for the blob.
|
LeaseStatus |
getLeaseStatus()
Gets the lease status for the blob.
|
long |
getLength()
Gets the size, in bytes, of the blob.
|
Long |
getPageBlobSequenceNumber()
If the blob is a page blob, gets the page blob's current sequence number.
|
protected void |
setBlobType(BlobType blobType)
Sets the blob type.
|
void |
setCacheControl(String cacheControl)
Sets the cache control value for the blob.
|
void |
setContentDisposition(String contentDisposition)
Sets the content disposition value for the blob.
|
void |
setContentEncoding(String contentEncoding)
Sets the content encoding value for the blob.
|
void |
setContentLanguage(String contentLanguage)
Sets the content language for the blob.
|
void |
setContentMD5(String contentMD5)
Sets the content MD5 value for the blob.
|
void |
setContentType(String contentType)
Sets the content type value for the blob.
|
protected void |
setCopyState(CopyState copyState)
Sets the copy state value for the blob
|
protected void |
setEtag(String etag)
Sets the ETag value for the blob.
|
protected void |
setLastModified(Date lastModified)
Sets the last modified time for the blob.
|
protected void |
setLeaseDuration(LeaseDuration leaseDuration)
Sets the lease duration for the blob.
|
protected void |
setLeaseState(LeaseState leaseState)
Sets the lease state for the blob.
|
protected void |
setLeaseStatus(LeaseStatus leaseStatus)
Sets the lease status for the blob.
|
protected void |
setLength(long length)
Sets the content length, in bytes, for the blob.
|
protected void |
setPageBlobSequenceNumber(Long pageBlobSequenceNumber)
If the blob is a page blob, sets the blob's current sequence number.
|
public BlobProperties()
BlobProperties class.public BlobProperties(BlobProperties other)
BlobProperties class by copying values from another instance of the
BlobProperties class.other - A BlobProperties object which represents the blob properties to copy.public BlobProperties(BlobType type)
BlobProperties class.type - A BlobType object which represents the blob type.public BlobType getBlobType()
BlobType value that represents the blob type.public String getCacheControl()
String which represents the content cache control value for the blob.public String getContentDisposition()
String which represents the content disposition, or null if content disposition has not been set
on the blob.public String getContentEncoding()
String which represents the content encoding, or null if content encoding has not been set
on the blob.public String getContentLanguage()
String which represents the content language, or null if content language has not been set on
the blob.public String getContentMD5()
String which represents the content MD5 value.public String getContentType()
String which represents the content type, or null if the content type has not be set for the blob.public CopyState getCopyState()
CopyState object which represents the copy state of the blob.public String getEtag()
The ETag value is a unique identifier that is updated when a write operation is performed against the container. It may be used to perform operations conditionally, providing concurrency control and improved efficiency.
The AccessCondition#ifMatch and AccessCondition#ifNoneMatch methods take an ETag value and return
an AccessCondition object that may be specified on the request.
String which represents the ETag value.public Date getLastModified()
Date object which represents the last modified time.public LeaseStatus getLeaseStatus()
LeaseStatus object which represents the lease status.public LeaseState getLeaseState()
LeaseState object which represents the lease state.public LeaseDuration getLeaseDuration()
LeaseDuration object which represents the lease duration.public long getLength()
long which represents the length of the blob.public Long getPageBlobSequenceNumber()
Long containing the page blob's current sequence number.public void setCacheControl(String cacheControl)
cacheControl - A String which specifies the cache control value to set.public void setContentDisposition(String contentDisposition)
contentDisposition - A String which specifies the content disposition value to set.public void setContentEncoding(String contentEncoding)
contentEncoding - A String which specifies the content encoding value to set.public void setContentLanguage(String contentLanguage)
contentLanguage - A String which specifies the content language value to set.public void setContentMD5(String contentMD5)
contentMD5 - A String which specifies the content MD5 value to set.public void setContentType(String contentType)
contentType - A String which specifies the content type value to set.protected void setBlobType(BlobType blobType)
blobType - A BlobType object which specifies the blob type to set.protected void setCopyState(CopyState copyState)
copyState - A CopyState object which specifies the copy state value to set.protected void setEtag(String etag)
etag - A String which specifies the ETag value to set.protected void setLastModified(Date lastModified)
lastModified - A Date object which specifies the last modified time to set.protected void setLeaseStatus(LeaseStatus leaseStatus)
leaseStatus - A LeaseStatus object which specifies the lease status value to set.protected void setLeaseState(LeaseState leaseState)
leaseState - A LeaseState object which specifies the lease state value to set.protected void setLeaseDuration(LeaseDuration leaseDuration)
leaseDuration - A LeaseDuration object which specifies the lease duration value to set.protected void setLength(long length)
length - A long which specifies the length to set.protected void setPageBlobSequenceNumber(Long pageBlobSequenceNumber)
pageBlobSequenceNumber - A long containing the blob's current sequence number./**
* 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.
*/