public final class StorageObject
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Storage JSON API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
StorageObject.CustomerEncryption
Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
|
static class |
StorageObject.Owner
The owner of the object.
|
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
StorageObject() |
Modifier and Type | Method and Description |
---|---|
StorageObject |
clone() |
List<ObjectAccessControl> |
getAcl()
Access controls on the object.
|
String |
getBucket()
The name of the bucket containing this object.
|
String |
getCacheControl()
Cache-Control directive for the object data.
|
Integer |
getComponentCount()
Number of underlying components that make up this object.
|
String |
getContentDisposition()
Content-Disposition of the object data.
|
String |
getContentEncoding()
Content-Encoding of the object data.
|
String |
getContentLanguage()
Content-Language of the object data.
|
String |
getContentType()
Content-Type of the object data.
|
String |
getCrc32c()
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte
order.
|
StorageObject.CustomerEncryption |
getCustomerEncryption()
Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
|
String |
getEtag()
HTTP 1.1 Entity tag for the object.
|
Boolean |
getEventBasedHold()
Whether an object is under event-based hold.
|
Long |
getGeneration()
The content generation of this object.
|
String |
getId()
The ID of the object, including the bucket name, object name, and generation number.
|
String |
getKind()
The kind of item this is.
|
String |
getKmsKeyName()
Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
|
String |
getMd5Hash()
MD5 hash of the data; encoded using base64.
|
String |
getMediaLink()
Media download link.
|
Map<String,String> |
getMetadata()
User-provided metadata, in key/value pairs.
|
Long |
getMetageneration()
The version of the metadata for this object at this generation.
|
String |
getName()
The name of the object.
|
StorageObject.Owner |
getOwner()
The owner of the object.
|
com.google.api.client.util.DateTime |
getRetentionExpirationTime()
A server-determined value that specifies the earliest time that the object's retention period
expires.
|
String |
getSelfLink()
The link to this object.
|
BigInteger |
getSize()
Content-Length of the data in bytes.
|
String |
getStorageClass()
Storage class of the object.
|
Boolean |
getTemporaryHold()
Whether an object is under temporary hold.
|
com.google.api.client.util.DateTime |
getTimeCreated()
The creation time of the object in RFC 3339 format.
|
com.google.api.client.util.DateTime |
getTimeDeleted()
The deletion time of the object in RFC 3339 format.
|
com.google.api.client.util.DateTime |
getTimeStorageClassUpdated()
The time at which the object's storage class was last changed.
|
com.google.api.client.util.DateTime |
getUpdated()
The modification time of the object metadata in RFC 3339 format.
|
StorageObject |
set(String fieldName,
Object value) |
StorageObject |
setAcl(List<ObjectAccessControl> acl)
Access controls on the object.
|
StorageObject |
setBucket(String bucket)
The name of the bucket containing this object.
|
StorageObject |
setCacheControl(String cacheControl)
Cache-Control directive for the object data.
|
StorageObject |
setComponentCount(Integer componentCount)
Number of underlying components that make up this object.
|
StorageObject |
setContentDisposition(String contentDisposition)
Content-Disposition of the object data.
|
StorageObject |
setContentEncoding(String contentEncoding)
Content-Encoding of the object data.
|
StorageObject |
setContentLanguage(String contentLanguage)
Content-Language of the object data.
|
StorageObject |
setContentType(String contentType)
Content-Type of the object data.
|
StorageObject |
setCrc32c(String crc32c)
CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte
order.
|
StorageObject |
setCustomerEncryption(StorageObject.CustomerEncryption customerEncryption)
Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
|
StorageObject |
setEtag(String etag)
HTTP 1.1 Entity tag for the object.
|
StorageObject |
setEventBasedHold(Boolean eventBasedHold)
Whether an object is under event-based hold.
|
StorageObject |
setGeneration(Long generation)
The content generation of this object.
|
StorageObject |
setId(String id)
The ID of the object, including the bucket name, object name, and generation number.
|
StorageObject |
setKind(String kind)
The kind of item this is.
|
StorageObject |
setKmsKeyName(String kmsKeyName)
Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
|
StorageObject |
setMd5Hash(String md5Hash)
MD5 hash of the data; encoded using base64.
|
StorageObject |
setMediaLink(String mediaLink)
Media download link.
|
StorageObject |
setMetadata(Map<String,String> metadata)
User-provided metadata, in key/value pairs.
|
StorageObject |
setMetageneration(Long metageneration)
The version of the metadata for this object at this generation.
|
StorageObject |
setName(String name)
The name of the object.
|
StorageObject |
setOwner(StorageObject.Owner owner)
The owner of the object.
|
StorageObject |
setRetentionExpirationTime(com.google.api.client.util.DateTime retentionExpirationTime)
A server-determined value that specifies the earliest time that the object's retention period
expires.
|
StorageObject |
setSelfLink(String selfLink)
The link to this object.
|
StorageObject |
setSize(BigInteger size)
Content-Length of the data in bytes.
|
StorageObject |
setStorageClass(String storageClass)
Storage class of the object.
|
StorageObject |
setTemporaryHold(Boolean temporaryHold)
Whether an object is under temporary hold.
|
StorageObject |
setTimeCreated(com.google.api.client.util.DateTime timeCreated)
The creation time of the object in RFC 3339 format.
|
StorageObject |
setTimeDeleted(com.google.api.client.util.DateTime timeDeleted)
The deletion time of the object in RFC 3339 format.
|
StorageObject |
setTimeStorageClassUpdated(com.google.api.client.util.DateTime timeStorageClassUpdated)
The time at which the object's storage class was last changed.
|
StorageObject |
setUpdated(com.google.api.client.util.DateTime updated)
The modification time of the object metadata in RFC 3339 format.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<ObjectAccessControl> getAcl()
null
for nonepublic StorageObject setAcl(List<ObjectAccessControl> acl)
acl
- acl or null
for nonepublic String getBucket()
null
for nonepublic StorageObject setBucket(String bucket)
bucket
- bucket or null
for nonepublic String getCacheControl()
null
for nonepublic StorageObject setCacheControl(String cacheControl)
cacheControl
- cacheControl or null
for nonepublic Integer getComponentCount()
null
for nonepublic StorageObject setComponentCount(Integer componentCount)
componentCount
- componentCount or null
for nonepublic String getContentDisposition()
null
for nonepublic StorageObject setContentDisposition(String contentDisposition)
contentDisposition
- contentDisposition or null
for nonepublic String getContentEncoding()
null
for nonepublic StorageObject setContentEncoding(String contentEncoding)
contentEncoding
- contentEncoding or null
for nonepublic String getContentLanguage()
null
for nonepublic StorageObject setContentLanguage(String contentLanguage)
contentLanguage
- contentLanguage or null
for nonepublic String getContentType()
null
for nonepublic StorageObject setContentType(String contentType)
contentType
- contentType or null
for nonepublic String getCrc32c()
null
for nonepublic StorageObject setCrc32c(String crc32c)
crc32c
- crc32c or null
for nonepublic StorageObject.CustomerEncryption getCustomerEncryption()
null
for nonepublic StorageObject setCustomerEncryption(StorageObject.CustomerEncryption customerEncryption)
customerEncryption
- customerEncryption or null
for nonepublic String getEtag()
null
for nonepublic StorageObject setEtag(String etag)
etag
- etag or null
for nonepublic Boolean getEventBasedHold()
null
for nonepublic StorageObject setEventBasedHold(Boolean eventBasedHold)
eventBasedHold
- eventBasedHold or null
for nonepublic Long getGeneration()
null
for nonepublic StorageObject setGeneration(Long generation)
generation
- generation or null
for nonepublic String getId()
null
for nonepublic StorageObject setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic StorageObject setKind(String kind)
kind
- kind or null
for nonepublic String getKmsKeyName()
null
for nonepublic StorageObject setKmsKeyName(String kmsKeyName)
kmsKeyName
- kmsKeyName or null
for nonepublic String getMd5Hash()
null
for nonepublic StorageObject setMd5Hash(String md5Hash)
md5Hash
- md5Hash or null
for nonepublic String getMediaLink()
null
for nonepublic StorageObject setMediaLink(String mediaLink)
mediaLink
- mediaLink or null
for nonepublic Map<String,String> getMetadata()
null
for nonepublic StorageObject setMetadata(Map<String,String> metadata)
metadata
- metadata or null
for nonepublic Long getMetageneration()
null
for nonepublic StorageObject setMetageneration(Long metageneration)
metageneration
- metageneration or null
for nonepublic String getName()
null
for nonepublic StorageObject setName(String name)
name
- name or null
for nonepublic StorageObject.Owner getOwner()
null
for nonepublic StorageObject setOwner(StorageObject.Owner owner)
owner
- owner or null
for nonepublic com.google.api.client.util.DateTime getRetentionExpirationTime()
null
for nonepublic StorageObject setRetentionExpirationTime(com.google.api.client.util.DateTime retentionExpirationTime)
retentionExpirationTime
- retentionExpirationTime or null
for nonepublic String getSelfLink()
null
for nonepublic StorageObject setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic BigInteger getSize()
null
for nonepublic StorageObject setSize(BigInteger size)
size
- size or null
for nonepublic String getStorageClass()
null
for nonepublic StorageObject setStorageClass(String storageClass)
storageClass
- storageClass or null
for nonepublic Boolean getTemporaryHold()
null
for nonepublic StorageObject setTemporaryHold(Boolean temporaryHold)
temporaryHold
- temporaryHold or null
for nonepublic com.google.api.client.util.DateTime getTimeCreated()
null
for nonepublic StorageObject setTimeCreated(com.google.api.client.util.DateTime timeCreated)
timeCreated
- timeCreated or null
for nonepublic com.google.api.client.util.DateTime getTimeDeleted()
null
for nonepublic StorageObject setTimeDeleted(com.google.api.client.util.DateTime timeDeleted)
timeDeleted
- timeDeleted or null
for nonepublic com.google.api.client.util.DateTime getTimeStorageClassUpdated()
null
for nonepublic StorageObject setTimeStorageClassUpdated(com.google.api.client.util.DateTime timeStorageClassUpdated)
timeStorageClassUpdated
- timeStorageClassUpdated or null
for nonepublic com.google.api.client.util.DateTime getUpdated()
null
for nonepublic StorageObject setUpdated(com.google.api.client.util.DateTime updated)
updated
- updated or null
for nonepublic StorageObject set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public StorageObject clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.