Class Account.Builder
- java.lang.Object
-
- org.jclouds.openstack.swift.v1.domain.Account.Builder
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
NOTEAccount.Builder
objectCount(long objectCount)
-
-
-
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)
-
-