Class FileSystemSize
- java.lang.Object
-
- com.amazonaws.services.elasticfilesystem.model.FileSystemSize
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class FileSystemSize extends Object implements Serializable, Cloneable
This object provides the latest known metered size, in bytes, of data stored in the file system, in its
Value
field, and the time at which that size was determined in itsTimestamp
field. Note that the value does not represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, the value will represent the actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not necessarily the exact size the file system was at any instant in time.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileSystemSize()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSystemSize
clone()
boolean
equals(Object obj)
Date
getTimestamp()
The time at which the size of data, returned in theValue
field, was determined.Long
getValue()
The latest known metered size, in bytes, of data stored in the file system.int
hashCode()
void
setTimestamp(Date timestamp)
The time at which the size of data, returned in theValue
field, was determined.void
setValue(Long value)
The latest known metered size, in bytes, of data stored in the file system.String
toString()
Returns a string representation of this object; useful for testing and debugging.FileSystemSize
withTimestamp(Date timestamp)
The time at which the size of data, returned in theValue
field, was determined.FileSystemSize
withValue(Long value)
The latest known metered size, in bytes, of data stored in the file system.
-
-
-
Method Detail
-
setValue
public void setValue(Long value)
The latest known metered size, in bytes, of data stored in the file system.
- Parameters:
value
- The latest known metered size, in bytes, of data stored in the file system.
-
getValue
public Long getValue()
The latest known metered size, in bytes, of data stored in the file system.
- Returns:
- The latest known metered size, in bytes, of data stored in the file system.
-
withValue
public FileSystemSize withValue(Long value)
The latest known metered size, in bytes, of data stored in the file system.
- Parameters:
value
- The latest known metered size, in bytes, of data stored in the file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
public void setTimestamp(Date timestamp)
The time at which the size of data, returned in the
Value
field, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Parameters:
timestamp
- The time at which the size of data, returned in theValue
field, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.
-
getTimestamp
public Date getTimestamp()
The time at which the size of data, returned in the
Value
field, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Returns:
- The time at which the size of data, returned in the
Value
field, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.
-
withTimestamp
public FileSystemSize withTimestamp(Date timestamp)
The time at which the size of data, returned in the
Value
field, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Parameters:
timestamp
- The time at which the size of data, returned in theValue
field, was determined. The value is the integer number of seconds since 1970-01-01T00:00:00Z.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public FileSystemSize clone()
-
-