public class Filestore
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Filestore()
Initiates an empty filestore object
|
Filestore(java.lang.Integer id)
Initiates a filestore object with given id set
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCurrentContexts()
Returns the current amount of contexts of this filestore object
|
java.lang.Integer |
getId()
Returns the id of this filestore object
|
java.lang.Integer |
getMaxContexts()
Returns the maximum amount of contexts/users of this filestore object
|
java.lang.Long |
getReserved()
Gets the reserved file store space in mega bytes (MB).
|
java.lang.Long |
getSize()
Returns the size of this filestore object (in MB)
|
java.lang.String |
getUrl()
Returns the url of this filestore object
|
java.lang.Long |
getUsed()
Returns the currently used size of this filestore object (in MB)
|
int |
hashCode() |
boolean |
isCurrentContextsset() |
boolean |
isIdset() |
boolean |
isMaxContextsset() |
boolean |
isReservedset() |
boolean |
isSizeset() |
boolean |
isUrlset() |
boolean |
isUsedset() |
void |
setCurrentContexts(java.lang.Integer currentContexts)
Sets the current amount of contexts for this filestore object
|
void |
setId(java.lang.Integer id)
Sets the id for this filestore object
|
void |
setMaxContexts(java.lang.Integer maxContexts)
Sets the maximum amount of contexts/users for this filestore object
|
void |
setReserved(java.lang.Long reserved)
Sets the reserved file store space in mega bytes (MB).
|
void |
setSize(java.lang.Long size)
Sets the size for this filestore object (in MB)
|
void |
setUrl(java.lang.String url)
Sets the url for this filestore object
|
void |
setUsed(java.lang.Long quota_used)
Sets the currently used size for this filestore object (in MB)
|
java.lang.String |
toString()
Constructs a
String with all attributes in name = value
format. |
public Filestore()
public Filestore(java.lang.Integer id)
id
- An Integer
containing the idpublic java.lang.Integer getId()
Integer
containing the idpublic void setId(java.lang.Integer id)
id
- An Integer
containing the idpublic java.lang.String getUrl()
String
containing the urlpublic void setUrl(java.lang.String url)
url
- A String
containing the urlpublic java.lang.Long getSize()
Long
containing the size (in MB)public void setSize(java.lang.Long size)
size
- A Long
containing the size (in MB)public java.lang.Integer getMaxContexts()
Integer
containing the maximum number of contexts/userspublic void setMaxContexts(java.lang.Integer maxContexts)
maxContexts
- The maximum number of contexts/userspublic java.lang.Integer getCurrentContexts()
Integer
containing the currentpublic void setCurrentContexts(java.lang.Integer currentContexts)
currentContexts
- An Integer
containing the current amount of contextspublic java.lang.Long getUsed()
Long
containing the currently used size (in MB)public void setUsed(java.lang.Long quota_used)
quota_used
- A Long
containing the currently used sizepublic java.lang.String toString()
String
with all attributes in name = value
format.toString
in class java.lang.Object
String
representation of this object.public final java.lang.Long getReserved()
<average-filestore-space> * <number-of-filestore-contexts>
public final void setReserved(java.lang.Long reserved)
<average-filestore-space> * <number-of-filestore-contexts>
reserved
- the reserved space in MB to setpublic boolean isCurrentContextsset()
public boolean isIdset()
public boolean isMaxContextsset()
public boolean isReservedset()
public boolean isSizeset()
public boolean isUrlset()
public boolean isUsedset()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object