Class Account
- java.lang.Object
-
- org.jclouds.openstack.swift.v1.domain.Account
-
public class Account extends Object
Represents an Account in OpenStack Object Storage.- See Also:
AccountApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Account.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Account.Builder
builder()
boolean
equals(Object object)
long
getBytesUsed()
long
getContainerCount()
com.google.common.collect.Multimap<String,String>
getHeaders()
Map<String,String>
getMetadata()
NOTElong
getObjectCount()
com.google.common.base.Optional<String>
getTemporaryUrlKey()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Account.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
getContainerCount
public long getContainerCount()
- Returns:
- The count of containers for this account.
-
getObjectCount
public long getObjectCount()
- Returns:
- The count of objects for this account.
-
getBytesUsed
public long getBytesUsed()
- Returns:
- The number of bytes used by this account.
-
getTemporaryUrlKey
public com.google.common.base.Optional<String> getTemporaryUrlKey()
- Returns:
- The {@link Optional<String>} temporary URL key for this account.
-
getMetadata
public Map<String,String> getMetadata()
NOTE
In current swift implementations, headers keys are lower-cased. This means characters such as turkish will probably not work out well.- Returns:
- a
Map<String, String>
containing the account metadata.
-
getHeaders
public com.google.common.collect.Multimap<String,String> getHeaders()
- Returns:
- The HTTP headers for this account.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static Account.Builder builder()
-
toBuilder
public Account.Builder toBuilder()
-
-