Class RetentionPeriod
- java.lang.Object
-
- software.amazon.awssdk.services.fsx.model.RetentionPeriod
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRetentionPeriod.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetentionPeriod.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 RetentionPeriod.Builder>serializableBuilderClass()RetentionPeriod.BuildertoBuilder()StringtoString()Returns a string representation of this object.RetentionPeriodTypetype()Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.StringtypeAsString()Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.Integervalue()Defines the amount of time for the retention period of 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 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 toUNSPECIFIED, 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,
typewill returnRetentionPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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 toUNSPECIFIED, the files are retained until you set an explicit retention period. - See Also:
RetentionPeriodType
-
typeAsString
public 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 toUNSPECIFIED, 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,
typewill returnRetentionPeriodType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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 toUNSPECIFIED, the files are retained until you set an explicit retention period. - See Also:
RetentionPeriodType
-
value
public 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
INFINITEorUNSPECIFIED. 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
- Returns:
- Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a
value for
INFINITEorUNSPECIFIED. 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
-
-
-
toBuilder
public RetentionPeriod.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
-
builder
public static RetentionPeriod.Builder builder()
-
serializableBuilderClass
public static Class<? extends RetentionPeriod.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
-
-