@Generated(value="software.amazon.awssdk:codegen") public final class RetentionPeriod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
Specifies the retention period of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Files can't be deleted or modified during the retention period.
For more information, see Working with the retention period in SnapLock.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetentionPeriod.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RetentionPeriod.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 RetentionPeriod.Builder> |
serializableBuilderClass() |
RetentionPeriod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
RetentionPeriodType |
type()
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.
|
String |
typeAsString()
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.
|
Integer |
value()
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final RetentionPeriodType type()
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid
types. If you set it to INFINITE, the files are retained forever. If you set it to
UNSPECIFIED, the files are retained until you set an explicit retention period.
If the service returns an enum value that is not available in the current SDK version, type will return
RetentionPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
INFINITE, the files are retained forever. If you set it to
UNSPECIFIED, the files are retained until you set an explicit retention period.RetentionPeriodTypepublic final String typeAsString()
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid
types. If you set it to INFINITE, the files are retained forever. If you set it to
UNSPECIFIED, the files are retained until you set an explicit retention period.
If the service returns an enum value that is not available in the current SDK version, type will return
RetentionPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
INFINITE, the files are retained forever. If you set it to
UNSPECIFIED, the files are retained until you set an explicit retention period.RetentionPeriodTypepublic final Integer value()
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value
for INFINITE or UNSPECIFIED. For all other options, the following ranges are valid:
Seconds: 0 - 65,535
Minutes: 0 - 65,535
Hours: 0 - 24
Days: 0 - 365
Months: 0 - 12
Years: 0 - 100
INFINITE or UNSPECIFIED. For all other options, the following ranges
are valid:
Seconds: 0 - 65,535
Minutes: 0 - 65,535
Hours: 0 - 24
Days: 0 - 365
Months: 0 - 12
Years: 0 - 100
public RetentionPeriod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>public static RetentionPeriod.Builder builder()
public static Class<? extends RetentionPeriod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.