@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AutocommitPeriod.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AutocommitPeriod.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutocommitPeriod.Builder> |
serializableBuilderClass() |
AutocommitPeriod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AutocommitPeriodType |
type()
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
String |
typeAsString()
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
Integer |
value()
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 NONE disables autocommit. The default value is NONE.
If the service returns an enum value that is not available in the current SDK version, type will return
AutocommitPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
NONE disables autocommit. The default value is NONE.AutocommitPeriodTypepublic 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 NONE disables autocommit. The default value is NONE.
If the service returns an enum value that is not available in the current SDK version, type will return
AutocommitPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
NONE disables autocommit. The default value is NONE.AutocommitPeriodTypepublic 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
Minutes: 5 - 65,535
Hours: 1 - 65,535
Days: 1 - 3,650
Months: 1 - 120
Years: 1 - 10
public AutocommitPeriod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutocommitPeriod.Builder,AutocommitPeriod>public static AutocommitPeriod.Builder builder()
public static Class<? extends AutocommitPeriod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.