public class BlobProperties
extends java.lang.Object
Constructor and Description |
---|
BlobProperties(long blobSize,
java.lang.String serviceId,
short accountId,
short containerId,
boolean isEncrypted) |
BlobProperties(long blobSize,
java.lang.String serviceId,
java.lang.String ownerId,
java.lang.String contentType,
boolean isPrivate,
long timeToLiveInSeconds,
long creationTimeInMs,
short accountId,
short containerId,
boolean isEncrypted,
java.lang.String externalAssetTag) |
BlobProperties(long blobSize,
java.lang.String serviceId,
java.lang.String ownerId,
java.lang.String contentType,
boolean isPrivate,
long timeToLiveInSeconds,
short accountId,
short containerId,
boolean isEncrypted,
java.lang.String externalAssetTag) |
Modifier and Type | Method and Description |
---|---|
short |
getAccountId() |
long |
getBlobSize() |
short |
getContainerId() |
java.lang.String |
getContentType() |
long |
getCreationTimeInMs() |
java.lang.String |
getExternalAssetTag() |
java.lang.String |
getOwnerId() |
java.lang.String |
getServiceId()
ServiceId of the uploader of the blob
|
long |
getTimeToLiveInSeconds() |
boolean |
isEncrypted() |
boolean |
isPrivate()
Deprecated.
|
void |
setBlobSize(long blobSize) |
void |
setTimeToLiveInSeconds(long timeToLiveInSeconds) |
java.lang.String |
toString() |
public BlobProperties(long blobSize, java.lang.String serviceId, short accountId, short containerId, boolean isEncrypted)
blobSize
- The size of the blob in bytesserviceId
- The service id that is creating this blobaccountId
- accountId of the user who owns the blobcontainerId
- containerId of the blobisEncrypted
- true
if the blob is encrypted, false
otherwisepublic BlobProperties(long blobSize, java.lang.String serviceId, java.lang.String ownerId, java.lang.String contentType, boolean isPrivate, long timeToLiveInSeconds, short accountId, short containerId, boolean isEncrypted, java.lang.String externalAssetTag)
blobSize
- The size of the blob in bytesserviceId
- The service id that is creating this blobownerId
- The owner of the blob (For example , memberId or groupId)contentType
- The content type of the blob (eg: mime). Can be NullisPrivate
- Is the blob securetimeToLiveInSeconds
- The time to live, in seconds, relative to blob creation time.accountId
- accountId of the user who owns the blobcontainerId
- containerId of the blobisEncrypted
- whether this blob is encrypted.externalAssetTag
- externalAssetTag for this blob. This is a non-persistent field.public BlobProperties(long blobSize, java.lang.String serviceId, java.lang.String ownerId, java.lang.String contentType, boolean isPrivate, long timeToLiveInSeconds, long creationTimeInMs, short accountId, short containerId, boolean isEncrypted, java.lang.String externalAssetTag)
blobSize
- The size of the blob in bytesserviceId
- The service id that is creating this blobownerId
- The owner of the blob (For example , memberId or groupId)contentType
- The content type of the blob (eg: mime). Can be NullisPrivate
- Is the blob securetimeToLiveInSeconds
- The time to live, in seconds, relative to blob creation time.creationTimeInMs
- The time at which the blob is created.accountId
- accountId of the user who owns the blobcontainerId
- containerId of the blobisEncrypted
- whether this blob is encrypted.externalAssetTag
- externalAssetTag for this blob. This is a non-persistent field.public long getTimeToLiveInSeconds()
public long getBlobSize()
@Deprecated public boolean isPrivate()
public java.lang.String getOwnerId()
public java.lang.String getContentType()
public java.lang.String getServiceId()
public long getCreationTimeInMs()
public short getAccountId()
public short getContainerId()
public boolean isEncrypted()
public java.lang.String getExternalAssetTag()
public void setTimeToLiveInSeconds(long timeToLiveInSeconds)
timeToLiveInSeconds
- the new value of timeToLiveInSecondspublic void setBlobSize(long blobSize)
blobSize
- the new blob size in bytespublic java.lang.String toString()
toString
in class java.lang.Object