org.jclouds.glesys.domain
Class Archive
java.lang.Object
org.jclouds.glesys.domain.Archive
- All Implemented Interfaces:
- Comparable<Archive>
- Direct Known Subclasses:
- ArchiveDetails
public class Archive
- extends Object
- implements Comparable<Archive>
Information about an archive
- Author:
- Adam Lowe
- See Also:
Archive
public Archive(String username,
String totalSize,
String freeSize,
boolean locked)
builder
public static Archive.Builder builder()
getUsername
public String getUsername()
- Returns:
- the name (username) of the archive
getTotalSize
public String getTotalSize()
- Returns:
- the total size of the archive, ex. "10 GB"
getFreeSize
public String getFreeSize()
- Returns:
- the free space left of the archive
isLocked
public boolean isLocked()
- Returns:
- true if the archive is locked
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(Archive other)
- Specified by:
compareTo
in interface Comparable<Archive>
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.