Class Account.Builder
- java.lang.Object
-
- org.jclouds.openstack.swift.v1.domain.Account.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected longbytesUsedprotected longcontainerCountprotected com.google.common.collect.Multimap<String,String>headersprotected Map<String,String>metadataprotected longobjectCount
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Accountbuild()Account.BuilderbytesUsed(long bytesUsed)Account.BuildercontainerCount(long containerCount)Account.BuilderfromAccount(Account from)Account.Builderheaders(com.google.common.collect.Multimap<String,String> headers)Account.Buildermetadata(Map<String,String> metadata)NOTEAccount.BuilderobjectCount(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)
-
-