org.jclouds.googlecloudstorage.domain
Class GCSObject.Builder

java.lang.Object
  extended by org.jclouds.googlecloudstorage.domain.Resource.Builder<GCSObject.Builder>
      extended by org.jclouds.googlecloudstorage.domain.GCSObject.Builder
Enclosing class:
GCSObject

protected static final class GCSObject.Builder
extends Resource.Builder<GCSObject.Builder>


Field Summary
 
Fields inherited from class org.jclouds.googlecloudstorage.domain.Resource.Builder
etag, id, kind, selfLink
 
Constructor Summary
protected GCSObject.Builder()
           
 
Method Summary
protected  GCSObject.Builder acl(Set<ObjectAccessControls> acl)
           
protected  GCSObject.Builder addAcl(ObjectAccessControls bucketAccessControls)
           
protected  GCSObject.Builder addCustomMetadata(String key, String value)
           
protected  GCSObject.Builder bucket(String bucket)
           
 GCSObject build()
           
protected  GCSObject.Builder cacheControl(String cacheControl)
           
protected  GCSObject.Builder componentCount(Integer componentCount)
           
protected  GCSObject.Builder contentDisposition(String contentDisposition)
           
protected  GCSObject.Builder contentEncoding(String contentEncoding)
           
protected  GCSObject.Builder contentLanguage(String contentLanguage)
           
protected  GCSObject.Builder contentType(String contentType)
           
protected  GCSObject.Builder crc32c(String crc32c)
          Requires base64 encoded crc32c string
protected  GCSObject.Builder customMetadata(Map<String,String> metadata)
           
protected  GCSObject.Builder fromGCSObject(GCSObject in)
           
protected  GCSObject.Builder generation(Long generation)
           
protected  GCSObject.Builder md5Hash(String md5Hash)
          Requires base64 encoded crc32c string
protected  GCSObject.Builder mediaLink(URI mediaLink)
           
protected  GCSObject.Builder metageneration(Long metageneration)
           
protected  GCSObject.Builder name(String name)
           
protected  GCSObject.Builder owner(Owner owner)
           
protected  GCSObject.Builder self()
           
protected  GCSObject.Builder size(Long size)
           
protected  GCSObject.Builder storageClass(DomainResourceReferences.StorageClass storageClass)
           
protected  GCSObject.Builder timeDeleted(Date timeDeleted)
           
protected  GCSObject.Builder updated(Date updated)
           
 
Methods inherited from class org.jclouds.googlecloudstorage.domain.Resource.Builder
etag, fromResource, id, kind, selfLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCSObject.Builder

protected GCSObject.Builder()
Method Detail

name

protected GCSObject.Builder name(String name)

bucket

protected GCSObject.Builder bucket(String bucket)

generation

protected GCSObject.Builder generation(Long generation)

metageneration

protected GCSObject.Builder metageneration(Long metageneration)

customMetadata

protected GCSObject.Builder customMetadata(Map<String,String> metadata)

addCustomMetadata

protected GCSObject.Builder addCustomMetadata(String key,
                                              String value)

size

protected GCSObject.Builder size(Long size)

componentCount

protected GCSObject.Builder componentCount(Integer componentCount)

contentType

protected GCSObject.Builder contentType(String contentType)

md5Hash

protected GCSObject.Builder md5Hash(String md5Hash)
Requires base64 encoded crc32c string


mediaLink

protected GCSObject.Builder mediaLink(URI mediaLink)

contentEncoding

protected GCSObject.Builder contentEncoding(String contentEncoding)

contentDisposition

protected GCSObject.Builder contentDisposition(String contentDisposition)

contentLanguage

protected GCSObject.Builder contentLanguage(String contentLanguage)

cacheControl

protected GCSObject.Builder cacheControl(String cacheControl)

updated

protected GCSObject.Builder updated(Date updated)

timeDeleted

protected GCSObject.Builder timeDeleted(Date timeDeleted)

owner

protected GCSObject.Builder owner(Owner owner)

storageClass

protected GCSObject.Builder storageClass(DomainResourceReferences.StorageClass storageClass)

addAcl

protected GCSObject.Builder addAcl(ObjectAccessControls bucketAccessControls)

acl

protected GCSObject.Builder acl(Set<ObjectAccessControls> acl)

crc32c

protected GCSObject.Builder crc32c(String crc32c)
Requires base64 encoded crc32c string


self

protected GCSObject.Builder self()
Specified by:
self in class Resource.Builder<GCSObject.Builder>

build

public GCSObject build()
Overrides:
build in class Resource.Builder<GCSObject.Builder>

fromGCSObject

protected GCSObject.Builder fromGCSObject(GCSObject in)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.