Package org.jclouds.glesys.domain
Class Archive
- java.lang.Object
-
- org.jclouds.glesys.domain.Archive
-
public class Archive extends Object
Information about an archive
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Archive.Builder<T extends Archive.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
Archive(String username, String totalSize, String freeSize, GleSYSBoolean locked)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Archive.Builder<?>
builder()
boolean
equals(Object obj)
String
getFreeSize()
String
getTotalSize()
String
getUsername()
int
hashCode()
boolean
isLocked()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Archive.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
Archive
@ConstructorProperties({"username","sizetotal","sizefree","locked"}) protected Archive(String username, String totalSize, String freeSize, GleSYSBoolean locked)
-
-
Method Detail
-
builder
public static Archive.Builder<?> builder()
-
toBuilder
public Archive.Builder<?> toBuilder()
-
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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-