Class AutocommitPeriod
- java.lang.Object
-
- software.amazon.awssdk.services.fsx.model.AutocommitPeriod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutocommitPeriod.Builder,AutocommitPeriod>
@Generated("software.amazon.awssdk:codegen") public final class AutocommitPeriod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutocommitPeriod.Builder,AutocommitPeriod>
Sets the autocommit period of files in an FSx for ONTAP SnapLock volume, which determines how long the files must remain unmodified before they're automatically transitioned to the write once, read many (WORM) state.
For more information, see Autocommit.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutocommitPeriod.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutocommitPeriod.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends AutocommitPeriod.Builder>serializableBuilderClass()AutocommitPeriod.BuildertoBuilder()StringtoString()Returns a string representation of this object.AutocommitPeriodTypetype()Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.StringtypeAsString()Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.Integervalue()Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.-
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
-
type
public final AutocommitPeriodType type()
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to
NONEdisables autocommit. The default value isNONE.If the service returns an enum value that is not available in the current SDK version,
typewill returnAutocommitPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting
this value to
NONEdisables autocommit. The default value isNONE. - See Also:
AutocommitPeriodType
-
typeAsString
public final String typeAsString()
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to
NONEdisables autocommit. The default value isNONE.If the service returns an enum value that is not available in the current SDK version,
typewill returnAutocommitPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting
this value to
NONEdisables autocommit. The default value isNONE. - See Also:
AutocommitPeriodType
-
value
public final Integer value()
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The following ranges are valid:
-
Minutes: 5 - 65,535 -
Hours: 1 - 65,535 -
Days: 1 - 3,650 -
Months: 1 - 120 -
Years: 1 - 10
- Returns:
- Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The
following ranges are valid:
-
Minutes: 5 - 65,535 -
Hours: 1 - 65,535 -
Days: 1 - 3,650 -
Months: 1 - 120 -
Years: 1 - 10
-
-
-
toBuilder
public AutocommitPeriod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutocommitPeriod.Builder,AutocommitPeriod>
-
builder
public static AutocommitPeriod.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutocommitPeriod.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.
-
-