Class DurationSinceLastAccess
- java.lang.Object
-
- software.amazon.awssdk.services.fsx.model.DurationSinceLastAccess
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DurationSinceLastAccess.Builder,DurationSinceLastAccess>
@Generated("software.amazon.awssdk:codegen") public final class DurationSinceLastAccess extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DurationSinceLastAccess.Builder,DurationSinceLastAccess>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDurationSinceLastAccess.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DurationSinceLastAccess.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DurationSinceLastAccess.Builder>serializableBuilderClass()DurationSinceLastAccess.BuildertoBuilder()StringtoString()Returns a string representation of this object.Unitunit()The unit of time used by theValueparameter to determine if a file can be released, based on when it was last accessed.StringunitAsString()The unit of time used by theValueparameter to determine if a file can be released, based on when it was last accessed.Longvalue()An integer that represents the minimum amount of time (in days) since a file was last accessed in the file system.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
unit
public final Unit unit()
The unit of time used by the
Valueparameter to determine if a file can be released, based on when it was last accessed.DAYSis the only supported value. This is a required parameter.If the service returns an enum value that is not available in the current SDK version,
unitwill returnUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit of time used by the
Valueparameter to determine if a file can be released, based on when it was last accessed.DAYSis the only supported value. This is a required parameter. - See Also:
Unit
-
unitAsString
public final String unitAsString()
The unit of time used by the
Valueparameter to determine if a file can be released, based on when it was last accessed.DAYSis the only supported value. This is a required parameter.If the service returns an enum value that is not available in the current SDK version,
unitwill returnUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit of time used by the
Valueparameter to determine if a file can be released, based on when it was last accessed.DAYSis the only supported value. This is a required parameter. - See Also:
Unit
-
value
public final 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 ofValueis0. 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
Pathsparameter of the operation in order for the file to be released.- Returns:
- 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 ofValueis0. 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
Pathsparameter of the operation in order for the file to be released.
-
toBuilder
public DurationSinceLastAccess.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DurationSinceLastAccess.Builder,DurationSinceLastAccess>
-
builder
public static DurationSinceLastAccess.Builder builder()
-
serializableBuilderClass
public static Class<? extends DurationSinceLastAccess.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-