org.jclouds.openstack.swift.v1.domain
Class Account.Builder

java.lang.Object
  extended by org.jclouds.openstack.swift.v1.domain.Account.Builder
Enclosing class:
Account

public static class Account.Builder
extends Object


Field Summary
protected  long bytesUsed
           
protected  long containerCount
           
protected  com.google.common.collect.Multimap<String,String> headers
           
protected  Map<String,String> metadata
           
protected  long objectCount
           
 
Constructor Summary
Account.Builder()
           
 
Method Summary
 Account build()
           
 Account.Builder bytesUsed(long bytesUsed)
           
 Account.Builder containerCount(long containerCount)
           
 Account.Builder fromAccount(Account from)
           
 Account.Builder headers(com.google.common.collect.Multimap<String,String> headers)
           
 Account.Builder metadata(Map<String,String> metadata)
          NOTE
 Account.Builder objectCount(long objectCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

containerCount

protected long containerCount

objectCount

protected long objectCount

bytesUsed

protected long bytesUsed

headers

protected com.google.common.collect.Multimap<String,String> headers

metadata

protected Map<String,String> metadata
Constructor Detail

Account.Builder

public Account.Builder()
Method Detail

containerCount

public Account.Builder containerCount(long containerCount)
Parameters:
containerCount - the count of containers for this account.
See Also:
Account.getContainerCount()

objectCount

public Account.Builder objectCount(long objectCount)
Parameters:
objectCount - the count of objects for this account.
See Also:
Account.getObjectCount()

bytesUsed

public Account.Builder bytesUsed(long bytesUsed)
Parameters:
bytesUsed - the number of bytes used by this account.
See Also:
Account.getBytesUsed()

metadata

public Account.Builder metadata(Map<String,String> metadata)

NOTE

This method will lower-case all metadata keys due to a Swift implementation decision.

Parameters:
metadata - the metadata for this account.
See Also:
Account.getMetadata()

headers

public Account.Builder headers(com.google.common.collect.Multimap<String,String> headers)
See Also:
Account.getHeaders()

build

public Account build()

fromAccount

public Account.Builder fromAccount(Account from)


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