Class SwiftAccountImpl
- java.lang.Object
-
- org.openstack4j.openstack.storage.object.domain.SwiftAccountImpl
-
- All Implemented Interfaces:
Serializable,ModelEntity,SwiftAccount
public class SwiftAccountImpl extends Object implements SwiftAccount
An Account representation for OpenStack Object Storage (Swift)- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwiftAccountImpl.AccountBuilder
-
Constructor Summary
Constructors Modifier Constructor Description protectedSwiftAccountImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SwiftAccountImpl.AccountBuilderbuilder()longgetBytesUsed()The total number of bytes that are stored in storage for the account.longgetContainerCount()Map<String,String>getMetadata()The custom account metadata maplonggetObjectCount()The total number of objects that are stored in storage for the account.StringgetTemporaryUrlKey()The secret key value for temporary URLs.StringtoString()
-
-
-
Method Detail
-
builder
public static SwiftAccountImpl.AccountBuilder builder()
-
getContainerCount
public long getContainerCount()
- Specified by:
getContainerCountin interfaceSwiftAccount
-
getObjectCount
public long getObjectCount()
Description copied from interface:SwiftAccountThe total number of objects that are stored in storage for the account.- Specified by:
getObjectCountin interfaceSwiftAccount- Returns:
- total number of objects
-
getBytesUsed
public long getBytesUsed()
Description copied from interface:SwiftAccountThe total number of bytes that are stored in storage for the account.- Specified by:
getBytesUsedin interfaceSwiftAccount- Returns:
- total number of bytes
-
getTemporaryUrlKey
public String getTemporaryUrlKey()
Description copied from interface:SwiftAccountThe secret key value for temporary URLs. If not set (null), this header is not returned by this operation.- Specified by:
getTemporaryUrlKeyin interfaceSwiftAccount- Returns:
- the secret key value or null
-
getMetadata
public Map<String,String> getMetadata()
Description copied from interface:SwiftAccountThe custom account metadata map- Specified by:
getMetadatain interfaceSwiftAccount- Returns:
- map of name to value of metadata
-
-