@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DurationSinceLastAccess extends Object implements Serializable, Cloneable, StructuredPojo
Defines the minimum amount of time since last access for a file to be eligible for release. Only files that have been exported to S3 and that were last accessed or modified before this point-in-time are eligible to be released from the Amazon FSx for Lustre file system.
| Constructor and Description |
|---|
DurationSinceLastAccess() |
| Modifier and Type | Method and Description |
|---|---|
DurationSinceLastAccess |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
The unit of time used by the
Value parameter to determine if a file can be released, based on when
it was last accessed. |
Long |
getValue()
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setUnit(String unit)
The unit of time used by the
Value parameter to determine if a file can be released, based on when
it was last accessed. |
void |
setValue(Long value)
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system.
|
String |
toString()
Returns a string representation of this object.
|
DurationSinceLastAccess |
withUnit(String unit)
The unit of time used by the
Value parameter to determine if a file can be released, based on when
it was last accessed. |
DurationSinceLastAccess |
withUnit(Unit unit)
The unit of time used by the
Value parameter to determine if a file can be released, based on when
it was last accessed. |
DurationSinceLastAccess |
withValue(Long value)
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system.
|
public void setUnit(String unit)
The unit of time used by the Value parameter to determine if a file can be released, based on when
it was last accessed. DAYS is the only supported value. This is a required parameter.
unit - The unit of time used by the Value parameter to determine if a file can be released, based on
when it was last accessed. DAYS is the only supported value. This is a required parameter.Unitpublic String getUnit()
The unit of time used by the Value parameter to determine if a file can be released, based on when
it was last accessed. DAYS is the only supported value. This is a required parameter.
Value parameter to determine if a file can be released, based
on when it was last accessed. DAYS is the only supported value. This is a required
parameter.Unitpublic DurationSinceLastAccess withUnit(String unit)
The unit of time used by the Value parameter to determine if a file can be released, based on when
it was last accessed. DAYS is the only supported value. This is a required parameter.
unit - The unit of time used by the Value parameter to determine if a file can be released, based on
when it was last accessed. DAYS is the only supported value. This is a required parameter.Unitpublic DurationSinceLastAccess withUnit(Unit unit)
The unit of time used by the Value parameter to determine if a file can be released, based on when
it was last accessed. DAYS is the only supported value. This is a required parameter.
unit - The unit of time used by the Value parameter to determine if a file can be released, based on
when it was last accessed. DAYS is the only supported value. This is a required parameter.Unitpublic void setValue(Long value)
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system. Only exported files with a MAX(atime, ctime, mtime) timestamp that is more than this amount
of time in the past (relative to the task create time) will be released. The default of Value is
0. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be specified in
the Paths parameter of the operation in order for the file to be released.
value - An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system. Only exported files with a MAX(atime, ctime, mtime) timestamp that is more than this
amount of time in the past (relative to the task create time) will be released. The default of
Value is 0. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be
specified in the Paths parameter of the operation in order for the file to be released.
public Long getValue()
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system. Only exported files with a MAX(atime, ctime, mtime) timestamp that is more than this amount
of time in the past (relative to the task create time) will be released. The default of Value is
0. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be specified in
the Paths parameter of the operation in order for the file to be released.
MAX(atime, ctime, mtime) timestamp that is more than
this amount of time in the past (relative to the task create time) will be released. The default of
Value is 0. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be
specified in the Paths parameter of the operation in order for the file to be released.
public DurationSinceLastAccess withValue(Long value)
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system. Only exported files with a MAX(atime, ctime, mtime) timestamp that is more than this amount
of time in the past (relative to the task create time) will be released. The default of Value is
0. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be specified in
the Paths parameter of the operation in order for the file to be released.
value - An integer that represents the minimum amount of time (in days) since a file was last accessed in the file
system. Only exported files with a MAX(atime, ctime, mtime) timestamp that is more than this
amount of time in the past (relative to the task create time) will be released. The default of
Value is 0. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be
specified in the Paths parameter of the operation in order for the file to be released.
public String toString()
toString in class ObjectObject.toString()public DurationSinceLastAccess clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.